From 6afb88796d56bc7c945f3253e0dfbbd46bb83f22 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Sun, 7 Dec 2014 02:29:46 -0800 Subject: [PATCH] =?UTF-8?q?Updated=20=E7=94=A8=20Supervisor=20=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=20Shadowsocks=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 用-Supervisor-运行-Shadowsocks.md | 34 +------------------------------ 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/用-Supervisor-运行-Shadowsocks.md b/用-Supervisor-运行-Shadowsocks.md index 049e4ae..2fee8db 100644 --- a/用-Supervisor-运行-Shadowsocks.md +++ b/用-Supervisor-运行-Shadowsocks.md @@ -56,36 +56,4 @@ Debian 如果修改了 Supervisor 的配置文件 `/etc/supervisor/*`, 可以更新 supervisor 配置: - 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 \ No newline at end of file + supervisorctl update \ No newline at end of file