mongodb启动错误(Failed to set up listener: SocketException: Cannot assign requested address)

错误原因:

集群服务器修改过一次IP,但是对应的/etc/hosts文件没有修改

错误日志

cat /var/log/mongdb/mongd.log

2019-01-16T09:50:44.675+0800 E STORAGE  [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address

2019-01-16T09:50:44.675+0800 I CONTROL  [initandlisten] now exiting

2019-01-16T09:50:44.675+0800 I CONTROL  [initandlisten] shutting down with code:48

问题原因:配置文件mongod.conf中bindip填写有误

应该填写私有ip地址,而不是公网ip地址

解决办法:

修改/etc/hosts

原文地址:https://www.cnblogs.com/xibuhaohao/p/12303057.html

时间: 2024-11-08 18:59:29

mongodb启动错误(Failed to set up listener: SocketException: Cannot assign requested address)的相关文章

Tomcat启动时报StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address: JVM_Bind

问题描述: 今天一早,所有淡定下来后准备启动本地Tomcat,突然出现一堆错误: 严重: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.

OpenWrt Mac地址修改错误SIOCSIFHWADDR: Cannot assign requested address

问题 设置mac地址 11:22:33:44:55:66, 在OpenWrt正在开发的主trunk上就没有SIOCSIFHWADDR: Cannot assign requested address, 这个问题. 但是到attitude adjustment最新的trunk上就出现了,估计是内核版本不同,导致都mac地址的限制不同导致. 最新的反而不严格了?这个不科学啊. 解决方法: http://blog.csdn.net/evenness/article/details/7674038 ht

Tomcat启动报错:严重: StandardServer.await: create[8005] java.net.BindException: Cannot assign requested address

org.apache.catalina.core.StandardServer await        SEVERE: StandardServer.await: create[8005]:        java.net.BindException: Cannot assign requested address java.net.BindException: Cannot assign requested address        at java.net.PlainSocketImpl

Linux客户端访问Nginx服务器出现Cannot assign requested address错误

故障描述 参考文章 http://blog.csdn.net/sctq8888/article/details/7381910 不过这篇文章中提到的开启TIME-WAIT sockets的快速回收和重用功能可能在某些场景下会导致问题,比如使用NAT方式访问服务器时,由于很多客户端的出口IP都是一样的,由于TCP时间戳的不一致会导致在同一个WIFI下有的客户端可以访问,有的客户端不可以访问的现象. 参见http://john88wang.blog.51cto.com/2165294/1422705

Tomcat启动异常 java.net.BindException: Cannot assign requested address: JVM_Bind

从Apache官网下载的tomcat7,在MyEclipse中启动时抛出如下异常: 严重: StandardServer.await: create[localhost:8005]: java.net.BindException: Cannot assign requested address: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Plain

tomcat启动错误——Failed to start component [StandardEngine[Catalina].StandardHost(暂未解决)

严重: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/hello-ex01]] at java.util.concurren

spark-shell启动错误

18/06/24 16:41:40 ERROR spark.SparkContext: Error initializing SparkContext.java.net.BindException: Cannot assign requested address: Service 'sparkDriver' failed after 16 retries (starting from 0)! Consider explicitly setting the appropriate port for

Windows 无法启动MongoDB服务 错误1067:进程意外终止

转自:http://www.cnblogs.com/xiaoit/p/3872790.html 1:Windows 无法启动MongoDB服务 错误1067:进程意外终止 2:解决方法: 进入MongoDB安装目录\data\将此文件夹下的mongod.lock删除(网友提供解决方案,实验之后貌似不行) mongod.exe --config E:\ruanjian\MongoDB\mongod.cfg --remove mongod.exe --config E:\ruanjian\Mongo

liunx启动mongodb报错 mongodb child process failed, exited with error number 14

mongodb启动报错:mongodb child process failed, exited with error number 14,查看mongodb.cnf日志,发现其中有一条:Too many open files at src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp 79. 设置ulimit -n 10000.完美! 原文地址:https://www.cnblogs.com/shilang/p/1019748