普通用户切换到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
最新推荐文章于 2025-05-06 14:33:16 发布
本文介绍如何在Linux环境下使用root用户权限安装HTTP服务,并通过systemctl命令配置其开机自启动,确保80端口始终处于监听状态。
1万+

被折叠的 条评论
为什么被折叠?



