Linux系统安装apache详细教程

1.下载安装apache

yum install httpd

 2.查看是否安装成功

rpm -qa |grep httpd

 3.启动apache服务

sudo systemctl start httpd.service 

4.查看apache服务状态

sudo systemctl status httpd.service 

 相关命令:

sudo systemctl stop httpd.service 停止apache服务

sudo systemctl restart httpd.service 重启apache服务