使用yum 安装
先切换阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
切换阿里源
加个dns以便访问公网
vim /etc/resolv.conf
ping百度试一下
在终端输入宝塔安装命令
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
安装宝塔
安装完成后
会有访问网址和账户密码
登录
可以通过下载软件一键部署网站,也可以自己更改
更改图中的 index.html