Shadowsocks是一种基于Socks5代理协议的科学上网工具,可以帮助用户突破网络封锁和访问被屏蔽的网站。本教程将指导您如何在CentOS 6上安装Shadowsocks。
yum update -y
yum install epel-release -y
yum install python-pip -y
yum install git -y
git clone https://github.com/shadowsocks/shadowsocks.git
cd shadowsocks
pip install -r requirements.txt
python setup.py install
cp ap-sample.json ap.json
编辑配置文件ap.json,并填写服务器相关信息。
启动Shadowsocks服务:
ssserver -c ap.json -d start
ssserver -c ap.json -d status
pip install --upgrade shadowsocks
ssserver -c ap.json -d start
ssserver -c ap.json -d stop
ssserver -c ap.json -d status
pip uninstall shadowsocks