Supported environments for this script:
Supported systems: CentOS, Debian, Ubuntu
Memory requirement: ≥64M
Date: July 22, 2017
About this script:
One-click installation of the latest Go version of shadowsocks, version 1.2.1. Unlike the Python
version, its client program can use multiple server configurations. What this script installs is the server program.
Friendly reminder: If you have questions, please refer to this article, “Shadowsocks Troubleshooting,” before asking.
Default configuration:
Server port: set by yourself (if not specified, the default is 8989)
Password: set by yourself (if not specified, the default is teddysun.com)
Encryption method: set by yourself (if not specified, the default is aes-256-cfb)
Shadowsocks for Windows client download:
https://github.com/shadowsocks/shadowsocks-windows/releases
Usage:
Log in as the root user and run the following commands:
wget --no-check-certificate -O shadowsocks-go.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-go.sh chmod +x shadowsocks-go.sh ./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log
After the installation is complete, the script will prompt as follows:
Congratulations, Shadowsocks-go server install completed! Your Server IP :your_server_ip Your Server Port :your_server_port Your Password :your_password Your Encryption Method:your_encryption_method Welcome to visit:https://teddysun.com/392.html Enjoy it!
Uninstallation method:
Log in as the root user and run the following command:
./shadowsocks-go.sh uninstall
Other notes:
Reference link for client configuration: https://teddysun.com/339.html
After installation is complete, Shadowsocks-go will already be running in the background. Run:
/etc/init.d/shadowsocks status
You can check whether the Shadowsocks-go process has started.
After this script is installed, shadowsocks-go has been added to start automatically on boot.
Commands:
Start: /etc/init.d/shadowsocks start
Stop: /etc/init.d/shadowsocks stop
Restart: /etc/init.d/shadowsocks restart
Status: /etc/init.d/shadowsocks status
Example of a multi-user, multi-port configuration file:
Configuration file path: /etc/shadowsocks/config.json
{
"port_password":{
"8989":"password0",
"9001":"password1",
"9002":"password2",
"9003":"password3",
"9004":"password4"
},
"method":"your_encryption_method",
"timeout":600
}
For an example from the official version, see here.
One-click installation scripts for more versions of the Shadowsocks server:
ShadowsocksR
one-click installation script (CentOS, Debian, Ubuntu)
Shadowsocks Python
one-click installation script (CentOS, Debian, Ubuntu)
shadowsocks-libev
one-click installation script for CentOS
shadowsocks-libev
one-click installation script for Debian
Update log:
July 22, 2017:
Added: During installation, you can choose one of the following 9 encryption methods:
aes-256-cfb aes-192-cfb aes-128-cfb aes-256-ctr aes-192-ctr aes-128-ctr chacha20-ietf chacha20 rc4-md5
February 18, 2017:
Based on the latest code on Github, self-compiled x86 and x86_64 binaries using the latest go
1.8.
February 13, 2017:
Upgraded the Shadowsocks-go version to 1.2.1 (based on the latest code on Github, with x86 and x86_64 binaries self-compiled using go 1.7.5).
January 27, 2017:
Updated Shadowsocks-go to version 1.2.1 (only for x86_64 systems; x86
systems remain on 1.1.5).
May 12, 2016:
Added firewall rule configuration for CentOS 7.
May 4, 2016:
Updated Shadowsocks-go to version 1.1.5.
August 1, 2015:
Added support for custom server ports (if not specified, the default is 8989).
May 11, 2015:
Updated Shadowsocks-go to version 1.1.4.
March 9, 2015:
Added support for installation on Debian and Ubuntu.
January 8, 2015:
Modified the startup script /etc/init.d/shadowsocks to follow CentOS
chkconfig standard syntax (it originally used the version bundled on the author’s Github
page). Removed the method of starting shadowsocks
as the nobody user, and changed it to start directly as the currently logged-in user (generally the root
user). The issues with starting automatically on boot and lacking permission prompts when changing the port number have been resolved.
Reference link:
https://github.com/shadowsocks/shadowsocks-go
