安装
代码语言:txt
复制sudo apt-get install supervisor
卸载
代码语言:txt
复制sudo apt purge supervisor
查找
代码语言:txt
复制whereis supervisord
配置
代码语言:txt
复制vim /etc/supervisor/conf.d/tangpoetryapi.conf
代码语言:txt
复制[program:tangpoetryapi]
command=/home/vine/develop/tangpoetry/tangpoetryapi/.build/release/Run serve --env production
directory=/home/vine/develop/tangpoetry/tangpoetryapi/
user=vine
stdout_logfile=/var/log/supervisor/%(program_name)-stdout.log
stderr_logfile=/var/log/supervisor/%(program_name)-stderr.log
开启
代码语言:txt
复制supervisorctl reread
supervisorctl add tangpoetryapi
supervisorctl start tangpoetryapi