rpm -qa | grep httpd 查看是否安装过Apache
yum remove -y "httpd*" 有就卸载httpd
yum install -y httpd 重新安装httpd
systemctl status httpd 查看启动状态
systemctl start httpd 启动httpd
systemctl enable httpd 添加开机启动
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
firewall-cmd --query-port=80/tcp 设置防火墙开放tcp80端口
使用浏览器访问http://192.168.1.150/,显示如下界面,说明安装的Apache HTTP服务正常运行
安装mysql
下载 Discuz! X3.2官方版到服务器。
wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
解压 Discuz! X3.2软件包。
unzip Discuz_X3.2_SC_UTF8.zip
解压缩得到如下三个文件