1. Install necessary components
Run the yum install build-essential autoconf libtool openssl-devel gcc-y command on centos.
2. Install git
Run yum install git-y on centos.
If it appears after execution
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
No package git available.
Nothing to do
Then the software warehouse of the system needs to be updated.
For example, RPMForge is added.
Installation:
Yum install yum-priorities
After installation, the cat/etc/yum/pluginconf. d/priorities. conf file,
Confirm that this line is in the file [main] enabled = 1
Download the rpmforge installation package
Wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Find different packages in different architectures
Rpm-I rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Now you can use the rpmforge software repository.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
After Installing git, execute git -- version. If the current number is published, the installation is successful.
3. Download and compile the shadowsocks-libev source code package
Git clone https://github.com/madeye/shadowsocks-libev.git
Cd shadowsocks-libev
./Configure
Make & make install
4. Run shadowsocks.
Nohup/usr/local/bin/ss-server-s IP address-p port-k password-m encryption &
For example: nohup/usr/local/bin/ss-server-s × .home4love.com-p 8981-k admin888-m aes-256-cfb &
5. Add to start
Echo "nohup/usr/local/bin/ss-server-s IP address-p port-k password-m encryption mode &">/etc/rc. local
[About client]
The shadowsocks client is not mature yet. I recommend it to you.
Http://sourceforge.net/projects/shadowsocksgui/files/dist/
[About encryption method]
If you do not write "-m aes-256-cfb" in the startup command, the default encryption method is table, it is safer to select the aes-256-cfb, in fact, there is almost no impact on speed.
[About changing the port, password, and encryption method]
The startup command already contains this information. If you change the information, do not forget to change the information during startup.
[About service termination]
Ps will see the process of "ss-server". kill the PID, for example, kill 5082.