1. 执行安装命令
yum install -y httpd
2.安装相关软件
yum install -y httpd-manual mod_ssl mod_perl mod_auth_mysql
3. 启动httpd
systemctl start httpd.service
4.打开浏览器,测试,一切运行正常。
5. 添加开机启动
systemctl stop httpd.service
systemctl enable httpd.service
小结:使用yum安装比起源码安装更快捷方便 。