阿里雲香港代理服務器搭建方式:
1.阿里雲官網購買輕量級服務器即可,流量,配置套餐自己選擇,CENTOS7,進入控制台后打開端口管理列表,打開9000即可。
2.安裝shadownsocks服務端:
a)安裝pip: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py ->
python get-pip.py
b)安裝shadownsocks:
c)配置shadownsocks: pip install shadowsocks
注意pip 版本問題 :升級: pip install --upgrade pipvi /etc/shadowsocks.json
{ "server":"0.0.0.0", "server_port":50013, "local_port":1080, "password":"1234567890", "timeout":600, "method":"aes-256-cfb" }
d)加入系統服務及開機啟動: 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
e)客戶端下載:windows:https://github.com/shadowsocks/shadowsocks-windows/releases
Android:https://github.com/shadowsocks/shadowsocks-android/releases