thefreebird
V2EX  ›  问与答

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

  •  
  •   thefreebird · Apr 19, 2014 · 23529 views
    This topic created in 4458 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   ·   1513 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 16:32 · PVG 00:32 · LAX 09:32 · JFK 12:32
    ♥ Do have faith in what you're doing.