How To Install Shadowsocks Server on CentOS, Debian, Ubuntu easily

How To Install Shadowsocks Server on CentOS, Debian, Ubuntu easily
Shadowsocks

Shadowsocks is a secure and lightweight socks5 proxy for embedded devices and low-end boxes, designed to protect your Internet traffic.
The benefit of Shadowsocks is that it works very well on un-stable Internet connections.
It has different versions written in C, Python and Go. I recommend the libev version written in C because it has low memory usage (around 600k) and low CPU consumption.

First, you need to have a Linux server with at least 128MB of RAM. If you don’t have one, I suggest a cheap OpenVZ VPS from:
RamNode 128MB OpenVZ VPS (New York) – $15/yr
– OR –
HostUs 512MB OpenVZ VPS (Amsterdam) – $18.95/yr

Easy Install Shadowsocks-libev on Your Server

You can easily install and configure Shadowsocks (Thanks to Teddysun). Just login as root user and run the following commands:

CentOS

Debian/Ubuntu

You will be asked to set server port, password and encryption (I recommend chacha20).
After the script is installed, it will auto start on server boot.

Service Commands

You can Start/Stop/Restart and view the Status of the service by using the following commands:

Uninstall Shadowsocks

Login as root user and run the following command: