RHEL7中的Web服务
1
概念
• 软件包:httpd
• 系统服务:httpd
• 提供的默认配置
– Listen:监听地址:端口(80)
– ServerName:本站点注册的DNS名称(空缺)
– DocumentRoot:网页根目录(/var/www/html)
– DirectoryIndex:起始页/首页文件名(index.html)
2
实验:
(前提:虚拟机test01和虚拟机test02分别设置允许防火墙所有# firewall-cmd --set-default-zone=trusted)
虚拟机test01:
1.安装httpd
#yum -y install httpd
2.启动httpd服务
#systemctl restart httpd
3.下载网页文件
# wget http://网络软件包地址.com/pub/materials/station.html -O /var/www/html/index.html
虚拟机test02:
1.安装elinks
#yum -y install elinks
2.利用elinks进行访问
# elinks -dump test02.abc.com
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有