当前位置:网站首页>RHCE搭建简单web网站
RHCE搭建简单web网站
2022-04-21 13:50:00 【Ghost eye】
本次需要做两个简单的网站,可在本地访问,使用不同ip可以切换网页内容
1、在rhel8的系统上搭建网站:该网站ip地址主机位为11,设置documentroot为/www/你的名字拼音的缩写,网页内容为:my name is…
2、在rhel8的系统上搭建网站:该网站ip地址主机位为12,设置documentroot为/www/12,网页内容为:wo shi 你的姓名的拼音。
首先准备yum源,安装httpd服务
写yum源
vim /etc/yum.repos.d/suibian.repo
进入后写入

安装httpd
mount /dev/sr0 mnt 挂载
yum install httpd -y 安装

查看防火墙状态以及selinux服务
这里我们的防火墙查看到已经关闭
其他的命令
systemctl status firewalld 查看状态
systemctl stop firewalld 本次关闭防火墙
systemctl disable firewalld 永久性关闭防火墙
更改selinux
setenforce 0 更改为非强制模式
getenforce 查看当前模式

也可通过更改/etc/selinux/conffig文件修改

开始制作
添加俩个ip地址,

查看一下

创建网页文件夹,编辑内容

配置连接ip的文件(在/etc/httpd/conf.d下创建一个xx.conf)配置内容如下

重启httpd服务便可以查看文件了


网页也可以访问
版权声明
本文为[Ghost eye]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_46595570/article/details/120443169
边栏推荐
- 2021-10-20接口测试
- 双归上行--主备/负载
- 2021-10-21软件测试理论
- Initial view of SQL level hint function of the new features of Yijing jieqian bank
- MySQL high performance business table structure and index design practice
- 山东大学项目实训树莓派提升计划二期(七)对象和类
- 深度学习与图像识别:原理与实践 笔记Day_11
- Unittest unit test (III)
- CDH5删除数据节点
- SQL注入之sqli-labs等(安装,配置)
猜你喜欢

Ipemotion collects J1939 protocol signal

The importance of computing edge in Networkx: edge intermediate number or intermediate centrality edge_ betweenness

EsgynDB CQD-traf_lock_ddl

【leetcode】516.最长回文子序列

Machine learning notes - Moore Penrose pseudo inverse

Unittest单元测试(三)

Fengqiu technology provides you with 10M Ethernet solution

EsgynDB CQD-traf_ lock_ ddl

双归上行--主备/负载

New technology is coming again, embrace agp7 0, are you ready to say goodbye to transform?
随机推荐
数据库基础篇
EsgynDB SQL统计模式下各对象个数
<2021SC@SDUSC>山东大学软件工程应用与实践JPress代码分析(十)
易鲸捷钱库新特性之SQL级别HINT功能初见
深度学习与图像识别:原理与实践 笔记Day_12
Unittest unit test (II)
EsgynDB之TRIM函数
2021-10-26协议
Introduction and practice of automatic monitoring system Prometheus & grafana
通过反向传播来实现MNIST识别
JVM內存分配機制詳解
常见卷积神经网络结构
c3p0的坑导致并发性能问题
并发编程之JMM模型和并发三大特性
<2021SC@SDUSC>山东大学软件工程应用与实践JPress代码分析(七)
Oracle 的体系结构
Number of objects in esgyndb SQL statistics mode
Unittest单元测试(二)
深度学习与图像识别:原理与实践 笔记Day_17
Analysis of MySQL connection query cost and cost statistics
