Centos 搭建Shadowsocks-Go或ShadowsocksR

/ 0评 / 0

首先编译安装一下chacha20算法:

yum install m2crypto gcc -y
wget -N --no-check-certificate https://download.libsodium.org/libsodium/releases/libsodium-1.0.8.tar.gz
tar zfvx libsodium-1.0.8.tar.gz
cd libsodium-1.0.8
./configure
make && make install
echo "include ld.so.conf.d/*.conf"> /etc/ld.so.conf
echo "/lib">> /etc/ld.so.conf
echo "/usr/lib64">> /etc/ld.so.conf
echo "/usr/local/lib">> /etc/ld.so.conf
ldconfig

安装Shadowsocks-Go

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-go.sh
chmod +x shadowsocks-go.sh
./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log

安装期间会提示设置端口和密码,按照提示输入即可,安装完成后修改下配置文件/etc/shadowsocks/config.json

其它命令:

启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status

卸载:./shadowsocks-go.sh uninstall

之后restart一下ss服务端即可


安装ShadowsocksR:

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/shadowsocks_install/master/shadowsocksR.sh && bash shadowsocksR.sh

执行命令时依然会提示输入端口和密码

其它命令:

启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status

配置文件路径:/etc/shadowsocks.json

日志文件路径:/var/log/shadowsocks.log
安装路径:/usr/local/shadowsocks/shadowsoks

卸载:./shadowsocksR.sh uninstall

多用户方法:

“port_password”:{

“80”:”password1″,

“443”:”password2″

},

配置推荐:auth_sha1+tls1.2_ticket_auth


以上脚本来自91yun和秋水逸冰

发表评论

电子邮件地址不会被公开。 必填项已用*标注