狠狠撸
Submit Search
Supervisord ???? ??? ????!
?
0 likes
?
2,180 views
Kwangsik Lee
??? ??? ???? ??? ???? ?? supervisord? ???? ???? ??? ????.
Read less
Read more
1 of 15
Download now
Download to read offline
More Related Content
Supervisord ???? ??? ????!
1.
Supervisord???????????! 1
2.
?? ???????????????????supervisord??????? ?????????. ??????????supervisord??????daemon???? ?????tool??. 2
3.
??? ?????????????. $ sudo apt-get
install supervisor 3
4.
supervisord?????? ??????????. $ sudo service
supervisor start $ sudo service supervisor status 4
5.
??? $ supervisorctl help 5
6.
supervisorconf??? $ supervisorctl reread 6
7.
???? spv.conf ????????????. [program:webhook] command=/usr/bin/node /srv/http.js
# ??? directory=/srv # ?? ???? autostart=yes autorestart=yes startretries=3 # Fail? ?? ?? ???? ????? sterr_logfile=/var/log/webhook/webhook.err.log stdout_logfile=/var/log/webhook/webhook.log user=www-data # ?? user environment=SECRET_PASSWORD='this is secret',SECRET_TWO='anothe 7
8.
???????? ?????? webhook ???????. $
supervisorctl start webhook 8
9.
supervisor?????? $ supervisorctl status 9
10.
processoutputtail supervisorctl????? > tail -f
webhook 10
11.
????? n?nobackgroundprocess edebug?????? c?conf?? $ supervisord -n
-edebug -c supervisord.conf 11
12.
WebUI http://localhost:23233/????UI?????? 12
13.
???????? 13
14.
???? supervisord?RPCAPI?????crashreport????,sms,???? ??????????. 14
15.
???? ProcessMonitoringwithSupervisord ChrisMcDonough?UsingSupervisorForFunAndProfit?PyCon 2015 15
Download