我将MongoDBv4.2.3用于ubuntu,并试图绑定localhost和公共ip,但是每次重新加载mongodb之后都会收到一个错误。
bind_ip = 127.0.0.1
port = 27017重新启动mongodb时出错:
Job for mongodb.service failed because the control process exited with error code.
See "systemctl status mongodb.service" and "journalctl -xe" for details.发布于 2020-03-29 21:11:11
解决了,
bind_ip = 127.0.0.1对于单个ip,因为它被解释为数字
bind_ip = "127.0.0.1,xxx.xxx.xxx.xxx"对于多个ip,因为它被解释为字符串
https://stackoverflow.com/questions/60920576
复制相似问题