Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
必要的更新
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并没有什么影响)
@on195594

This comment has been minimized.

Copy link
Owner Author

commented Aug 5, 2016

开机自启动:
systemctl enable shadowsocks-libev
systemctl restart shadowsocks-libev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.