1.apt install python-setuptools 2.easy_install supervisor 3.echo_supervisord_conf > /etc/supervisord.conf 4.修改配置 /etc/supervisord.conf [include] files = /etc/supervisord.conf.d/*.conf 5.新建管理的应用 cd /etc/supervisord.conf.d vim app.conf 配置文件: [program:app] directory = /opt/app/app command = /opt/app/app/apppkg autostart = true startsecs = 5 user = root redirect_stderr = true stdout_logfile = /var/log/supervisord/apppkg.log
原文链接:https://www.f2er.com/ubuntu/350453.html