0
点赞
收藏
分享

微信扫一扫

MongoDB compress 链接不上远程虚拟机centos服务器mongo

成义随笔 2022-01-27 阅读 137

1、最近在学习MongoDB 再使用,mongoDBcompress 链接时发现 一直链接不上 提示 connect ECONNREFUSED
2、输入mongo 启动client链接时突然发现

2022-01-26T23:35:48.479+0800 I  CONTROL  [initandlisten] ** WARNING: This server is bound to localhost.
2022-01-26T23:35:48.479+0800 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server.
2022-01-26T23:35:48.479+0800 I  CONTROL  [initandlisten] **          Start the server with --bind_ip <address> to specify which IP 
2022-01-26T23:35:48.479+0800 I  CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to
2022-01-26T23:35:48.479+0800 I  CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the
2022-01-26T23:35:48.479+0800 I  CONTROL  [initandlisten] **          server with --bind_ip 127.0.0.1 to disable this warning.

Remote systems will be unable to connect to this server.这句的意思是远程系统是不能链接到这个服务的。然后一搜索 发现有博客

3、然后使用命令

mongod --dbpath /data/db --port 27017 --bind_ip 0.0.0.0 --logpath /data/db/mongod.log --fork

链接OK 撒花

举报

相关推荐

0 条评论