租了臺阿里云的服務器想部署個博客 但我本機(自己用的電腦不是服務器)遠程連接Mongodb連接不了 服務器本地的話是可以連接的云服務器系統:Ubuntu 16.04 64位mongodb.conf代碼dbpath=/data/MongoDB/bloglogpath=/data/MongoDB/log/mongodb.loglogappend = trueport=27017fork=true#bind_ip=127.0.0.1遠程連接報錯信息connecting to: mongodb://xx.xxx.xxx.x:27017/blog
2018-12-28T10:43:34.335+0800 E QUERY [js] Error: couldn't connect to server xx.xxx.xx.x:27017, connection attempt failed: NetworkTimeout: Error connecting to xx.xxx.xx.x:27017 :: caused by :: Socket operation timed out :
connect@src/mongo/shell/mongo.js:257:13
@(connect):1:6
exception: connect failed看了網上的很多遠程連接的方法 都試過了 但是只有本地能連接 改了配置文件服務也有重新啟動
添加回答
舉報
0/150
提交
取消