Page:
							Configure Shadowsocks with Supervisor
						
						
					
					
							Pages
							
							
								Ban Brute Force Crackers
							
								Block Connection to localhost
							
								Change Server on the Fly
							
								Configuration via Config File
							
								Configure Multiple Users
							
								Configure Shadowsocks with Supervisor
							
								Connect to OpenVPN over Shadowsocks
							
								Convert Shadowsocks into an HTTP proxy
							
								Encryption
							
								Feature Comparison across Different Versions
							
								Forcing Chrome to Use Socks5 Proxy
							
								Generate QR Code for Android or iOS Clients
							
								Gentoo overlay
							
								Graceful shutdown and restart
							
								Home
							
								Install Shadowsocks Server on Windows
							
								Manage Multiple Users
							
								Objective
							
								Optimizing Shadowsocks
							
								Ports and Clients
							
								Salsa20
							
								Securing Public Shadowsocks Server
							
								Setting Up Shadowsocks on Linode
							
								Setup a Shadowsocks relay
							
								Shadowsocks 使用说明
							
								TCP Fast Open
							
								Troubleshooting
							
								Using Shadowsocks with Command Line Tools
							
								Workers
							
								优化 Shadowsocks
							
								回复模版
							
								在 Linode 上快速搭建 Shadowsocks
							
								用 Supervisor 运行 Shadowsocks
							
						
					No results
				
					25 
					Configure Shadowsocks with Supervisor
					
				
						
						clowwindy edited this page 2014-12-27 08:15:13 -08:00 
					
				Notice: from Shadowsocks 2.6, you can run Shadowsocks directly in the background without Supervisor. This saves RAM for the extra supervisor process.
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop
For old versions:
Edit /etc/shadowsocks.json
{
    "server":"my ip",
    "server_port":8388,
    "local_port":1080,
    "password":"my password",
    "timeout":600,
    "method":"aes-256-cfb"
}
Run
apt-get update
apt-get install python-pip python-m2crypto supervisor
pip install shadowsocks
Edit /etc/supervisor/conf.d/shadowsocks.conf
[program:shadowsocks]
command=ssserver -c /etc/shadowsocks.json
autorestart=true
user=nobody
Add the following line into /etc/default/supervisor
ulimit -n 51200
Run
service supervisor start
supervisorctl reload
Now it's up.
You can check logs or control the shadowsocks process:
supervisorctl tail -f shadowsocks stderr
supervisorctl restart shadowsocks