Created
July 16, 2019 02:57
-
-
Save john-yuan/6238549e845796a6bf8e509a09cb0cdb 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
#!/bin/sh | |
readonly SERVER_PORT="8388" | |
readonly SERVER_PASS="your_password" | |
sudo yum install git | |
sudo yum install python-setuptools && easy_install pip | |
sudo pip install git+https://github.com/shadowsocks/shadowsocks.git@master | |
firewall-cmd --permanent --zone=public --add-port=${SERVER_PORT}/tcp | |
firewall-cmd --reload | |
echo "{" > /etc/shadowsocks.json | |
echo " \"server_port\": \"${SERVER_PORT}\"," >> /etc/shadowsocks.json | |
echo " \"password\": \"${SERVER_PASS}",\" >> /etc/shadowsocks.json | |
echo " \"method\": \"aes-256-cfb\"" >> /etc/shadowsocks.json | |
echo "}" >> /etc/shadowsocks.json | |
# ssserver -c /etc/shadowsocks.json -d start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment