在CentOS 下安装 shadowsocks
1. 首先添加源
cd /etc/yum.repos.d/
curl -O https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo
yum install -y shadowsocks-libev
2. 修改配置文件
$vim /etc/shadowsocks-libev/config.json
{
"server": "0.0.0.0",
"server_port": 3389,
"password": "login_password",
"method": "aes-256-cfb",
"mode": "tcp_and_udp",
"timeout": 3600
}
3. 测试配置文件是否正确
ss-server -c /etc/shadowsocks-libev/config.json
4. 启动服务
systemctl restart shadowsocks-libev
systemctl enable shadowsocks-libev
如果出现这样的提示内容:
ss-local: error while loading shared libraries: libmbedcrypto.so.0: cannot open shared object file: No such file or directory
安装 “mbedtls-devel”就可以解决
yum install mbedtls-devel
cd /usr/lib64
ls |grep mbed
ln -sf libmbedcrypto.so.1 libmbedcrypto.so.0
文章版权声明:本文发表于2022-11-17 22:23:06,除非注明,否则均为
MB博客原创文章,转载或复制请以超链接形式并注明出处。
还没有评论,来说两句吧...