[R]Establish Shadowsocks-manyuser Server on CentOS

*In order not to get into any copyright issues, if you are interested in it, please go to the Github project page.

Shadowsocks is widely known as a powerful proxy, and Shadowsocks-manyuser is a shadowsocks server program based on Python. I am introducing you the setting-up of the Shadowsocks-manyuser on CentOS.

1.Clear your YUM and update your repo

Run bash command to clear 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

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.

5. Set Auto-startup

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.)

1 comment

Leave a Reply

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