V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
coolicer
V2EX  ›  Node.js

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

  •  
  •   coolicer · Jun 27, 2014 · 5203 views
    This topic created in 4325 days ago, the information mentioned may be changed or developed.
    是什么问题。

    直接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 replies    2014-09-03 16:54:06 +08:00
    orzfly
        1
    orzfly  
       Jun 27, 2014
    因为你得启动 mongodb 服务器啊(摔
    coolicer
        2
    coolicer  
    OP
       Jun 27, 2014
    @orzfly 怎么让它自启动,不摔 :)
    gkiwi
        3
    gkiwi  
       Jun 27, 2014
    southwolf
        4
    southwolf  
       Jun 27, 2014
    mongod 是server, mongo是client
    laoisaudi
        5
    laoisaudi  
       Sep 3, 2014
    今天遇到。。弄了很久。。最后看到这里发现傻了。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5280 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 03:23 · PVG 11:23 · LAX 20:23 · JFK 23:23
    ♥ Do have faith in what you're doing.