Forked from euyuil/install-and-configure-shadowsocks-server.sh
Created
November 14, 2017 08:07
-
-
Save viaNull/d49daea4add8e3a823c9e9c0fd9c45c8 to your computer and use it in GitHub Desktop.
Shadowsocks: Server installation and configuration on Ubuntu 14.04.
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/bash | |
| sudo apt-get -y update | |
| sudo apt-get -y upgrade | |
| sudo apt-get install -y python-gevent python-pip python-m2crypto supervisor | |
| sudo pip install shadowsocks | |
| sudo mkdir -p touch /etc/shadowsocks | |
| sudo cat > /etc/shadowsocks/shadowsocks.json <<EOF | |
| { | |
| "server": "0.0.0.0", | |
| "server_port": 20444, | |
| "password": "***", | |
| "timeout": 300, | |
| "method": "rc4-md5" | |
| } | |
| EOF | |
| sudo cat > /etc/supervisor/conf.d/shadowsocks.conf <<EOF | |
| [program:shadowsocks] | |
| command=/usr/local/bin/ssserver -c /etc/shadowsocks/shadowsocks.json | |
| autorestart=true | |
| user=nobody | |
| EOF | |
| invoke-rc.d supervisor restart | |
| supervisorctl status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment