请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

部署最后一步,supervisor启动报错

(zanhu) [root@VM-8-2-centos nginx+gunicorn+daphne+supervisor]# systemctl start supervisord
Job for supervisord.service failed because the control process exited with error code. See "systemctl status supervisord.service" and "journalctl -xe" for details.
(zanhu) [root@VM-8-2-centos nginx+gunicorn+daphne+supervisor]# systemctl status supervisord.service
● supervisord.service - Process Monitoring and Control Daemon
   Loaded: loaded (/usr/lib/systemd/system/supervisord.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2021-04-25 18:38:01 CST; 12s ago
  Process: 29596 ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf (code=exited, status=2)
 Main PID: 1255 (code=exited, status=0/SUCCESS)

Apr 25 18:38:01 VM-8-2-centos systemd[1]: Starting Process Monitoring and Control Daemon...
Apr 25 18:38:01 VM-8-2-centos supervisord[29596]: Error: The directory named as part of the path /home/zanhu/pro...ni')
Apr 25 18:38:01 VM-8-2-centos supervisord[29596]: For help, use /usr/bin/supervisord -h
Apr 25 18:38:01 VM-8-2-centos systemd[1]: supervisord.service: control process exited, code=exited status=2
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Failed to start Process Monitoring and Control Daemon.
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Unit supervisord.service entered failed state.
Apr 25 18:38:01 VM-8-2-centos systemd[1]: supervisord.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
(zanhu) [root@VM-8-2-centos nginx+gunicorn+daphne+supervisor]# journalctl -xe
-- 
-- The result is failed.
Apr 25 18:37:18 VM-8-2-centos systemd[1]: Unit supervisord.service entered failed state.
Apr 25 18:37:18 VM-8-2-centos systemd[1]: supervisord.service failed.
Apr 25 18:37:18 VM-8-2-centos sudo[29396]: pam_unix(sudo:session): session closed for user root
Apr 25 18:37:18 VM-8-2-centos polkitd[568]: Unregistered Authentication Agent for unix-process:29398:44759548 (system b
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Started Session 9344 of user root.
-- Subject: Unit session-9344.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-9344.scope has finished starting up.
-- 
-- The start-up result is done.
Apr 25 18:38:01 VM-8-2-centos CROND[29580]: (root) CMD (flock -xn /tmp/stargate.lock -c '/usr/local/qcloud/stargate/adm
Apr 25 18:38:01 VM-8-2-centos polkitd[568]: Registered Authentication Agent for unix-process:29590:44763831 (system bus
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Starting Process Monitoring and Control Daemon...
-- Subject: Unit supervisord.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit supervisord.service has begun starting up.
Apr 25 18:38:01 VM-8-2-centos supervisord[29596]: Error: The directory named as part of the path /home/zanhu/project/za
Apr 25 18:38:01 VM-8-2-centos supervisord[29596]: For help, use /usr/bin/supervisord -h
Apr 25 18:38:01 VM-8-2-centos systemd[1]: supervisord.service: control process exited, code=exited status=2
Apr 25 18:38:01 VM-8-2-centos 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.
Apr 25 18:38:01 VM-8-2-centos systemd[1]: Unit supervisord.service entered failed state.
Apr 25 18:38:01 VM-8-2-centos systemd[1]: supervisord.service failed.
Apr 25 18:38:01 VM-8-2-centos polkitd[568]: Unregistered Authentication Agent for unix-process:29590:44763831 (system b

最后一步出问题了,救救孩子把!

正在回答

2回答

supervisord要使用系统上的Python2启动,在终端

python -V

看返回的是系统上的python2版本不?

然后,ini文件粘出来看一下

0 回复 有任何疑惑可以回复我~
  • 提问者 鲨鱼辣椒辣 #1
    非常感谢!
    回复 有任何疑惑可以回复我~ 2021-04-26 09:40:11
  • 提问者 鲨鱼辣椒辣 #2
    同时有python2和python3 如何使用python2运行呢
    回复 有任何疑惑可以回复我~ 2021-04-26 09:40:44
  • Jack 回复 提问者 鲨鱼辣椒辣 #3
    这个问题最常见的,google一下
    回复 有任何疑惑可以回复我~ 2021-04-27 10:26:26
提问者 鲨鱼辣椒辣 2021-04-25 18:41:43

百度了没解决,我是在腾讯云买的服务器

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信