supervisor管理django程序

1.安装supervisor

easy_install supervisor   或者   pip install supervisor

2.生成supervisor的配置文件

echo_supervisord_conf > /etc/supervisord.conf

3.指定配置文件

supervisord    -c  /etc/supervisord.conf

4.supervisord.conf

 

[program: program_name]

command=python /opt/xxxx/xxx/run_server.py ; the program (relative uses PATH, can take args)

5.更新配置文件

supervisorctl update

6. supervisorctl 命令

supervisorctl start program

supervisorctl stop program

supervisorctl restart program

 

 

 

你可能感兴趣的:(项目管理工具)