多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ### Centos7安装 github ``` $ git clone https://github.com/shadowsocks/shadowsocks-rust.git ``` cargo安装: ``` $ cargo install shadowsocks-rust ``` ### 编译 执行命令: ``` $ cargo check ``` 报错 error: failed to run custom build command for `openssl-sys v0.9.48` 执行命令: ``` $ yum install -y openssl-devel.x86_64 ``` 报错 error: failed to run custom build command for `libsodium-ffi v0.1.17` 这是因为centos7不支持Chacha20加密算法,执行命令 : ``` $ yum install -y m2crypto make $ wget -N --no-check-certificate https://github.com/jedisct1/libsodium/releases/download/1.0.8/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 ```