Skip to content

Instantly share code, notes, and snippets.

@rule2c
Forked from aa65535/ss-install.md
Last active August 16, 2021 08:56
Show Gist options
  • Save rule2c/a6c06ff2b5249950dc832072027f91de to your computer and use it in GitHub Desktop.
Save rule2c/a6c06ff2b5249950dc832072027f91de to your computer and use it in GitHub Desktop.
shadowsocks-libev install at Debian or CentOS

Debian

cd /tmp
# 下载源码
git clone https://github.com/shadowsocks/shadowsocks-libev.git
# 开始编译
cd shadowsocks-libev
./autogen.sh
./configure --prefix=/usr && make
make install
# 准备必须的文件
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
# 编辑配置文件
vim /etc/shadowsocks-libev/config.json
# 启动服务
service shadowsocks-libev start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment