OLINK CLOUD 针对中国大陆优化线路高性价比VPS

德国CN2-GIA三网优化回国线路vps,最低每月5$起,点击购买 (终身9折优惠码:OLINK)

Debian

1
cd /tmp

下载源码

1
git clone https://github.com/shadowsocks/shadowsocks-libev.git

开始编译

1
2
3
4
cd shadowsocks-libev
./autogen.sh
./configure --prefix=/usr && make
make install

准备必须的文件

1
2
3
4
5
6
mkdir -p /etc/shadowsocks-libev
cp ./debian/shadowsocks-libev.init /etc/init.d/shadowsocks-libev
cp ./debian/shadowsocks-libev.default /etc/default/shadowsocks-libev
cp ./debian/shadowsocks-libev.service /lib/systemd/system/
cp ./debian/config.json /etc/shadowsocks-libev/config.json
chmod +x /etc/init.d/shadowsocks-libev

编辑配置文件

1
vim /etc/shadowsocks-libev/config.json

启动服务

1
service shadowsocks-libev start

Centos

1
cd /tmp

编译环境准备&安装依赖包

1
2
yum install -y gcc automake autoconf libtool make build-essential autoconf libtool
yum install -y curl curl-devel unzip zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel

下载源码

1
2
wget https://github.com/shadowsocks/shadowsocks-libev/archive/master.zip
unzip master.zip

开始编译

1
2
3
4
cd shadowsocks-libev*
./autogen.sh
./configure --prefix=/usr && make
make install

准备必须的文件

1
2
3
4
mkdir -p /etc/shadowsocks-libev
cp ./rpm/SOURCES/etc/init.d/shadowsocks-libev /etc/init.d/shadowsocks-libev
cp ./debian/config.json /etc/shadowsocks-libev/config.json
chmod +x /etc/init.d/shadowsocks-libev

编辑配置文件

1
vim /etc/shadowsocks-libev/config.json

启动服务

1
service shadowsocks-libev start

备注:配置文件中”server”:”127.0.0.1”可改成服务器ip。”method”默认是aes-256-cfb,改成rc4-md5对连接速度有略微提升。

评论