受限于网络问题要在国内使用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
Comments | NOTHING