1. Install shadowsocks
yum install python-setuptools && easy_install pip
pip install shadowsocks
2. Configure shadowsocks
we /etc/shadowsocks.json
{
"Server": "xxx.xxx.xxx.xxx",
"SERVER_PORT": 8333,
"local_address": "120.0.0.1",
"local_port": 1080,
"password":. "XXXXXXX",
"timeout": 300,
"Method,": "aes-256-cfb",
"fast_open": false
}
// single-user only need to modify the default server server_port password other like
// multi-user configuration as follows
{ "Server": "xxx.xxx.xxx.xxx", // here to fill your server's IP address "port_password": { "8234": "*********", // to 8234 port set custom password "8235": "*********", // port to 8235 set a custom password "8236": "*********" / / 8236 port to set the custom password if need multiple accounts, this format can be added down, but to ensure that after the last account did not, "" Remember! }, "Timeout": 300, "Method": "AES-CFB-256", "fast_open": to false }
3. Set shadowsocks boot
we /etc/rc.local
4. Open port settings
Check firewall status
firewall-cmd --state
If it is running, it will indicate on; otherwise, execute the following code
systemctl start firewalld
Turn on the specified port: 8888
firewall-cmd --zone=public --add-port=8888/tcp --permanent
That success successful return
Restart port rules to update the configuration of the firewall
firewall-cmd --reload
View open ports
firewall-cmd --list-ports
5. Enable shadowsocks Service
ssserver -c /etc/shadowsocks.json -d start
Foreground
ssserver -c /etc/shadowsocks.json
Background process
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop
At this point you may have been used.
Accelerate the installation serverspeeder
1. Install serverspeeder
Replace the kernel
rpm -ivh http://soft.91yun.org/ISO/Linux/CentOS/kernel/kernel-3.10.0-229.1.2.el7.x86_64.rpm --force
Check the kernel is successfully installed
rpm -qa | grep kernel
If that is shown success
Restart the server
reboot
Execute the following command
yum install net-tools -y
Installation Serverspeeder
wget -N --no-check-certificate https://github.com/91yun/serverspeeder/raw/master/serverspeeder.sh && bash serverspeeder.sh
Start Acceleration
service serverSpeeder start