技术分享

科学上网 ShadowsocksR一键安装脚本

本脚本适用环境: 
系统支持:CentOS,Debian,Ubuntu 
内存要求:≥128M

默认配置: 服务器端口:自己设定(如不设定,默认为 8989) 客户端端口:1080 密码:自己设定(如不设定,默认为teddysun.com)

客户端下载百度云:https://pan.baidu.com/s/1ShZ8FV_8b22__Z_aRO_Obg 密码:g2rb

使用方法: 使用root用户登录,运行以下命令: (命令行终端下输入 su root,如果不行sudo passwd重置密码之后,再su root);

1#

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh

2#

chmod +x shadowsocksR.sh

3#

./shadowsocksR.sh 2>&1 | tee shadowsocksR.log

安装完成后,脚本提示如下:

Congratulations, ShadowsocksR install completed!

Server IP:your_server_ip

Server Port:your_server_port

Password:your_password

Local IP:127.0.0.1

Local Port:1080

Protocol:origin

obfs:plain

Encryption Method:aes-256-cfb

Welcome to visit:https://shadowsocks.be/9.html

If you want to change protocol & obfs, reference URL:

https://github.com/breakwa11/shadowsocks-rss/wiki/Server-Setup

Enjoy it!

表明成功了,也可能中间会遇到需要你修改信息的地方,根据自己的情况修改。

卸载方法: 使用 root 用户登录,运行以下命令:

./shadowsocksR.sh uninstall

安装完成后即已后台启动 ShadowsocksR ,运行:

/etc/init.d/shadowsocks status

可以查看 ShadowsocksR 进程是否已经启动。 本脚本安装完成后,已将 ShadowsocksR 自动加入开机自启动。

使用命令: 
启动:/etc/init.d/shadowsocks start 
停止:/etc/init.d/shadowsocks stop 
重启:/etc/init.d/shadowsocks restart 
状态:/etc/init.d/shadowsocks status

配置文件路径:/etc/shadowsocks.json 
日志文件路径:/var/log/shadowsocks.log 
代码安装目录:/usr/local/shadowsocks

This is just a placeholder img.