加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

Linux搭建基于Apache的HTTP服务器

发布时间:2020-12-13 22:50:31 所属栏目:Linux 来源:网络整理
导读:Linux搭建基于Apache的HTTP服务器 ? 实验目标: 通过本实验掌握基于Linux的WWW服务器搭建。 ? 实验步骤: 1、安装http服务 2、防火墙放通http服务 3、编辑测试网页 4、开启http服务,浏览测试 ? ? 参考命令: ? 1、安装http Apache(阿帕奇)是Linux平台的ht

Linux搭建基于Apache的HTTP服务器

?

实验目标:

通过本实验掌握基于Linux的WWW服务器搭建。

?

实验步骤:

1、安装http服务

2、防火墙放通http服务

3、编辑测试网页

4、开启http服务,浏览测试

?

?

参考命令:

?

1、安装http

Apache(阿帕奇)是Linux平台的http软件

[[email?protected] dhcp]# yum install httpd -y

?

?

?

?? 已安装则对比软件仓库中的版本,如果版本相同则提示nothing to do

?

2、防火墙放通http服务

?

?

permanent 为添加一条永久规则,重启依然生效

reload 为重启防火墙

3、编辑测试网页

?

?

?

Apache默认存放首页的位置为/var/www/html

?

?

?

4、开启httpd服务,并浏览测试

?

服务器端

[[email?protected] html]# systemctl enable httpd

[[email?protected] html]# systemctl start httpd

?

客户机端

?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读