shadowsocks服務端配置

wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log

卸載命令:

./shadowsocks.sh uninstall

配置文件路徑:

/etc/shadowsocks.json

默認配置

{
    "server":"0.0.0.0",
    "server_port":8989,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"你的密碼",
    "timeout":300,
    "method":"aes-256-gcm",
    "fast_open":false
}

server: 服務器ip地址
server_port: 綁定的端口,注意不要設置已經使用了的端口
possword: 密碼
timeout: 超時時間
method: 加密方法
fast_open: 如果你的服務器 Linux 內核在3.7+,可以開啓 fast_open 以降低延遲

配置多個賬號密碼

{
"server":"0.0.0.0",
"port_password":{
     "8381":"password1",
     "8382":"password2",
     "8383":"password3",
     "8384":"password4"
     },
"timeout":300,
"method":"aes-256-gcm",
"fast_open":false
}

啓動shadowsocks

啓動:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重啓:/etc/init.d/shadowsocks restart
狀態:/etc/init.d/shadowsocks status
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章