Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused(MongoDB启动异常)
来源:互联网 发布:服装工艺 软件 编辑:程序博客网 时间:2024/04/29 14:45
mongdb启动异常:
Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
1、若数据库出现如上不能连接的原因,可能是data目录下的mongod.lock文件问题,可以用如下命令修复:
[root@localhost ~]# cd /usr/local/mongodb/
[root@localhost mongodb]# ./bin/mongod --repair
2015-09-01T18:25:40.659+0800 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating
或者直接删除mongod.lock。
[root@localhost mongodb]# rm -f /usr/local/mongodb/data/db/mongod.lock
然后再重新启动MONGODB
[root@localhost ~]# mongod -f /etc/monogdb.conf
note: noprealloc may hurt performance in many applications
about to fork child process, waiting until server is ready for connections.
forked process: 4935
child process started successfully, parent exiting
0 0
- Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused(MongoDB启动异常)
- 解决连接mongoDB出现问题:MongoDB : Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
- MongoDB Failed to connect to <IP>:<port>, reason: errno:111 Connection refused
- 【MongoDB】2014-07-25T11:00:48.634+0800 warning: Failed to connect to 127.0.0.1:27017, reason: errno:1
- Open edXDevstack启动出现:could not connect to localhost:27017: [Errno 111] Connection refused.
- MongoDB 启动 Failed to connect to 127.0.0.1:27017, reason: 由于目标计算机积极拒绝,无法连接。
- MongoDB 启动 Failed to connect to 127.0.0.1:27017, reason: 由于目标计算机积极拒绝,无法连接。
- UE4 connect to 127.0.0.1 port 52314 failed: Connection refused)
- Failed to connect to 127.0.0.1:27017, reason: errno:10061 由于目标计算机积极拒绝,无法连接。
- linux -mongodb 启动问题(Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : )
- 在启动Mongo时我出现了错误:Failed to connect 127.0.0.1:27017,reason:errno:10061由于目标计算机积极拒绝,无法连接
- Mongo运行错误:Failed to connect 127.0.0.1:27017,reason:errno:10061由于目标计算机积极拒绝,无法连接
- Mongo运行错误:Failed to connect 127.0.0.1:27017,reason:errno:10061由于目标计算机积极拒绝,无法连接
- Mongo运行错误:Failed to connect 127.0.0.1:27017,reason:errno:10061由于目标计算机积极拒绝,无法连接
- connect() failed (111: Connection refused) while connecting to upstream
- NFS挂载中遇到的 svc: failed to register lockdv1 RPC service (errno 111).(connection refused)
- 【git使用】Failed to connect to 127.0.0.1 port 1080: Connection refused
- Failed to connect to remote VM. Connection refused. Connection refused: connect
- GitHub上整理的一些工具
- 常用正则表达式
- 工作经验良言
- SteedNet 服务端示例代码
- 【spring-security】Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.sprin
- Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused(MongoDB启动异常)
- ld: 1 duplicate symbol for architecture arm64 clang: error: linker command failed with exit code 1
- 关于SQLServer数据库远程备份和还原的那些事儿
- 程序员看到了bug
- 【android】TabActivity实现手指左右滑动切换tab
- android平台的开源框架的思考
- Java中的代码块
- UIViewController各个方法的加载顺序
- EXCEL工作表保护密码忘记,撤销保护攻略