0%

ss

78.141.222.176

ssh root@78.141.222.176


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

python get-pip.py

pip install shadowsocks

vi /etc/shadowsocks.json

{
“server”:”0.0.0.0”,
“server_port”:443,
“local_port”:1080,
“password”:”1234567890”,
“timeout”:600,
“method”:”aes-256-cfb”
}

vi /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

firewalld(centos7)

systemctl stop firewalld

https://www.4spaces.org/centos-open-porter/