Updated Configure Shadowsocks with Supervisor (markdown)

clowwindy 2014-11-01 08:06:40 -07:00
parent 5f467bee16
commit 5d3894c6cb

@ -2,15 +2,6 @@
If you want to run Shadowsocks in the background, use supervisor. If you want to run Shadowsocks in the background, use supervisor.
Here is an example of running shadowsocks with supervisor on Debian 7.0:
Run
```
apt-get update
apt-get install python-pip python-m2crypto supervisor
pip install shadowsocks
```
Edit `/etc/shadowsocks.json` Edit `/etc/shadowsocks.json`
``` ```
@ -24,6 +15,16 @@ Edit `/etc/shadowsocks.json`
} }
``` ```
Debian
------
Run
```
apt-get update
apt-get install python-pip python-m2crypto supervisor
pip install shadowsocks
```
Edit `/etc/supervisor/conf.d/shadowsocks.conf` Edit `/etc/supervisor/conf.d/shadowsocks.conf`
``` ```
@ -50,4 +51,27 @@ You can check logs or control the shadowsocks process:
``` ```
supervisorctl tail -f shadowsocks stderr supervisorctl tail -f shadowsocks stderr
supervisorctl restart shadowsocks supervisorctl restart shadowsocks
```
CentOS
------
Edit `/etc/supervisord.conf`, add
```
[program:shadowsocks]
command=ssserver -c /etc/shadowsocks.json
autorestart=true
user=nobody
```
Run
```
sudo yum install python-pip supervisor
sudo pip install shadowsocks
sudo chkconfig --add supervisord
sudo chkconfig supervisord on
service supervisor start
supervisorctl reload
``` ```