1.分 Ubuntu 16.04 和 CentOS 7 两个版本为例子
apt update && apt upgrade -yuf
apt install -y --no-install-recommends gettext build-essential autoconf libtool libpcre3-dev \
asciidoc xmlto libev-dev libudns-dev automake libmbedtls-dev \
libsodium-dev git python-m2crypto libc-ares-dev
yum update && yum upgrade -y
yum install epel-release -y
yum install -y gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto udns-devel \
libev-devel libsodium-devel mbedtls-devel git m2crypto c-ares-devel
2.Navigate to the /opt
directory and download the Shadowsocks Git module:
cd /opt
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
git submodule update --init --recursive
3.Install Shadowsocks-libev:
./autogen.sh
./configure
make && make install