# 1. 安装系统
# 2. 更新yum源
## 2.1.安装wget
“`bash
yum -y install wget -y
“`
## 2.2.备份
“`bash
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
“`
## 2.3.下载配置文件
“`bash
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
“`
## 2.4.添加EPEL
“`bash
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
“`
## 2.5.清除yum缓存
“`bash
yum clean all
“`
## 2.6.重新生成yum缓存
“`bash
yum makecache -y
“`
# 3. 更新yum
“`bash
yum update -y
“`
# 4. 传文件
“`sftp“`
# 5. 解压文件
“`bash
sudo tar -xvzf ngrok-v3-stable-linux-amd64.tgz -C /usr/local/bin
“`
# 6. 测试网络连通性
“`bash
ping www.baidu.com
“`
# 7. 生成用户token
**注意文中token需改为自己实际的token**
“`bash
ngrok config add-authtoken*******************(改成实际的)
“`
# 8. 使用静态域部署
“`bash
ngrok http –domain=driven-tightly-ram.ngrok-free.app 80
“`
# 9. 关闭内网穿透
ctrl+c
# 10. 安装面板
“`bash
wget -O install.sh http://download.bt.cn/install/install_6.0.sh &&echo y | sh install.sh
“`
# 11. 建立站点