Last active
July 17, 2018 18:38
-
-
Save candyan/7c57c8d5eae263940f88ff38ef52bd86 to your computer and use it in GitHub Desktop.
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
#/bin/sh | |
yum install git -y | |
yum install vim -y | |
yum install wget -y | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
python get-pip.py | |
git clone https://github.com/candyan/shadowsocks-py-mu.git -b berrylab | |
pip install supervisor | |
mkdir -p /var/log/supervisor/ | |
mkdir -p /etc/supervisord/conf.d | |
wget https://gist.githubusercontent.com/candyan/7c57c8d5eae263940f88ff38ef52bd86/raw/60b678ec6e364751e6daf04f530e0edf9dcda7b9/supervisord.conf -O /etc/supervisord/supervisord.conf | |
wget https://gist.githubusercontent.com/candyan/7c57c8d5eae263940f88ff38ef52bd86/raw/60b678ec6e364751e6daf04f530e0edf9dcda7b9/conf.d_sservers.conf -O /etc/supervisord/conf.d/sservers.conf | |
wget https://gist.githubusercontent.com/mozillazg/6cbdcccbf46fe96a4edd/raw/2f5c6f5e88fc43e27b974f8a4c19088fc22b1bd5/supervisord.service -O /usr/lib/systemd/system/supervisord.service | |
systemctl start supervisord | |
systemctl status supervisord | |
systemctl enable supervisord |
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
[program:sservers] | |
directory = /root/shadowsocks-py-mu/shadowsocks | |
command = /usr/bin/python servers.py | |
autostart = true ; �~\� supervisord �~P��~J��~Z~D�~W��~@~Y�~_�~G��~J��~P��~J� | |
startsecs = 5 ; �~P��~J� 5 �~R�~P~N没�~\~I�~B常�~@~@�~G��~L就�~S�~\已�~O正常�~P��~J��~F | |
autorestart = true ; �~K�~O�~B常�~@~@�~G��~P~N�~G��~J��~G~M�~P� | |
startretries = 3 ; �~P��~J�失败�~G��~J��~G~M�~U次�~U��~L�~X认�~X� 3 | |
user = root ; �~T��~S�个�~T��~H��~P��~J� | |
redirect_stderr = true ; �~J~J stderr �~G~M�~Z�~P~Q�~H� stdout�~L�~X认 false |
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
## http://supervisord.org/configuration.html | |
[unix_http_server] | |
file=/var/run/supervisord.sock | |
chmod=0777 | |
[inet_http_server] | |
### | |
### Important: You have to change this | |
port = 9292 | |
username = hack_me | |
password = hack_me | |
### | |
[supervisord] | |
logfile=/var/log/supervisor/supervisord.log | |
pidfile=/var/run/supervisord.pid | |
childlogdir=/var/log/supervisor | |
logfile_maxbytes=100MB | |
logfile_backups=10 | |
loglevel=info | |
nodaemon=false | |
minfds=1024 | |
minprocs=300 | |
[rpcinterface:supervisor] | |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | |
[supervisorctl] | |
serverurl=unix:///var/run/supervisord.sock | |
[include] | |
files = /etc/supervisord/conf.d/*.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment