安装
apt update
apt install python-pip
pip install shadowsocks
配置
vi /etc/shadowsocks.json
{
"server":"0.0.0.0",
"server_port":50013,
"local_port":1080,
"password":"1234567890",
"timeout":600,
"method":"aes-256-cfb"
}
/usr/local/bin/ssserver -c /etc/shadowsocks.json
/usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py
请你将此文件中的52行和111行中的cleanup
更新为reset
后,再尝试启动。这是由于openssl库更新导致名称变更的问题。
开机自启动
vi /etc/systemd/system/shadowsocks.service
[Unit]
Description=Shadowsocks
[Service]
TimeoutStartSec=0
ExecStart=/usr/local/bin/ssserver -c /etc/shadowsocks.json
[Install]
WantedBy=multi-user.target
systemctl enable shadowsocks
systemctl start shadowsocks
systemctl status shadowsocks
ps -aux | grep ssserver