Skip to content

Instantly share code, notes, and snippets.

@Arion-Dsh
Last active December 21, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arion-Dsh/6325973 to your computer and use it in GitHub Desktop.
Save Arion-Dsh/6325973 to your computer and use it in GitHub Desktop.
supervisor配置文件
# -*- 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