Updated 用 Supervisor 运行 Shadowsocks (markdown)
parent
50cc05705f
commit
6afb88796d
1 changed files with 1 additions and 33 deletions
|
@ -56,36 +56,4 @@ Debian
|
||||||
如果修改了 Supervisor 的配置文件 `/etc/supervisor/*`,
|
如果修改了 Supervisor 的配置文件 `/etc/supervisor/*`,
|
||||||
可以更新 supervisor 配置:
|
可以更新 supervisor 配置:
|
||||||
|
|
||||||
supervisorctl update
|
supervisorctl update
|
||||||
|
|
||||||
CentOS
|
|
||||||
------
|
|
||||||
|
|
||||||
运行
|
|
||||||
|
|
||||||
```
|
|
||||||
yum install python-setuptools supervisor
|
|
||||||
easy_install pip
|
|
||||||
pip install shadowsocks
|
|
||||||
```
|
|
||||||
编辑 `/etc/supervisord.conf`, 添加
|
|
||||||
|
|
||||||
```
|
|
||||||
[program:shadowsocks]
|
|
||||||
command=ssserver -c /etc/shadowsocks.json
|
|
||||||
autorestart=true
|
|
||||||
user=nobody
|
|
||||||
```
|
|
||||||
|
|
||||||
运行
|
|
||||||
|
|
||||||
```
|
|
||||||
sudo chkconfig --add supervisord
|
|
||||||
sudo chkconfig supervisord on
|
|
||||||
service supervisord start
|
|
||||||
supervisorctl reload
|
|
||||||
```
|
|
||||||
|
|
||||||
编辑 `/etc/sysconfig/iptables`,添加
|
|
||||||
|
|
||||||
-A INPUT -m state --state NEW -m tcp -p tcp --dport your_server_port -j ACCEPT
|
|
Loading…
Add table
Add a link
Reference in a new issue