14.04 - MongoDB could not start: bind_ip error: bind() failed errno:99 Cannot assign requested address for socket - Ask Ubuntu
i follow installation instructions mongodb-org
in mongodb documentation. ubuntu version 14.04. /etc/mongod.conf
# mongod.conf # documentation of options, see: # http://docs.mongodb.org/manual/reference/configuration-options/ # , how store data. storage: dbpath: /var/lib/mongodb journal: enabled: true # engine: # mmapv1: # wiredtiger: # write logging data. systemlog: destination: file logappend: true path: /var/log/mongodb/mongod.log # network interfaces net: port: 27017 bindip: 127.0.0.1,54.169.117.134 #processmanagement: #security: #operationprofiling: #replication: #sharding: ## enterprise-only options: #auditlog: #snmp:
when try sudo service mongod start
, returns mongod start/running, process 6400
sudo service mongod status
returns mongod stop/waiting
, check /var/log/mongodb/mongod.log
, this:
2016-11-04t14:59:21.366+0700 e network [initandlisten] listen(): bind() failed errno:99 cannot assign requested address socket: 54.169.117.134:27017 2016-11-04t14:59:21.366+0700 e storage [initandlisten] failed set sockets during startup. 2016-11-04t14:59:21.366+0700 control [initandlisten] dbexit: rc: 48
i run command line check whether process running on port 27017 sudo netstat -peant | grep ":27017"
, nothing running port, meaning port 27017 available. please me fix this
Comments
Post a Comment