mongoDB启动时报下列错误[root@MonGoDB ~]# mongoMongoDB shell version: 2.6.1connecting to: test2014-05-25T18:47:2
mongoDB启动时报下列错误
[root@MonGoDB ~]# mongo
MongoDB shell version: 2.6.1
connecting to: test
2014-05-25T18:47:24.021+0800 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2014-05-25T18:47:24.022+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
解决方法:
1.查看保存数据库的目录是否存在
2.启动MongoDB的同时指定数据库保存在什么地方
3.再次执行mongo
--结束END--
本文标题: MongoDB启动时出现errno:111 Connection refused错误的解决
本文链接: https://lsjlt.com/news/39931.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0