您的位置:首页 > 运维架构 > Linux

centos7安装mongo

2020-01-15 11:03 344 查看

1.下载安装包

wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.2.22.tgz
tar -zxf mongodb-linux-x86_64-rhel70-3.2.22.tgz
mv mongodb-linux-x86_64-rhel70-3.2.22 mongodb-3.2.22
ln -s /usr/local/mongo/mongodb-3.2.22 /usr/mongo

2.在/etc/systemd/system/建立redis.service

vi /etc/profile

# set mongodb enviroment
PATH=$PATH:/usr/mongo/bin
export PATH

source /etc/profile
  • 点赞
  • 收藏
  • 分享
  • 文章举报
lx1526340 发布了7 篇原创文章 · 获赞 1 · 访问量 471 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: