Main
Main
文章目录
  1. 1,下载安装
  2. 2,赋予权限
  3. 3,打开端口
  4. 4,运行Brook
  5. 5,关闭Brook
  6. 6,windows客户端使用
  7. 7, Ubuntu下使用
  8. 8,命令 [来自github]
  9. 9, 安装锐速

Brook简易指南

服务器是centos7. Brook简介及源码

1,下载安装

[直接到上面地址下载或者使用下面方法]

1
brook_ver=$(wget -qO- "https://github.com/txthinking/brook/tags"| grep "/txthinking/brook/releases/tag/"| head -n 1| awk -F "/tag/" '{print $2}'| sed 's/\">//') && echo ${brook_ver}

执行完后会输出获取的最新版本号,比如 v20170330 这样的日期格式,如果返回是空或者其他错误的内容,那么就代表获取失败。
然后执行:

1
brook_ver=v20170330

执行下面命令来判断VPS位数,如果是 x86_64 就是64位。如果返回 i386或i686 就是32位

1
unname -m
1
2
3
4
5
# 64位系统使用这个:
wget -N --no-check-certificate "https://github.com/txthinking/brook/releases/download/${brook_ver}/brook"

# 32位系统使用这个:
wget -N --no-check-certificate "https://github.com/txthinking/brook/releases/download/${brook_ver}/brook_linux_386" && mv brook_linux_386 brook

2,赋予权限

1
chmod +x brook #运行的权限

3,打开端口

1
firewall-cmd --zone=public --add-port=9999/tcp --permanent   #假设要开放的端口是9999

4,运行Brook

1
2
3
4
5
6
7
8
9
10
#单端口启动
#监听端口为 9999 密码为 [AAA+C]
nohup ./brook server -l :9999 -p "[AAA+C]" > /dev/null 2>&1 &

#多端口启动
#账号分别为:
# 监听端口 9999 密码 [AAA+C]
# 监听端口 6666 密码 [AAA+B]
# 监听端口 8888 密码 [AAA+A]
nohup ./brook servers -l ":9999 [AAA+C]" -l ":6666 [AAA+B]" -l ":8888 [AAA+A]" > /dev/null 2>&1 &

5,关闭Brook

1
kill -9 $(ps -ef|grep "brook"|grep -v grep|awk '{print $2}')

6,windows客户端使用

直接从Github 32x 64x下载安装 打开运行 输入端口号和密码就可以了

7, Ubuntu下使用

因brook 服务端和客户端是一个,执行的命令不同。所以直接执行下面命令就可以了…

1
brook client -l 127.0.0.1:1080 -i 127.0.0.1 -s [server_address]:[port] -p [password]

8,命令 [来自github]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
USAGE:
brook [global options] command [command options] [arguments...]
VERSION:
20180227
COMMANDS:
server Run as server mode
servers Run as multiple servers mode
client Run as client mode
tunnel Run as tunnel mode
tproxy Run as tproxy mode, transparent proxy, only works on Linux
streamserver Run as server mode
streamservers Run as multiple servers mode
streamclient Run as client mode
ssserver Run as shadowsocks server mode, fixed method is aes-256-cfb
ssservers Run as shadowsocks multiple servers mode, fixed method is aes-256-cfb
ssclient Run as shadowsocks client mode, fixed method is aes-256-cfb
socks5 Run as raw socks5 server
relay Run as relay mode
relays Run as multiple relays mode
qr Print brook server QR code
socks5tohttp Convert socks5 to http proxy
systemproxy Set system proxy with pac url, or remove, only works on MacOS/Windows
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--debug, -d Enable debug
--listen value, -l value Listen address for debug (default: ":6060")
--help, -h show help
--version, -v print the version

9, 安装锐速

1
2
3
4
5
6
7
8
9
10
11
12
#更换内核为 3.10.0-229.1.2.el7.x86_64
rpm -ivh http://soft.91yun.org/ISO/Linux/CentOS/kernel/kernel-3.10.0-229.1.2.el7.x86_64.rpm --force

#重启服务器
reboot
#shutdown -r now

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

#启用锐速
service serverSpeeder start
支持一下
  • 微信扫一扫
  • 支付宝扫一扫