一、安装步骤

shadowsocks

yum install m2crypto
easy_install pip
pip install shadowsocks

libsodium

wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
tar zxf LATEST.tar.gz
cd libsodium*
./configure
make && make install

# 共享链接库
echo /usr/local/lib >> /etc/ld.so.conf
ldconfig

二、配置文件

vi /etc/shadowsocks.json
{
    "server":"0.0.0.0",
    "server_port":137,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"pwd123",
    "timeout":300,
    "method":"chacha20",
    "fast_open":false
}

三、开机启动&立即启动

CentOS7环境下执行以下命令即可实现开机启动

1、chmod +x /etc/rc.d/rc.local

2、echo “ssserver -c /etc/shadowsocks.json -d start” >> /etc/rc.local


执行ssserver -c /etc/shadowsocks.json -d start立即启动ss代理


转载本站文章请注明,转载自:伟哥的技术博客 https://www.wuxiaowei.com

本文永久链接: https://www.wuxiaowei.com/vps/centos7%e7%8e%af%e5%a2%83%e5%ae%89%e8%a3%85shadowsocks%e5%b9%b6%e4%bd%bf%e7%94%a8chacha20%e5%8a%a0%e5%af%86/