vps

下载get-pip.py

1
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"

执行get-pip.py

1
python get-pip.py

安装pip

1
pip install --upgrade pip

安装shadowsocks

1
pip install shadowsocks

配置文件

1
2
3
4
5
6
7
8
vi /etc/shadowsocks.json

{
"server": "0.0.0.0",
"server_port": 2018,
"password": "12345678",
"method": "aes-256-cfb"
}

启动shadowsocks

1
ssserver -c /etc/shadowsocks.json -d start

关闭防火墙

1
2
systemctl stop firewalld.service

关闭shadowsocks

1
ssserver -c /etc/shadowsocks.json -d stop