Changed from SS to SSR
You may know what happened these days,Even through I don't like the developer of SSR at all.
But truth is that SSR is more stable and faster than SS at least right now.
So I made a hard decision, Move to SSR temporary.
SSR's wiki(or document and --help) is a piece of shit, So I investigated for a hour and complate my works.
And you may know that breakwall deleted all code of shadowsocksR,but fortunately,someone forked it.
What I did:
sudo apt-get install git
git clone https://github.com/shadowsocksr-backup/shadowsocksr.git
sudo apt install python-pip
## if you are fedora user like me
sudo dnf install python-pip
pip install cymysql
cd shadowsocksr
bash initcfg.sh
## change your config
sudo vim user-config.json
## install to your root
cd ..
sudo cp -r shadowsocksr /usr/local/
## make a startup script
sudo vim /etc/systemd/system/shadowsocksr.service
paste in
[Unit]
Description=ShadowsocksR server
After=network.target
Wants=network.target
[Service]
Type=forking
PIDFile=/var/run/shadowsocksr.pid
ExecStart=/usr/bin/python /usr/local/shadowsocksr/shadowsocks/local.py --pid-file /var/run/shadowsocksr.pid -c /usr/local/shadowsocksr/user-config.json -d start
ExecStop=/usr/bin/python /usr/local/shadowsocksr/shadowsocks/local.py --pid-file /var/run/shadowsocksr.pid -c /usr/local/shadowsocksr/user-config.json -d stop
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target
enable your service
sudo systemctl enable shadowsocksr.service
sudo systemctl start shadowsocksr.service
This is local side with single user mode, If you want this installed on your server, change local.py to server.py.
I don't know why, But SSR is Faster and More stable,maybe safer too? I'm not sure.