debian8 可以apt-get直接安装
apt-get install libsodium-dev
编译安装:
安装编译环境
1.Debian/ubuntu
apt-get update apt-get install build-essential wget -y
2.CentOS
yum groupinstall "Development Tools" -y yum install wget -y
—————————————————————————
下载:
wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
或者
https://github.com/jedisct1/libsodium/releases
—————————————————————————
编译安装
tar xzvf LATEST.tar.gz cd libsodium* ./configure make -j8 && make install echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf ldconfig
—————————————————————————
ss配置
{ "server":"0.0.0.0", "server_port":port, "local_address":"127.0.0.1", "local_port":1080, "password":"your-password", "timeout":600, "method":"chacha20" }