1.确定机器发行版本、确定CPU架构类型
cat /etc/redhat-release : CentOS Linux release 7.7.1908 (Core)
uname -m : x86_64
确定了之后下载: https://www.mongodb.com/download-center/community/releases
选取对应版本:/data/mongodb-linux-x86_64-rhel70-6.0.6/bin
2. 配置启动参照:https://www.cnblogs.com/tjw-bk/p/15128104.html
port=27017 #端口 bind_ip=0.0.0.0 #默认是127.0.0.1 dbpath=/data/mongodb-linux-x86_64-rhel70-6.0.6/data/ #数据库存放 logpath=/data/mongodb-linux-x86_64-rhel70-6.0.6/logs/mongodb.log #日志文件 fork=true #设置后台运行 #auth=true #开启认证
3.问题:6+解压包版本无mongo
解决办法下载mongosh,并解压到指定路径
tar -zxvf mongosh-1.6.0-linux-x64.tgz -C ./mongodb-linux-x86_64-rhel70-6.0.6/bin/
标签:x86,mongodb,6.0,64,linux,rhel70,suze,mongo From: https://www.cnblogs.com/zhaoyi506935668/p/17406171.html