技术知识分享

宝塔安装后启动报错./etc/init.d/bt: line 27: gunicorn: command not found

搬瓦工优惠码

报错信息:

Starting Bt-Panel./etc/init.d/bt: line 27: gunicorn: command not found
-------failed
--------------------------------------------------------------------
[2018-08-26 17:10:53 +0000) [37883] [ERROR] Retrying in 1 second.
Pic Sle eye me am cree Meco. 2) Me edo Ye ge) Mar La Oe Pe OL LE oo ood
[2018-08-20 17:10:53 +0000] [37662] [INFO] Worker exiting (pid: 37662)
[2018-08-20 17:10:54 +0000] [37883] [INFO] Listening at: http://0.0.0.0:8081 (37883)
[2018-08-20 17:10:54 +0000] [37883] [INFO] Using worker: geventwebsocket .gunicorn.workers .GeventwWebSocketWorke
[2018-08-20 17:10:54 +0000] [37896] [INFO] Booting worker with pid: 37896
[2018-08-20 17:14:17 +0000] [38320] [INFO] Starting gunicorn 19.9.0
[2018-08-20 17:14:17 +0000] [38320] [ERROR] Connection in use: ('0.0.0.0', 8081)
[2018-08-20 17:14:17 +0000] [38320] [ERROR] Retrying in 1 second.
Pict Sle even ame emer. 2 Cd Med eS ge) Mara ee Pe OL LCE So org
[2018-08-20 17:14:17 +0000] [37896] [INFO] Worker exiting (pid: 37896)
[2018-08-20 17:14:18 +0000] [38320] [INFO] Listening at: http://0.0.0.0:8081 (38320)
[2018-08-20 17:14:18 +0000] [38320] [INFO] Using worker: geventwebsocket .gunicorn.workers .GeventwWebSocketWorke
[2018-08-20 17:14:18 +0000] [38332] [INFO] Booting worker with pid: 38332
[2018-08-20 17:17:37 +0000] [38332] [INFO] Parent changed, shutting down: <Worker 38332>
[2018-08-20 17:17:37 +0000] [38332] [INFO] Worker exiting (pid: 38332)
[2018-08-20 17:17:37 +0000] [38712] [INFO] Starting gunicorn 19.9.0
[2018-08-20 17:17:37 +0000] [38712] [INFO] Listening at: http://0.0.0.0:8888 (38712)
[2018-08-20 17:17:37 +0000] [38712] [INFO] Using worker: geventwebsocket .gunicorn.workers .GeventwebSocketWorke
[2018-08-20 17:17:37 +0000] [38717] [INFO] Booting worker with pid: 38717
Error:BT-Panel service startup failed.

故障原因:

  1. 网络波动导致无法将宝塔文件写入到/etc/init.d/bt 这个系统文件
  2. 源文件缺失

解决方法:

在SSH中运行:

mv /etc/init.d/bt   /tmp/bt_back
cp /www/server/panel/init.sh  /etc/init.d/bt && chmod +x  /etc/init.d/bt
/etc/init.d/bt  restart
未经允许不得转载:pc6a学习分享 » 宝塔安装后启动报错./etc/init.d/bt: line 27: gunicorn: command not found
阿里云轻量应用服务器

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址