Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of errno:111 Connection refused error when MongoDB is started

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

MongoDB starts the Times with the following error

[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 reason: errno:111 Connection refused

2014-05-25T18:47:24.022+0800 Error: couldn't connect to server 127.0.0.1 virtual 27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146

Exception: connect failed

Solution:

1. Check to see if the directory where the database is saved exists

two。 When you start MongoDB, you specify where the database is stored

3. Execute mongo again

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report