时间:2021-07-01 10:21:17 帮助过:16人阅读
参考文档
http://www.runoob.com/mongodb/mongodb-connections.html
https://www.cnblogs.com/layezi/p/7290082.html
yum 安装:
[root@dev-mysql yum.repos.d]# vim mongodb-org-3.4.repo
[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck=0
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
~
yum -y install mongodb-org
修改配置文件:
[root@dev-mysql yum.repos.d]# vim /etc/mongod.conf
net:
port: 27017
bindIp: 0.0.0.0 #修改全部允许
service mongod start
service mongod stop
centos7 mongodb安装
标签:x86 0.0.0.0 lease .repo log server 文件 asc stop