标签:errno err alter 配置文件 sse god native out service
1.如果是链接虚拟机中的Mongodb时,打开配置文件mongod.conf。
vi /etc/mongod.conf
2.修改配置参数
找到
net:
port: 27017
bindIp: 127.0.0.1 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
修改:
net:
port: 27017
bindIp: 0.0.0.0 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
3.重启mongdb
service mongod restart
标签:errno err alter 配置文件 sse god native out service
原文地址:https://www.cnblogs.com/spmt/p/10514993.html