forked from 2070757673/junchi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
38 lines (34 loc) · 1.06 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
#!/bin/bash
echo "欢迎使用俊驰一键搭建"
echo "即将搭建的是5.01版本"
echo "准备开始安装"
read -p "回车后开始安装"
echo "请输入你的内网ip"
read -p "内网ip: " ip
cp /root/junchi/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/2070757673/junchi.git
cd junchi/
npm i
npm i -g pino
npm install -g forever
forever start index.js sniff eth0 $ip | pino
echo "搭建完成"