检查是否有旧版本的apache
rpm -qa | grep httpd
安装apache安装apache
yum install -y httpd
检查apache是否安装成功
rpm -qa | grep httpd
启动apache
systemctl start httpd
设置为默认启动
systemctl enable httpd.service
查看apache进程
ps -ef | grep apache
rpm -qa | grep httpd
yum install -y httpd
rpm -qa | grep httpd
systemctl start httpd
systemctl enable httpd.service
ps -ef | grep apache