完整错误信息:
No suitable servers found (`serverselectiontryonce` set): [connection error calling ismaster on '114.225.125.126:27017']
网络上大多的认为是mongoDB不支持IPV6造成的,但是我尝试了所有方法都无法解决。
最后在国外的论坛上找到一行linux代码,完美解决了:
setsebool -P httpd_can_network_connect on
完整错误信息:
No suitable servers found (`serverselectiontryonce` set): [connection error calling ismaster on '114.225.125.126:27017']
网络上大多的认为是mongoDB不支持IPV6造成的,但是我尝试了所有方法都无法解决。
最后在国外的论坛上找到一行linux代码,完美解决了:
setsebool -P httpd_can_network_connect on