Last active
April 20, 2017 03:24
-
-
Save on195594/d189f0246107fe64fbd47ddb0390fc5e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
必要的更新 | |
apt-get update && apt-get upgrade | |
安装必要组件 | |
apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev gawk debhelper dh-systemd init-system-helpers pkg-config asciidoc xmlto apg libpcre3-dev | |
下载shadowsocks-libev源码包并编译 | |
git clone https://github.com/shadowsocks/shadowsocks-libev.git | |
cd shadowsocks-libev | |
// 拷贝必要的文件 | |
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/ | |
chmod +x /etc/init.d/shadowsocks-libev | |
cp ./debian/config.json /etc/shadowsocks-libev/config.json // 需修改配置文件 | |
dpkg-buildpackage -b -us -uc -i | |
cd .. | |
dpkg -i shadowsocks-libev*.deb | |
编辑配置文件 | |
vim /etc/shadowsocks-libev/config.json | |
启动 | |
service shadowsocks-libev start | |
其他 | |
apt会提示 | |
You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: | |
shadowsocks-libev : Depends: apg but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). | |
说apg这个依赖没有安装,安装一下就好了.(实际上对shadowsocks并没有什么影响) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
开机自启动:
systemctl enable shadowsocks-libev
systemctl restart shadowsocks-libev