Installing SSserver and Configuring (II)
in Tutorial with 0 comment
Installing SSserver and Configuring (II)
in Tutorial with 0 comment

After completing the configuration of How to Build an SSserver for a Newly Purchased VPS (I), you can start installing Shadowsocks.

As a reminder, the tutorial is applicable to CentOS 6.

Install Shadowsocks

Install setuptools and pip
Execute the command in the terminal as follows:

 yum install python-setuptools && easy_install pip

Install Python Event to improve performance
Execute the command in the terminal as follows:

 yum install libevent yum install python-devel pip install gevent

Install M2Crypto, the third database for encryption
Execute the command in the terminal as follows:

 yum install openssl-devel yum install swig pip install M2Crypto

Install Shadowsocks server

 pip install shadowsocks

So far, the Shadowsocks server has been installed···

Create Profile

Execute the command in the terminal as follows:

 vi  /etc/shadowsocks.json

Fill in the following:

 { "server":"my_server_ip", "server_port":9000, "local_address": "127.0.0.1", "local_port":1080, "password":"mypassword", "timeout":300, "method":"rc4-md5" }

Exit after saving

matters needing attention

To run in the background using a profile:

 ssserver -c /etc/shadowsocks.json -d start

If you need to stop running, enter the following command:

 ssserver -c /etc/shadowsocks.json -d stop

Set startup:

 vi /etc/rc.local

After opening, add:

 ssserver -c /etc/shadowsocks.json -d start

Save Exit, reboot Try the effect. If it is normal, the setting is completed.

Then you can go to the next tutorial, Accelerated Optimization Configuration of SSserver (III).

The series of tutorials are as follows:

The auxiliary tutorials are as follows:

Responses