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.

DFQj58zVYAARXic.jpg:large.jpeg

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.

👍❤️😂🎉🔥👀🤡🤔

6 条评论

  1. Mike Lei
    Mike Lei Lv4
    2017-08-15 11:52 Windows 10 x64 EditionGoogle Chrome 61.0.3163.26日本福岛县

    这配图什么鬼2333

    👍👎🤡❤️🔥👀😂🤔
  2. Well Honey
    Well Honey Lv4
    2017-08-15 12:10 Mac OS X 10.12.5Google Chrome 60.0.3112.90德国Baden-Wurttemberg

    看来李先生转fedora了?

    👍👎🤡❤️🔥👀😂🤔
  3. violetzijing
    violetzijing Lv2
    2017-08-15 12:12 Ubuntu x64Firefox 54.0中国北京北京市

    配图什么鬼!!

    👍👎🤡❤️🔥👀😂🤔
  4. Well Honey
    Well Honey Lv4
    2017-08-15 12:21 Mac OS X 10.12.5Google Chrome 60.0.3112.90德国Baden-Wurttemberg

    配图在放毒。。赶快吃饭去?

    👍👎🤡❤️🔥👀😂🤔
  5. 西红柿炒蛋
    西红柿炒蛋 Lv4
    2017-08-15 23:40 Windows 10 x64 EditionGoogle Chrome 60.0.3112.90中国四川省成都市

    这图文一点关系也没有啊

    👍👎🤡❤️🔥👀😂🤔
  6. 蒋阿大
    2017-08-16 11:32 Windows XPGoogle Chrome 49.0.2623.112中国江苏省无锡市

    虽然我不会用Linux/GNU,但还是很感谢李先生指点一条明路。

    👍👎🤡❤️🔥👀😂🤔

添加新评论

😂🤡😎😡😁😋😭😑

目录

__empty__