阿里云香港代理服务器搭建方式:
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