-
Notifications
You must be signed in to change notification settings - Fork 20
/
update.sh
41 lines (36 loc) · 1.18 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
37
38
39
40
41
echo "欢迎使用一键搭建"
echo "即将搭建的是30版本"
echo "此版本修复载具追随"
echo "但仍存在bug"
echo "加Q522681351获取最新动态"
echo "准备开始安装"
read -p "回车后开始安装"
echo "请输入你的内网ip"
read -p "内网ip: " ip
cp /root/PUBG-Radar-Onekey/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 "加速环境搭建成功,请记住连接信息"
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/vip522681351/pubg.git
cd pubg/
npm i
npm i -g pino
npm install -g forever
forever start index.js sniff eth0 $ip | pino
echo "端口已经修改为88"