环境:CentOS 7.4
1、关闭 firewall (防火墙)
https://blog.csdn.net/qq_37195375/article/details/114683004
2、关闭 SELINUX
https://blog.csdn.net/qq_37195375/article/details/114683295
3、安装 Apache
yum install httpd #根据提示,输入Y安装即可成功安装
systemctl start httpd.service #启动apache
systemctl stop httpd.service #停止apache
systemctl restart httpd.service #重启apache
systemctl enable httpd.service #设置apache开机启动
查看安装成功( apache 版本号)
httpd -v
显示下面内容,表示安装成功
Server version: Apache/2.4.6 (CentOS)
Server built: Nov 16 2020 16:18:20
附加
CentOS 使用 yum 源安装 PHP 各版本、及 PHP 各扩展总结
https://blog.csdn.net/qq_37195375/article/details/114683486
CentOS 安装 MySQL 5.6 源码编译安装记录