Updated 用 Supervisor 运行 Shadowsocks (markdown)

clowwindy 2014-07-01 12:28:06 -07:00
parent 8eae542ef4
commit 91e1f3edba

@ -1,6 +1,9 @@
如果你想在后台运行 Shadowsocks可以使用 Supervisor它可以方便地监控和控制任何程序实现开机自动启动和后台运行。 如果你想在后台运行 Shadowsocks可以使用 Supervisor
它可以方便地监控和控制任何程序,实现开机自动启动和后台运行。
下面是 Debian 和 Ubuntu 上的配置方法(如果你是 Linux 新手,不需要 SELinux也不了解防火墙配置也弄不清楚 RHEL 和 CentOS 的版本机制,那就用 Debian 或 Ubuntu 吧,别折腾了): 下面是 Debian 和 Ubuntu 上的配置方法(如果你是 Linux 新手,
不需要 SELinux也不了解防火墙配置也弄不清楚 RHEL 和
CentOS 的版本机制,那就用 Debian 或 Ubuntu 吧,别折腾了):
- 1. 执行 - 1. 执行
``` ```
@ -46,10 +49,16 @@ supervisorctl reload
``` ```
就好了。 就好了。
你可以检查日志或者控制 Shadowsocks 的运行: 如果遇到问题,可以检查日志:
```
supervisorctl tail -f shadowsocks stderr
supervisorctl restart shadowsocks
```
如果更新了 Supervisor 的配置文件(`/etc/supervisor.d/*.conf`),可以 `supervisorctl update` 来更新配置。 supervisorctl tail -f shadowsocks stderr
如果修改了 shadowsocks 配置 `/etc/shadowsocks.json`,可以重启:
supervisorctl restart shadowsocks
如果修改了 Supervisor 的配置文件 `/etc/supervisor/*`
可以更新 supervisor 配置:
supervisorctl update