Last active
December 21, 2015 15:19
-
-
Save Arion-Dsh/6325973 to your computer and use it in GitHub Desktop.
supervisor配置文件
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- conf -*- | |
[include] | |
files = *.supervisor | |
[supervisord] | |
[supervisorctl] | |
serverurl = unix://supervisord.sock | |
[unix_http_server] | |
file = supervisord.sock | |
[rpcinterface:supervisor] | |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | |
[program:simpleas.me] | |
process_name = main-%(process_num)s | |
command = python /srv/www/simpleas.me/runserver.py #你的tornado app | |
--port=%(process_num)s | |
--log_file_prefix=%(here)s/logs/%(program_name)s-%(process_num)s.log | |
directory=/srv/www/simpleas.me | |
user=root #添加权限不然不能上传图片 | |
autorestart=true | |
numprocs = 4 | |
numprocs_start = 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment