Master Operator: 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
If you can see the version printed, your installation of Git is successful.
2.2 Install pip
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: