本文最后更新于289 天前,其中的信息可能已经过时,如有错误请发送邮件到3589035030@qq.com
1. 安装系统
2. 更新yum源
2.1.安装wget
yum -y install wget -y
2.2.备份
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.3.下载配置文件
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2.4.添加EPEL
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
2.5.清除yum缓存
yum clean all
2.6.重新生成yum缓存
yum makecache -y
3. 更新yum
yum update -y
4. 传文件
sftp
5. 解压文件
sudo tar -xvzf ngrok-v3-stable-linux-amd64.tgz -C /usr/local/bin
6. 测试网络连通性
ping www.baidu.com
7. 生成用户token
注意文中token需改为自己实际的token
ngrok config add-authtoken*******************(改成实际的)
8. 使用静态域部署
ngrok http --domain=driven-tightly-ram.ngrok-free.app 80
9. 关闭内网穿透
ctrl+c
10. 安装面板
wget -O install.sh http://download.bt.cn/install/install_6.0.sh &&echo y | sh install.sh