安装ss
pip install shadowsocks
创建配置文件 /etc/shadowsocks.json
{
"server": "0.0.0.0",
"server_port": 12000,
"local_address": "127.0.0.1",
"local_port": 12000,
"password": "yourpassword",
"timeout": 300,
"method": "aes-256-cfb",
"fast_open": true,
"workers": 1
}
配置自启动
[Unit] Description=Shadowsocks [Service] TimeoutStartSec=0 ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json
执行以下命令启动 shadowsocks 服务:
systemctl enable shadowsocks systemctl start shadowsocks systemctl status shadowsocks -l
最后要检查一下端口(12000)是否开放 要不然没办法使用代理