普通用户切换到root用户下
[root@localhost ~]# yum -y install httpd
设置httpd服务开机启动,开启httpd服务
[root@localhost ~]# systemctl enable httpd.service
[root@localhost ~]# systemctl list-unit-files httpd.service
80端口被监听,http启动
Centos7 安装http
最新推荐文章于 2022-09-02 22:56:49 发布