在centos6.5上安装mongo环境,步骤都没错,可是启动的时候报错,然后data文件夹里面什么也没有,log里的日志倒是有把日志信息都打进去。。下面是报错的,
看了mongod.log 报错的日志是:
2016-06-24T22:31:32.755+0800
E NETWORK [initandlisten] listen(): bind() failed errno:98
Address already in use for socket: 0.0.0.0:27017
2016-06-24T22:31:32.755+0800
E NETWORK [initandlisten] addr already in use
2016-06-24T22:31:32.755+0800
E STORAGE [initandlisten]
Failed to set up sockets during startup.
2016-06-24T22:31:32.755+0800
I CONTROL [initandlisten] dbexit: rc: 48
弄了好久,卸了几次还是不行。。也没有网上说的什么lock文件。。。实在不懂是什么问题,麻烦知道的朋友解答一下、、真心谢谢QAQ
查看了27017端口
Can’t you understand such a simple error message? The port is occupied. Check whether port 27017 is occupied and see if you have started a mongod.
The listening port is occupied. Use netstat -nap|grep [port number to be used] to see which process is occupied, or change the mongo configuration file to listen to other ports.