项目地址:https://github.com/shadowsocks/shadowsocks-libev
准备工作
依赖
autoconf
automake
libtool
gettext
pkg-config
libmbedtls
libsodium
libpcre3
libev
libc-ares
asciidoc
xmlto
Ubuntu/Debian可直接使用以下命令安装依赖
apt install -y gettext build-essential autoconf libtool libpcre3-dev asciidoc xmlto libev-dev libc-ares-dev automake libmbedtls-dev libsodium-dev
编译安装
下载源码
git clone https://github.com/shadowsocks/shadowsocks-libev.git cd shadowsocks-libev git submodule update --init --recursive //下载子模块
编译
./autogen.sh ./configure make #install可根据自己的需求是否需要,一般编译完的文件在./src下 #make install
配置
shadowsocks配置
{
"server":"0.0.0.0",
"mode":"tcp_and_udp",
"server_port":443, //端口
"password":"password", //密码
"method":"aes-256-gcm", //加密方式
"fast_open":true, //TFO
"timeout":60 //超时时间
}systemd配置
[Unit] Description=ss-libev After=network.target [Service] Type=simple User=nobody ExecStart=/sbin/ss-server -c /etc/ss-server/config.json [Install] WantedBy=multi-user.target
