Skip to content

Instantly share code, notes, and snippets.

@j67678
Forked from yzyzsun/shadowsocks-libev.sh
Last active October 10, 2017 09:26
Show Gist options
  • Save j67678/51bc4c192ee4818cfc39608fac35db62 to your computer and use it in GitHub Desktop.
Save j67678/51bc4c192ee4818cfc39608fac35db62 to your computer and use it in GitHub Desktop.
shadowsocks-libev server setup script on CentOS 7
yum -y install wget vim
cd /etc/yum.repos.d
wget https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo
yum -y install shadowsocks-libev
vim /etc/shadowsocks-libev/config.json
vim /usr/lib/systemd/system/shadowsocks-libev.service
#User=nobody
#Group=nobody
systemctl enable shadowsocks-libev
systemctl start shadowsocks-libev
systemctl status shadowsocks-libev
firewall-cmd --add-port=8388/tcp
firewall-cmd --permanent --add-port=8388/tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment