安装shadowsock时参考的是文末的链接,这里我只列出主要命令:
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
pip install -U pip
pip install shadowsocks
vim /etc/shadowsocks.json:
{
"server": "0.0.0.0",
"server_port": 8388,
"password": "uzonxxxx7722",
"method": "aes-256-cfb"
}
vim /etc/systemd/system/shadowsocks.service
[Unit]
Description=Shadowsocks
[Service]
TimeoutStartSec=0
ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json
[Install]
WantedBy=multi-user.target
systemctl enable shadowsocks
systemctl start shadowsocks
systemctl status shadowsocks -l
firewall-cmd --permanent --add-port=8388/tcp
firewall-cmd --reload
完全参考: morning.work