Centos7 安装http
普通用户切换到root用户下
[[email protected] ~]# yum -y install httpd
设置httpd服务开机启动,开启httpd服务
[[email protected] ~]# systemctl enable httpd.service
[[email protected] ~]# systemctl list-unit-files httpd.service
80端口被监听,http启动
普通用户切换到root用户下
[[email protected] ~]# yum -y install httpd
设置httpd服务开机启动,开启httpd服务
[[email protected] ~]# systemctl enable httpd.service
[[email protected] ~]# systemctl list-unit-files httpd.service
80端口被监听,http启动