今天安装supervisord之后,启动失败,如下所示:
[host ~]$ sudo /bin/systemctl start supervisord.service
Job for supervisord.service failed. See 'systemctl status supervisord.service' and 'journalctl -xn' for details.
[host ~]$ systemctl status supervisord.service
supervisord.service - Process Monitoring and Control Daemon
Loaded: loaded (/usr/lib/systemd/system/supervisord.service; enabled)
Active: failed (Result: exit-code) since Fri 2016-03-11 16:42:31 CST; 12s ago
Process: 23386 ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf (code=exited, status=2)
[host ~] journalctl -xn
-- Logs begin at Thu 2016-01-28 09:53:59 CST, end at Fri 2016-03-11 17:05:55 CST. --
Mar 11 17:05:13 vpcz-dt-dev-3.vm sudo[27254]: bosun : unknown user: fangyu.+
Mar 11 17:05:13 vpcz-dt-dev-3.vm scollector[6314]: error: program.go:127: sudo: unknown user: fangyu.+
Mar 11 17:05:13 vpcz-dt-dev-3.vm scollector[6314]: error: program.go:127: sudo: unable to initialize policy plugin
Mar 11 17:05:13 vpcz-dt-dev-3.vm sudo[27258]: bosun : TTY=unknown ; PWD=/ ; USER=bosun ; COMMAND=/etc/alternatives/jps -l
Mar 11 17:05:55 vpcz-dt-dev-3.vm systemd[1]: Starting Process Monitoring and Control Daemon...
-- Subject: Unit supervisord.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit supervisord.service has begun starting up.
Mar 11 17:05:55 vpcz-dt-dev-3.vm supervisord[27312]: Error: Another program is already listening on a port that one of our HTTP servers is configured to u
Mar 11 17:05:55 vpcz-dt-dev-3.vm supervisord[27312]: For help, use /usr/bin/supervisord -h
Mar 11 17:05:55 vpcz-dt-dev-3.vm systemd[1]: supervisord.service: control process exited, code=exited status=2
Mar 11 17:05:55 vpcz-dt-dev-3.vm systemd[1]: Failed to start Process Monitoring and Control Daemon.
-- Subject: Unit supervisord.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit supervisord.service has failed.
--
-- The result is failed.
Mar 11 17:05:55 vpcz-dt-dev-3.vm systemd[1]: Unit supervisord.service entered failed state.
最后终于在stackoverflow找到解决方法:
sudo unlink /run/supervisor.sock