supervisor进程管理
以supervisor管理celery进程为例 一 安装supervisor 二 配置 三 启动和关闭 四 打开web监听 安装supervisor python3 无法直接使用pypi源安装, 使用 pip3 install git+https://github.com/Supervisor/supervisor 配置 生成默认的配置文件 echo_supervisord_conf > /etc/supervisord.conf 添加自定义配置 在生成的conf文件最后添加 [program:tiis_is_name] command=/home/wukt/.virtualenvs/p3.6/bin/celery worker -l INFO -c 1 -A flaskrun.celery –beat –loglevel debug –logfile celery_beat.log stdout_logfile=celeryd.log stderr_logfile=celeryd.log autostart=true […]