https://teddysun.com/486.html
This script applies to the environment
System Support: CentOS 6+, Debian 7+, Ubuntu 12+
Memory Requirements: ≥128M
Date: February 24, 2017
About this script
1. One-click installation of Shadowsocks-Python, ShadowsocksR, Shadowsocks-Go, Shadowsocks-libev version (choose one of four) servers;
2. The startup scripts and configuration file names of each version no longer overlap;
3. One can be installed for each run
4. Support multiple versions to be installed by running multiple times, and each version can coexist (note that the port number needs to be set to be different); 5.
If multiple versions have been installed, you need to run multiple times when uninstalling (each Uninstall one at a time);
6. Shadowsocks-Python and ShadowsocksR cannot be started at the same time after installation (because they are essentially Python versions).
Friendly reminder: If you have questions, please read this " Shadowsocks Troubleshooting " before asking.
default allocation
Server port: Set by yourself (if not set, the default is 8989)
Password: set by yourself (if not set, the default is teddysun.com)
Remarks: The script creates a single-user configuration file by default. If you need to configure multiple users, please Manually modify the corresponding configuration files and then restart.
Client Downloads
Regular Windows client
https://github.com/shadowsocks/shadowsocks-windows/releases
ShadowsocksR Windows client
https://github.com/shadowsocksr/shadowsocksr-csharp/releases
Instructions
Log in as root user and run the following commands:
wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh chmod +x shadowsocks-all.sh ./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log
After the installation is complete, the script prompts as follows
Congratulations, your_shadowsocks_version install completed! Your Server IP :your_server_ip Your Server Port :your_server_port Your Password :your_password Your Encryption Method:aes-256-cfb Welcome to visit:https://teddysun.com/486.html Enjoy it!
Uninstall method
If you have installed multiple versions, you need to run multiple times when uninstalling (one for each uninstall)
Log in as root user and run the following commands:
./shadowsocks-all.sh uninstall
startup script
The meaning of the parameters behind the startup script, from left to right: start, stop, restart, check the status.
Shadowsocks-Python 版:
/etc/init.d/shadowsocks-python start | stop | restart | status
ShadowsocksR 版:
/etc/init.d/shadowsocks-r start | stop | restart | status
Shadowsocks-Go 版:
/etc/init.d/shadowsocks-go start | stop | restart | status
Shadowsocks-libev 版:
/etc/init.d/shadowsocks-libev start | stop | restart | status
Default configuration files for each version
Shadowsocks-Python version:
/etc/shadowsocks-python/config.json
ShadowsocksR version:
/etc/shadowsocks-r/config.json
Shadowsocks-Go version:
/etc/shadowsocks-go/config.json
Shadowsocks-libev 版:
/etc/shadowsocks-libev/config.json
Changelog
February 24, 2017:
1. Restored: Automatically obtain the function (v3.0.3) of the latest release version of Shadowsocks-libev through Github API.
February 13, 2017:
1. Upgrade: Shadowsocks-libev version to version 3.0.2;
2. Upgrade: Shadowsocks-go version to version 1.2.1 ( x86 and x86_64 binaries compiled with go 1.8 based on the latest Github code file);
3. Fix: There is no libudns-dev dependency package by default under Debian 7.
February 12, 2017:
1. Upgrade: Shadowsocks-libev version to version 3.0.1.
January 27, 2017:
1. Upgrade: Shadowsocks-go version to version 1.2.1 (only for x86_64 system)