跳至主要内容

Centos 7下,安装ShadowsocksR-native

1、先安装cmake

curl https://cmake.org/files/v3.14/cmake-3.14.5-Linux-x86_64.sh -o a.sh
sh a.sh  --prefix=/usr/ --exclude-subdir
rm -rf a.sh
cmake --version

2、安装shadowsocksr-native

wget --no-check-certificate https://raw.githubusercontent.com/ShadowsocksR-Live/shadowsocksr-native/master/install/ssrn-install.sh
chmod +x ssrn-install.sh
./ssrn-install.sh 2>&1 | tee ssr-n.log
3、shadowsocksr-native相关命令

配置文件
/etc/ssr-native/config.json
重启shadowsocksr-native
systemctl restart ssr-native.service
卸载shadowsocksr-native
./ssrn-install.sh uninstall
项目地址:https://github.com/ShadowsocksR-Live/shadowsocksr-native#cmake

评论