forked from qq907987/PUBGYS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
36 lines (32 loc) · 1.12 KB
/
update.sh
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
30
31
32
33
34
35
36
#!/bin/bash
echo "欢迎使用网页雷达一键免费脚本"
echo "即将搭建的是2018年5月3日版本"
echo "请输入你的内网ip"
read -p "内网ip: " ip
cp /root/PUBGYS/restart.sh /root/restart.sh
chmod +x restart.sh
wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log
echo "ss搭建成,请记住连接信息"
read -p "记住了吗?任意键继续"
curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash
source ~/.bash_profile
nvm install v9.8.0
nvm alias default v9.8.0
yum -y install gcc-c++
yum -y install flex
yum -y install bison
wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz
tar -zxvf libpcap-1.8.1.tar.gz
cd libpcap-1.8.1
./configure
make
make install
git clone https://github.com/qq907987/PUBGYS.git
cd PUBGYS/
npm i
npm i -g pino
npm install -g forever
forever start index.js sniff eth0 $ip | pino
echo "搭建完成 ! 请使用你的浏览器打开 服务器的 公网IP 后面加上:20086 查看雷达界面"