安装httpd服务
1 、查看 httpd 服务是否已经安装
[root@hadoop102 ~]# rpm -qa | grep httpd
2 、yum 安装 httpd 服务
[root@hadoop102 ~]# yum install -y httpd
3 、启动 httpd 服务
[root@hadoop102 ~]# systemctl start httpd.service
4 、关闭 httpd 服务
[root@hadoop102 ~]# systemctl stop httpd.service
5 、重启 httpd 服务
[root@hadoop102 ~]# systemctl restart httpd.service
6 、查看 httpd 服务运行状态
[root@hadoop102 ~]# systemctl status httpd.service