CentOS7 搭建 ShadowSocks
Shadowsocks for Windows 客户端下载:
https://github.com/shadowsocks/shadowsocks-windows/releases
安装步骤
mkdir /home/shadowsocks
cd /home/shadowsocks
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev.sh
chmod +x shadowsocks-libev.sh
./shadowsocks-libev.sh 2>&1 | tee shadowsocks-libev.log
设置密码:
默认phpwebhome.com
设置端口:
默认 8989
然后按任意键开始安装,接下来就是等它安装完
安装完之后会看到这个界面
Congratulations, shadowsocks-libev install completed!
Your Server IP:your_server_ip
Your Server Port:your_server_port
Your Password:your_password
Your Local IP:127.0.0.1
Your Local Port:1080
Your Encryption Method:aes-256-cfbWelcome to visit:http://blog.phpwebhome.com/?p=450
Enjoy it!
查看是否已经安装成功
ps -ef | grep ss-server | grep -v ps | grep -v grep
卸载命令
cd /home/shadowsocks # 进入 shadowsocks-libev.sh 所在目录
./shadowsocks-libev.sh uninstall
其他命令
service shadowsocks start # 启动
service shadowsocks stop # 停止
service shadowsocks restart # 重启
更改 shadowsock 的配置
nano /etc/shadowsocks-libev/config.json
支持 IPv4 与 IPv6
{
"server":["[::0]","0.0.0.0"],
"server_port":your_server_port,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"your_password",
"timeout":600,
"method":"aes-256-cfb"
}
转载请注明:RAIN MAN » CentOS7 搭建 ShadowSocks
还没有人抢沙发呢~