0%

SS

SS安装

CentOS下shadowsocks-libev一键安装脚本

安装步骤

关于本脚本:

  • 一键安装 libev 版的 Shadowsocks

      一键安装 libev 版的 Shadowsocks 最新版本。该版本的特点是内存占用小(600k左右),
      低 CPU 消耗,甚至可以安装在基于 OpenWRT 的路由器上。
    

默认配置:

  • 服务器端口:
    自己设定(如不设定,默认从 9000-19999 之间随机生成)
  • 密码:
    自己设定(如不设定,默认为 teddysun.com)
  • 加密方式:
    自己设定(如不设定,默认为 aes-256-gcm)

Shadowsocks for Windows 客户端下载:

安装方法:

  • 使用root用户登录,运行以下命令:

      wget --no-check-certificate -O shadowsocks-libev.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev.sh
      chmod +x shadowsocks-libev.sh
      ./shadowsocks-libev.sh 2>&1 | tee shadowsocks-libev.log
      
    
  • 安装完成后,脚本提示如下:

      Congratulations, Shadowsocks-libev server install completed!
      Your Server IP        :your_server_ip
      Your Server Port      :your_server_port
      Your Password         :your_password
      Your Encryption Method:your_encryption_method
      
      Welcome to visit:https://teddysun.com/357.html
      Enjoy it!    
    

卸载方法:

  • 使用 root 用户登录,运行以下命令:

      ./shadowsocks-libev.sh uninstall    
    

其他事项:

启动

  • 安装完成后即已后台启动 Shadowsocks-libev ,运行:

      /etc/init.d/shadowsocks status    
      
      可以查看进程是否启动。
      本脚本安装完成后,会将 Shadowsocks-libev 加入开机自启动。
    

使用命令:

  • 命令参考

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

    链接

  • 链接

    https://teddysun.com/357.html

CentOS下 ShadowsocksR 一键安装脚本(vps)

安装步骤

关于本脚本:

  • 关于脚本

    一键安装 ShadowsocksR 服务端。
    请下载与之配套的客户端程序来连接。
    (以下客户端只有 Windows 客户端和 Python 版客户端可以使用 SSR 新特性,其他原版客户端只能以兼容的方式连接 SSR 服务器)

默认配置:

  • 默认配置

    服务器端口:自己设定(如不设定,默认从 9000-19999 之间随机生成)
    密码:自己设定(如不设定,默认为 teddysun.com)
    加密方式:自己设定(如不设定,默认为 aes-256-cfb)
    协议(Protocol):自己设定(如不设定,默认为 origin)
    混淆(obfs):自己设定(如不设定,默认为 plain)

客户端下载:

安装方法:

  • 使用root用户登录,运行以下命令:

      wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh
      chmod +x shadowsocksR.sh
      ./shadowsocksR.sh 2>&1 | tee shadowsocksR.log
    

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

  • 安装完成日志

      Congratulations, ShadowsocksR server install completed!
      Your Server IP        :your_server_ip
      Your Server Port      :your_server_port
      Your Password         :your_password
      Your Protocol         :your_protocol
      Your obfs             :your_obfs
      Your Encryption Method:your_encryption_method
      
      Welcome to visit:https://shadowsocks.be/9.html
      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
    

多用户配置示例:

  • 多用户配置示例

      {
      "server":"0.0.0.0",
      "server_ipv6": "[::]",
      "local_address":"127.0.0.1",
      "local_port":1080,
      "port_password":{
          "8989":"password1",
          "8990":"password2",
          "8991":"password3"
      },
      "timeout":300,
      "method":"aes-256-cfb",
      "protocol": "origin",
      "protocol_param": "",
      "obfs": "plain",
      "obfs_param": "",
      "redirect": "",
      "dns_ipv6": false,
      "fast_open": false,
      "workers": 1
      }
    

如果你想修改配置文件,请参考:

链接