Install Shadowsocks Manyuser on Debian - Ahref-Group/SS-Panel-smarty-Edition GitHub Wiki
apt-get install python-pip git python-m2crypto
pip install cymysql
git clone -b manyuser https://github.com/mengskysama/shadowsocks.git
cd /shadowsocks/shadowsocks
# 修改数据库信息/Change SQL info
vim Config.py
# 跑看看/Trial Run
python server.py
# 安装supervisor/Install supervisor
apt-get install python-pip python-m2crypto supervisor
# 编辑文件/Edit File
vim /etc/supervisor/conf.d/shadowsocks.conf
输入(dir路径记得修改)/Input (remember to change dir)
[program:shadowsocks]
command=python /dir/server.py -c /dir/config.json
autorestart=true
user=root
启动/Start
service supervisor start
supervisorctl reload
修改以下文件/Edit the following files
/etc/profile
/etc/default/supervisor
结尾添加3行/Add 3 lines at the end of the file
ulimit -n 51200
ulimit -Sn 4096
ulimit -Hn 8192
debug查看日志/debug
supervisorctl tail -f shadowsocks stderr
启动/重启/停止
Start/Restart/Stop
supervisorctl start/restart/stop shadowsocks