Home  >  Q&A  >  body text

python - supervisor 启动时 can't find command的问题

supervisor 启动时 can't find command的问题
配置如下

[program:kshuba]
command=/usr/sbin/uwsgi --ini /www/kshuba/uwsgi.ini & /usr/sbin/nginx
stopsignal=QUIT
autostart=true
autorestart=true
stdout_logfile=/data/logs/sup_ksb.log
redirect_stderr=true
directory=/usr/sbin/

其中

/usr/sbin/uwsgi --ini /www/kshuba/uwsgi.ini & /usr/sbin/nginx

命令 如果直接运行的话是没有问题的,还有/data/logs/sup_ksb.log日志一直未空
请问怎么解决

PHP中文网PHP中文网2740 days ago1476

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-18 09:48:39

    Check under the bin of the python installation directory to see if it is set as a system environment variable

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 09:48:39

    Confirm whether the path of uwsgi is really /usr/sbin/uwsgi.
    You can use the following command
    $type uwsgi

    refer here:
    https://ma.ttias.be/superviso...

    reply
    0
  • Cancelreply