macOS pip 配置 supervisor

macOS 10.13.6

etc目录在/usr/local/etc

1
2
mkdir -p /usr/local/etc/supervisor/
echo_supervisord_conf > /usr/local/etc/supervisor/supervisord.conf

vim /usr/local/etc/supervisor/supervisord.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[inet_http_server]         
port=127.0.0.1:9001

[supervisord]
logfile=/usr/local/etc/supervisor/supervisord.log
logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB
logfile_backups=10 ; # of main logfile backups; 0 means none, default 10
loglevel=info ; log level; default info; others: debug,warn,trace
pidfile=/usr/local/etc/supervisor/supervisord.pid

[supervisorctl]
serverurl=http://127.0.0.1:9001
serverurl=unix:///usr/local/etc/supervisor/supervisor.sock

[include]
files = /usr/local/etc/supervisor/conf.d/*.conf

启动supervisor

1
supervisord -c /usr/local/etc/supervisor/supervisord.conf

×

纯属好玩

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

文章目录
,