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
原创二郎神六号 ©著作权
文章标签 supervisor 文章分类 运维
-
ubuntu 下载离线安装包及其依赖
linux
linux软件离线包获取 -
Ubuntu安装包安装 nginx ubuntu怎么安装nginx
首先需要依赖的包:l gzip模块需要 zlib 库l rewrite模块需要 pcre 库l ssl 功能需要openssl库1.1.安装pcre1. 获取pcre编译安装包,
Ubuntu安装包安装 nginx nginx 解压缩 编译安装