账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    阿里云的 ubuntu服务器 部署mongodb时配置好文件但还是远程连接不了
    26
    0

    租了台阿里云的服务器想部署个博客 但我本机(自己用的电脑不是服务器)远程连接Mongodb连接不了 服务器本地的话是可以连接的

    云服务器系统:Ubuntu 16.04 64位

    mongodb.conf代码

    dbpath=/data/MongoDB/blog
    logpath=/data/MongoDB/log/mongodb.log
    logappend = true
    port=27017
    fork=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
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • ↗陌语 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部