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
Ubuntu安裝supervisor
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.