MJJLog: Establish Shadowsocks-manyuser Server on CentOS

Shadowsocks was widely known as a powerful proxy protocol, and Shadowsocks-manyuser is one of the ports of its server-side project.

Now, please allow me to introduce you the setting-up process of the Shadowsocks-manyuser on CentOS. For other Linux operation systems, please make the necessary changes.

1.Clear your YUM and update your repo cache

Run bash command under root user to refresh the yum cache :

yum clean all && yum update -y

2.Install the dependencies

2.1 Yum part

Run bash command:

yum install git m2crypto python -y

After that, run

git --version

If you can see the version printed, your installation of Git is successful.

2.2 Install pip

wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

2.3 Install cymysql with pip

pip install pyparsing
pip install cymysql

3. Install Shadowsocks-manyuser

git clone -b manyuser https://github.com/mengskysama/shadowsocks-rm.git

Then Import the SQL files into the database. You can find it in the shadowsocks-rm/shadowsocks/shadowsocks.sql

4. Configure your Shadowsocks-manyuser

cd shadowsocks-rm/shadowsocks/
vi config.py

Be careful to modify the config to match your connection details to your database server. Otherwise, the server will crash. And remember to modify the encrypt method and the binding IP if needed.

4.1 Set Auto-startup [Optional]

echo "nohup /usr/bin/python /home/gaukas/shadowsocks-rm/shadowsocks/servers.py" >> /etc/rc.local

(The Bold part needs to be modified to match your Python and your shadowsocks server directory.)

After you have finished all above, you may need this:

Enable ChaCha20 cipher on CentOS 7

 

Gaukas Wang

Enthusiastic!

You may also like...

1 Response

  1. 江泽民 says:

    Naive!

Leave a Reply

Your email address will not be published. Required fields are marked *