yum -y install httpd* //安装Apache服务程序(apache服务的软件包名称叫做httpd)
rpm -qa | grep httpd --查看安装的http包
sudo systemctl start httpd.service //启动Apache服务
lsof -i:80 --查看httpd服务是否启动
yum -y install httpd* //安装Apache服务程序(apache服务的软件包名称叫做httpd)
rpm -qa | grep httpd --查看安装的http包
sudo systemctl start httpd.service //启动Apache服务
lsof -i:80 --查看httpd服务是否启动