一、安装Apache相关软件
u[root@RHEL7-1 ~]# rpm -q httpd u[root@RHEL7-1 ~]# mkdir /iso u[root@RHEL7-1 ~]# mount /dev/cdrom /iso u[root@RHEL7-1 ~]# yum clean all //安装前先清除缓存 u[root@RHEL7-1 ~]# yum install httpd -y u[root@RHEL7-1 ~]# yum install firefox –y //安装浏览器 u[root@RHEL7-1 ~]# rpm –qa|grep httpd //检查安装组件是否成功
二、启动或重新启动、停止Apache服务的命令如下:
[root@RHEL7-1 ~]# systemctl start/restart/stop httpd
好耶