用服务启动mongo

时间:2018-02-20 02:36:57

标签: mongodb docker service

在raspbian上的docker容器中运行mongodb。 如果我在容器中运行“service mongodb status”,则表示mongodb未运行。 但是,如果我查看ps aux,它会显示正在运行的进程。 这是来自日志

Tue Feb 20 02:34:08.166 [initandlisten] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 127.0.0.1:27017
Tue Feb 20 02:34:08.166 [websvr] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 127.0.0.1:28017
Tue Feb 20 02:34:08.166 [initandlisten] ERROR:   addr already in use
Tue Feb 20 02:34:08.166 [websvr] ERROR:   addr already in use
Tue Feb 20 02:34:08.166 [initandlisten] now exiting

service mongodb start失败

该服务发生了什么?

0 个答案:

没有答案