安裝Apache
启动Apache,并且设定为开机自动启动
允许http服务通过防火墙
CentOS 7的内置防火墙默认设置为阻止网络流量
重启Apache
配置文件
/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/vhost.conf
创建上面引用的目录:
检查Apache的状态
停止Apache
参考:
https://www.linode.com/docs/web-servers/apache/install-and-configure-apache-on-centos-7/
https://www.liquidweb.com/kb/how-to-install-apache-on-centos-7/
SELinux:https://www.brilliantcode.net/170/centos-7-install-apache-httpd/
SELinux:https://www.brilliantcode.net/145/centos-7-check-selinux-status-enabled-or-not/