V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
coolicer
V2EX  ›  Node.js

每次都要 sudo mongod --smallfiles 启动 mongo

  •  
  •   coolicer · 2014-06-27 09:09:29 +08:00 · 4445 次点击
    这是一个创建于 3583 天前的主题,其中的信息可能已经有所发展或是发生改变。
    是什么问题。

    直接mongo会报错。
    ➜ ~ mongo
    MongoDB shell version: 2.6.1
    connecting to: test
    2014-06-27T09:06:10.084+0800 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
    2014-06-27T09:06:10.085+0800 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
    exception: connect failed
    5 条回复    2014-09-03 16:54:06 +08:00
    orzfly
        1
    orzfly  
       2014-06-27 09:30:38 +08:00
    因为你得启动 mongodb 服务器啊(摔
    coolicer
        2
    coolicer  
    OP
       2014-06-27 09:42:53 +08:00
    @orzfly 怎么让它自启动,不摔 :)
    gkiwi
        3
    gkiwi  
       2014-06-27 09:52:18 +08:00
    southwolf
        4
    southwolf  
       2014-06-27 10:13:42 +08:00
    mongod 是server, mongo是client
    laoisaudi
        5
    laoisaudi  
       2014-09-03 16:54:06 +08:00
    今天遇到。。弄了很久。。最后看到这里发现傻了。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3336 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:33 · PVG 20:33 · LAX 05:33 · JFK 08:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.