thefreebird
V2EX  ›  问与答

MongoDB 配置时无法连接 127.0.0.1:27017 问题解决方式

  •  
  •   thefreebird · Apr 19, 2014 · 23563 views
    This topic created in 4468 days ago, the information mentioned may be changed or developed.
    错误代码:error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js

    解决方式:
    1、先打开\bin 使用命令 mongod --dbpath指定db路径
    2、重新打开一个DOS进入\bin 再启动mongo

    这样就解决了,这是学习mongodb第一步遇到的问题,与大家分享
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5427 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:48 · PVG 15:48 · LAX 00:48 · JFK 03:48
    ♥ Do have faith in what you're doing.