SSR一键搭建

发布于 2018-08-18  244 次阅读


搭建篇

进入服务器后,执行以下命令

wget --no-check-certificate https://freed.ga/github/shadowsocksR.sh; bash shadowsocksR.sh

如提示:

wget :com.m.and not found

请执行:

yum install wget -y

进阶篇

SSR常用命令:

#SSR常用命令

启动:/etc/init.d/shadowsocksstart
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status

SSR修改密码、配置多端口教程

(1)输入vi /etc/shadowsocks.json
(2)按“i”进入编辑模式,编辑如下

{
 
   "server": "0.0.0.0",
 
    "server_ipv6":"::",
 
   "local_address": "127.0.0.1",
 
   "local_port": 1081,
 
   "port_password":{
 
        "端口1":"密码1",
 
        "端口2":"密码2",
 
        "端口3":"密码3",
 
        "端口4":"密码4"
 
    },
 
   "timeout": 120,
 
   "udp_timeout": 60,
 
   "method": "chacha20",
 
   "protocol": "auth_sha1_compatible",
 
   "protocol_param": "",
 
   "obfs": "http_simple_compatible",
 
   "obfs_param": "",
 
   "dns_ipv6": false,
 
   "connect_verbose_info": 0,
 
   "redirect": "",
 
   "fast_open": false,
 
   "workers": 1
 
 
 
}

(3)按esc返回,输入:wq回车保存

(4)输入/etc/init.d/shadowsocks restart重启ssr

(5)如不能联网,则关闭防火墙(逐条输入)

service iptables restart

service iptables stop

chkconfigiptables off

SSR提速, 锐速(仅支持KVM,Xen,vmare架构)

由于锐速对内核要求严格,所以要先更换内核, 一键更换内核脚本(Vultr需先执行此脚本)

wget -N --no-check-certificate https://freed.ga/kernel/ruisu.sh && bash ruisu.sh

锐速安装脚本

wget -N --no-check-certificate https://github.com/91yun/serverspeeder/raw/master/serverspeeder.sh && bash serverspeeder.sh

备用脚本:

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh

锐速常用命令

启动:/serverspeeder/bin/serverSpeeder.shstart

停止:/serverspeeder/bin/serverSpeeder.shstop

状态:service serverSpeeder status

检查是否有appex0模块:lsmod

 

 


含词未吐,气若幽兰