基本操作命令
- 包括--pid-file ss1.pid
0x00 選擇價(jià)位
-
以促銷信息為準(zhǔn)(2$/Mon)
創(chuàng)建界面 - Networking中開啟IPv6
- 原始密碼會(huì)發(fā)郵件,可以在Access中重新獲取
- 使用Xshell連接服務(wù)器,輸入IP/root/初始密碼
- 修改原始密碼
passwd
#輸入密碼兩次
0x01 安裝ss
#安裝更新pip
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
pip install --upgrade pip
#安裝ss
pip install shadowsocks
#設(shè)置ss配置文件
vi /etc/shadowsocks.json
#輸入
{
"server":"::",
"port_password":{
"8388":"19951006",
"8366":"19950805"
},
"timeout":300,
"method":"aes-256-cfb"
}
0x02 設(shè)置啟動(dòng)
- 后臺(tái)啟動(dòng)
ssserver -c /etc/shadowsocks.json -d start
- 腳本啟動(dòng)
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
#查看服務(wù)的狀態(tài)
systemctl status shadowsocks -l
啟動(dòng)ss
- 防火墻
確認(rèn)服務(wù)啟動(dòng)成功后,配置防火墻規(guī)則,開放你配置的端口:
firewall-cmd --zone=public --add-port=8388/tcp --permanent
firewall-cmd --zone=public --add-port=8366/tcp --permanent
firewall-cmd --reload
0x03 開啟BBR
選擇系統(tǒng)CentOS 7.5 Server - 64 Bit (Latest Kernel + BBR) 默認(rèn)使用BBR
