1拗小、一鍵安裝 shadowsocks-go 版
wget –no-check-certificate https://tangyuecan.com/shadowsocks-go.sh
chmod +x shadowsocks-go.sh
./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log
2重罪、開始配置Shadowsock相關(guān)的密碼、端口號(hào)哀九、加密方式
#############################################################
# One click Install Shadowsocks-Python server #
# Intro: https://tangyuecan.com #
# Author: tangyuecan #
# Github: https://github.com/shadowsocks/shadowsocks-go #
#############################################################
3剿配、在上訪提示中輸入你的密碼6666
Please input password for shadowsocks-go
(Default password: teddysun.com):6666
4、在上方提示中輸入你的端口號(hào)阅束,注意端口號(hào)最好想個(gè)比較特殊的
Please input port for shadowsocks-go [1-65535]
(Default port: 8989):8888
5呼胚、在上方選擇你的加密方式,通常用默認(rèn)的息裸,如果用默認(rèn)可以直接回車
Please select stream cipher for shadowsocks-python:
1) aes-256-gcm
2) aes-192-gcm
3) aes-128-gcm
4) aes-256-ctr
5) aes-192-ctr
6) aes-128-ctr
7) aes-256-cfb
8) aes-192-cfb
9) aes-128-cfb
10) camellia-128-cfb
11) camellia-192-cfb
12) camellia-256-cfb
13) chacha20-ietf-poly1305
14) chacha20-ietf
15) chacha20
16) rc4-md5
Which cipher you'd select(Default: aes-256-gcm):
6蝇更、然后在本地下載并安裝(影梭)Shadowsock的win版本,在手機(jī)上也有對(duì)應(yīng)的Android和IOS版本呼盆,可自行下載安裝年扩, 配置時(shí)候只要輸入IP、端口號(hào)宿亡、密碼即可
Windows
https://github.com/shadowsocks/shadowsocks-windows/releases
Mac OS X
https://github.com/shadowsocks/ShadowsocksX-NG/releases
linux
https://github.com/shadowsocks/shadowsocks-qt5/wiki/Installation
https://github.com/shadowsocks/shadowsocks-qt5/releases
iOS
https://itunes.apple.com/app/apple-store/id1070901416?pt=2305194&ct=shadowsocks.org&mt=8
https://github.com/shadowsocks/shadowsocks-iOS/releases
https://play.google.com/store/apps/details?id=com.github.shadowsocks
https://github.com/shadowsocks/shadowsocks-android/releases
7常遂、Centos 配置防火墻端口
# 開啟端口號(hào)8888
$ firewall-cmd --permanent --zone=public --add-port=8888/tcp
$ firewall-cmd --reload
8、添加systemctl服務(wù)
vi shadowsocks.service
[Unit]
Description=shadowsocks
After=network.target
[Service]
Type=forking
ExecStart=/etc/init.d/shadowsocks start
ExecReload=/etc/init.d/shadowsocks restart
ExecStop=/etc/init.d/shadowsocks stop
PrivateTmp=true
[Install]
WantedBy=multi-user.target
9挽荠、常用命令
# start | stop | restart | status
# 重啟
/etc/init.d/shadowsocks restart
#卸載
./shadowsocks.sh uninstall
#重載系統(tǒng)服務(wù):
systemctl daemon-reload
#設(shè)置開機(jī)啟動(dòng):
systemctl enable shadowsocks.service
#啟動(dòng)服務(wù):
systemctl start shadowsocks.service
#停止服務(wù):
systemctl stop shadowsocks.service
#重啟服務(wù):
systemctl reload shadowsocks.service
[為了能夠提高上網(wǎng)速度克胳,YouTube從480 體驗(yàn)為1080。我們接下來進(jìn)行安裝加速軟件(速銳圈匆、BBR兩者選其一漠另,不可共存)。]
BBR加速特別簡單跃赚,復(fù)制下面腳本代碼即可笆搓。 谷歌BBR加速腳本:
第一個(gè)指令:wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
第二個(gè)指令:chmod +x bbr.sh
第三個(gè)指令:./bbr.sh
重新連接后性湿,輸入 lsmod | grep bbr 查看BBR是否啟動(dòng),可以看到已經(jīng)啟動(dòng)了满败。