About ss-py-mu
This project is based on fsgmhoward's version. I JUST change the database structure and fix bugs on the original code to work with python3.
A fast tunnel proxy that helps you bypass firewalls.
Please use python3.
-
Setup database in MySQL.
create database shadowsocks; grant all privileges on shadowsocks.* to 'yourdbusername'@'%' identified by 'yourpassword'; quit
-
Import database template in bash
mysql -uyourdbusername -pyourpassword shadowsocks < shadowsocks.sql
-
Install the package
git clone https://github.com/dylanchu/ss-py-mu.git cd ss-py-mu sudo python3 setup.py install -f
-
Config your program
Try to launch
ss-py-mu
first:ss-py-mu
Normally you'll see the instructions to edit your config file
/root/.config/ss-py-mu/config.ini
. After you have done that, runss-py-mu
again. If it runs ok then everything is ok. You can pressctrl+c
to terminate the program.
-
Supervisor can monitor you program and log the output to a log file. And it can restart your program if it stops because of unexpected reasons.
-
You will need to create a file
ss-py-mu.conf
under the folder/etc/supervisor/conf.d/
. Contents should be like:[program:ss-py-mu] command = ss-py-mu user=root autostart = true autorestart = true stdout_logfile = /var/log/supervisor/ss-py-mu_stdout.log stderr_logfile = /var/log/supervisor/ss-py-mu_stderr.log
-
Start your program with supervisor.
supervisorctl reread supervisorctl reload