当前位置:网站首页>RHCE课程总结
RHCE课程总结
2022-08-09 13:32:00 【掌九】
RHCE课程总结(三)
要求:
1、要求搭建web服务器,能够访问到网页内容为“小胖,你咋这么胖呢!”
2、要求搭建web服务器,创建基于域名的虚拟主机,能够使用www.xiaopang.com和www.dapang.com访问各自的网站网站存放路径分别为/xiaopang和/dapang,(内容自定)
第一题:
1、挂载(采取本地安装,先行挂载)
[[email protected] ~]# mount /dev/sr0 /mnt
mount: /mnt: WARNING: device write-protected, mounted read-only.
[[email protected] ~]#
2、安装软件包
配置yum仓库:
[[email protected] ~]# vim /etc/yum.repos.d/base.repo
输入:
[BaseOS]
name=BaseOS
baseurl=file:///mnt/BaseOS
gpgcheck=0
[AppStream]
name=AppStream
baseurl=file:///mnt/AppStream
gpgcheck=0
保存并退出


3、启动服务
[[email protected] ~]# systemctl start httpd
(查看服务运行情况)——
4、关闭防火墙,关闭selinux
[[email protected] ~]# systemctl stop firewalld
[[email protected] ~]# setenforce 0
5、配置子文件

6、创建/aaa,写入网页内容
输入:小胖,你咋这么胖呢?

7、重启服务并测试

得到
第二题
1、配置网络

2、激活链接
3、创建目录
4、编写内容

5、编写配置文件

6、编辑域名解析


7、访问



边栏推荐
猜你喜欢
随机推荐
哈希表卡片
大规模并行分布式深度学习
Mysql seven connection query methods
使用Connection对象连接管理事务
Jetpack Compose - the use of Image (picture)
汇编语言学习(一)
几种常见路由类型及其优先级
使用 NVIDIA Kaolin Wisp 重建3D场景
一篇ngork直接使用
【LeetCode】1413. 逐步求和得到正数的最小值
Jetpack Compose - Use of TextField and OutlinedTextField (text box)
typeorm 批量插入数据优化和插入冲突操作
Jetpack Compose - remember, mutableStateOf, rememberSaveable
力扣学习路径
*1-4 OJ 605 格雷码
202五一杯数学建模ABC三题
vs怎么用一个Button链接到另一个页面
*1-2 OJ 190 游程编码
Column of openharmony container component
*3-2 CCF 2014-09-2 画图









