关于如何在国内vps上部署brook转发


受限于网络问题要在国内使用brook只能手动安装brook
先下载 brook-pf.sh运行安装虽然会失败但是会创建目录
然后把一下三个文件下载并保存到cd /usr/local/brook-pf

分别是 brook brook.conf brook.log 并且给予777最高权限

wget -P /usr/local/brook-pf https://shagain.club/wenjian/brook/brook
wget -P /usr/local/brook-pf https://shagain.club/wenjian/brook/brook.conf
wget -P /usr/local/brook-pf https://shagain.club/wenjian/brook/brook.log

然后下载brook-pr保存到/etc/init.d 给予777最高权限

wget https://shagain.club/wenjian/brook/brook-pf

此时在运行脚本进行安装就没问题了
以下是脚本

#!/bin/bash
echo "请先安装brook 虽然安装失败"
echo "下次就自动运行了"
wget https://shagain.club/wenjian/brook/brook-pf.sh && bash brook-pf.sh
cd /usr/local/brook-pf
wget -P /usr/local/brook-pf https://shagain.club/wenjian/brook/brook
wget -P /usr/local/brook-pf https://shagain.club/wenjian/brook/brook.conf
wget -P /usr/local/brook-pf https://shagain.club/wenjian/brook/brook.log
cd /usr/local/brook-pf
chmod 777 brook brook.conf brook.log
cd /etc/init.d
wget -P /etc/init.d https://shagain.club/wenjian/brook/brook-pf
chmod 777 brook-pr
bash /root/brook-pf.sh

声明:小小博客|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - 关于如何在国内vps上部署brook转发


Carpe Diem and Do what I like