shadowsocks-libev

vultr.com购买一个服务器,1g1核每个月才5美元

然后去https://github.com/shadowsocks/shadowsocks-libev,然后服务器上git clone一份

如果没有安装git就要安装 yum install git

git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
git submodule update --init --recursive
sudo yum install gettext gcc autoconf libtool automake make asciidoc xmlto c-ares-devel libev-devel

# Installation of Libsodium
export LIBSODIUM_VER=1.0.13
wget https://download.libsodium.org/libsodium/releases/libsodium-$LIBSODIUM_VER.tar.gz
tar xvf libsodium-$LIBSODIUM_VER.tar.gz
pushd libsodium-$LIBSODIUM_VER
./configure --prefix=/usr && make
sudo make install
popd
sudo ldconfig

# Installation of MbedTLS
export MBEDTLS_VER=2.6.0
wget https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz
tar xvf mbedtls-$MBEDTLS_VER-gpl.tgz
pushd mbedtls-$MBEDTLS_VER
make SHARED=1 CFLAGS=-fPIC
sudo make DESTDIR=/usr install
popd
sudo ldconfig

# Start building
./autogen.sh && ./configure && make
sudo make install
其中会出现c++库没有安装或者pcre
yum install -y gcc gcc-c++

安装PCRE

cd /usr/local/

wget  https://nchc.dl.sourceforge.net/project/pcre/pcre/8.41/pcre-8.41.tar.gz

tar -zxvf  pcre-8.41.tar.gz

cd pcre-8.41

./configure

make

make install

安装成功之后vi conf.conf

{
    "server":"0.0.0.0",
    "server_port":7788,
    "local_port":1080,
    "password":"你的密码",
    "timeout":60,
    "method":"aes-256-cfb"
}

ss-server -c  配置文件路径

出现这个表示已经安装成功了

想后台运行

nohup ss-server -c 配置文件路径 > /dev/null 2>&1 &


或者 ps -aux|grep ss-server

然后开放7788端口的防火墙

firewall-cmd --zone=public --add-port=7788/tcp --permanent
firewall-cmd --reload

然后下载客户端

https://github.com/shadowsocks/shadowsocks-windows/releases


让填写对应的服务器地址和服务器端口和密码

启用系统代理

在帮助-查看日志中



阅读更多

没有更多推荐了,返回首页