Updated Configure Shadowsocks with Supervisor (markdown)
parent
5f467bee16
commit
5d3894c6cb
1 changed files with 33 additions and 9 deletions
|
@ -2,15 +2,6 @@
|
|||
|
||||
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`
|
||||
|
||||
```
|
||||
|
@ -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`
|
||||
|
||||
```
|
||||
|
@ -50,4 +51,27 @@ You can check logs or control the shadowsocks process:
|
|||
```
|
||||
supervisorctl tail -f shadowsocks stderr
|
||||
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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue