使用环境:公司的物理机。。。
提示:本地可以连接
mongo --host IP --port 端口 --authenticationDatabase admin -u 用户 -p 密码
远程连接mongodb时报错:network error while attempting to run command 'isMaster' on host
原因:防火墙端口没有放开
解决:开放防火墙端口即可解决,
疑虑:防火墙端口没有放开,但是端口可以telnet通。已经遇到俩次了。。。奇怪奇怪