安装ss
1 | pip install shadowsocks |
创建配置文件 /etc/shadowsocks.json
1 2 3 4 5 6 7 8 9 10 11 | { "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 } |
配置自启动
1 2 3 4 5 6 7 8 9 10 | [Unit] Description=Shadowsocks [Service] TimeoutStartSec=0 ExecStart= /usr/bin/ssserver -c /etc/shadowsocks .json |
执行以下命令启动 shadowsocks 服务:
1 2 3 4 5 | systemctl enable shadowsocks systemctl start shadowsocks systemctl status shadowsocks -l |
最后要检查一下端口(12000)是否开放 要不然没办法使用代理