共计 720 个字符,预计需要花费 2 分钟才能阅读完成。
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
11. 建立站点
正文完