zoukankan      html  css  js  c++  java
  • Linux学习笔记之秋水BBR一键部署

    0x00 本脚本适用环境

    系统支持:CentOS 6+,Debian 7+,Ubuntu 12+
    内存要求:≥128M

    阅读文章时请除手动删出干扰字符“1”.(Shado1wsocks)

    0x01 关于本脚本

    1、一键安装 Shadow1socks-Python, Shado1wsocksR, Shado1wsocks-Go, Shadow1socks-libev 版(四选一)服务端;
    2、各版本的启动脚本及配置文件名不再重合;
    3、每次运行可安装一种版本;
    4、支持以多次运行来安装多个版本,且各个版本可以共存(注意端口号需设成不同);
    5、若已安装多个版本,则卸载时也需多次运行(每次卸载一种);

    0x02 默认配置

    服务器端口:自己设定(如不设定,默认从 9000-19999 之间随机生成)
    密码:自己设定(如不设定,默认为 teddysun.com
    加密方式:自己设定(如不设定,Python 和 libev 版默认为 aes-256-gcm,R 和 Go 版默认为 aes-256-cfb)
    协议(protocol):自己设定(如不设定,默认为 origin)(仅限 Shadow1socksR 版)
    混淆(obfs):自己设定(如不设定,默认为 plain)(仅限 Shadow1socksR 版)
    备注:脚本默认创建单用户配置文件,如需配置多用户,请手动修改相应的配置文件后重启即可。

    0x03 客户端下载

    常规版 Windows 客户端
    https://github.com/shadow1socks/shadow1socks-windows/releases

    ShadowsocksR 版 Windows 客户端
    https://github.com/shadow1socksrr/shadow1socksr-csharp/releases

    0x04 使用方法

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

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

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

    Congratulations, your_shadow1socks_version install completed!
    Your Server IP        :your_server_ip
    Your Server Port      :your_server_port
    Your Password         :your_password
    Your Encryption Method:your_encryption_method
    
    Your QR Code: (For Shadow1socks Windows, OSX, Android and iOS clients)
     ss://your_encryption_method:your_password@your_server_ip:your_server_port
    Your QR Code has been saved as a PNG file path:
     your_path.png
    
    Welcome to visit:https://teddysun.com/486.html
    Enjoy it!

    0x05 卸载方法

    若已安装多个版本,则卸载时也需多次运行(每次卸载一种)
    使用root用户登录,运行以下命令:

    ./shadow1socks-all.sh uninstall

    0x06  启动脚本

    启动脚本后面的参数含义,从左至右依次为:启动,停止,重启,查看状态。

    Shadow1socks-Python 版:
    /etc/init.d/shadow1socks-python start | stop | restart | status
    
    Shadow1socksR 版:
    /etc/init.d/shadow1socks-r start | stop | restart | status
    
    Shadow1socks-Go 版:
    /etc/init.d/shadow1socks-go start | stop | restart | status
    
    Shadow1socks-libev 版:
    /etc/init.d/shadow1socks-libev start | stop | restart | status

    0x07 各版本默认配置文件

    Shadow1socks-Python 版:
    /etc/shadow1socks-python/config.json
    
    Shadow1socksR 版:
    /etc/shadow1socks-r/config.json
    
    Shadow1socks-Go 版:
    /etc/shadow1socks-go/config.json
    
    Shadow1socks-libev 版:
    /etc/shadow1socks-libev/config.json

    0x08  使用BBR加速器

    让访问速度加速,飞起来!使用 BBR 加速工具。

    安装 BBR

    wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh

    获取读写权限

    chmod +x bbr.sh

    启动BBR安装

    ./bbr.sh

    接着按任意键,开始安装,坐等一会。安装完成一会之后它会提示我们是否重新启动vps,我们输入 y 确定重启服务器。

    重新启动之后,输入 

    lsmod | grep bbr 

    如果看到 tcp_bbr 就说明 BBR 已经启动了。

    再访问一下 Youtube,1080p 超高清,很顺畅不卡顿!

    参考

  • 相关阅读:
    Win32应用中创建多窗口
    同时控制多个UIScrollView对象
    在后台代码中设定控件的Visibility
    VC中使用GDI+
    悬垂指针(Dangling pointer)和野指针(Wild pointer)
    在Windows下通过命令行界面编译并生成 .exe
    C++流重定向到文件
    读写文本文件和二进制文件——二进制模式
    使用MahApps.Metro
    WPF之GUI编写
  • 原文地址:https://www.cnblogs.com/JetpropelledSnake/p/11039221.html
Copyright © 2011-2022 走看看