Code Monkey home page Code Monkey logo

shadowsocks_install's Introduction

完全重写了之前SSR的一键安装包。

  • 直接使用git clone的方式安装作者的源码,免去我要不断跟进更新的麻烦
  • 直接使用ssr stop之类的命令方便管理
  • 直接使用作者mujson的方式进行用户管理,无论单用户还是多用户都很方便
  • 通过命令添加/删除用户,centos会自动开防火墙端口
  • 可以通过命令直接更新/uninstall程序
  • 有问题欢迎随时反馈

 

SSR的几个默认设置:

  • ssr代码安装在/home/ssr/下。
  • 默认的加密方式是:chacha20
  • 默认的协议是:auth_sha1_v4_compatible
  • 默认的混淆是:tls1.2_ticket_auth_compatible

SSR的一键安装命令:

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/shadowsocks_install/master/ssr-install.sh && bash ssr-install.sh

安装完后会直接提示新增用户:

  1. 输入密码,默认91yun.org: 2oUR.png
  2. 输入端口: 2sMt.png
  3. 按任意键开始安装: 2Ziu.png
  4. 最后复制ssr链接就可以方便的导入ssr客户端了: 2lQk.png 2zs2.png

 

SSR一键包的几个命令:

  • 添加用户:ssr adduser
  • 删除用户:ssr deluser
  • 启动SSR:ssr start
  • 停止SSR:ssr stop
  • 重启SSR:ssr restart
  • 卸载SSR:ssr uninstall
  • 更新SSR:ssr update

如果你想自己修改用户和的加密,混淆和协议的话:

修改vi /home/ssr/mudb.json文件

[
{
"d": 0,
"enable": 1,
"method": "chacha20",
"obfs": "tls1.2_ticket_auth_compatible",
"passwd": "91yun.org",
"port": 9191,
"protocol": "auth_sha1_v4_compatible",
"transfer_enable": 9007199254740992,
"u": 0,
"user": "9191"
}
]

几个参数的说明:

  • method:加密方法
  • passwd:ssr密码
  • port:ssr端口
  • protocol:协议
  • obfs:混淆
  • transfer_enable:流量

大家可以自己视情况修改。

如果新的有问题,大家依然可以使用旧的安装方式:

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/shadowsocks_install/master/shadowsocksR.sh && bash shadowsocksR.sh
  • 默认加密为: chacha20
  • 默认协议为: auth_sha1_v4
  • 默认混淆为: tls1.2_ticket_auth

使用命令:

  • 启动: /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/shadowsoks

shadowsocks_install's People

Contributors

teddysun avatar 91yun avatar coderholic avatar rongdede avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.