RHCE作业1

过程

root@peach \~# mount /dev/sr0 /mnt #挂载

root@peach \~# dnf install nginx -y #安装

root@peach nginx# systemctl stop firewalld #关闭防火墙

root@peach nginx# systemctl restart nginx #重启

root@peach nginx# setenforce 0 #关闭selinux

root@peach nginx# nmtui #写多IP

root@peach nginx# nmcli connection up ens160 #重启nmtui

root@peach nginx#vim /etc/nginx/conf.d/test_ip.conf #编辑

root@peach nginx# mkdir /test/{100,128,200} -pv #创建文件

root@peach nginx# echo this is 128 > /test/128/index.html

root@peach nginx# echo this is 100 > /test/100/index.html

root@peach nginx# echo this is 200 > /test/200/index.html #根据配置在主机创建数据文件

root@peach nginx# systemctl restart nginx #重启

验证

相关推荐
DLYSB_35 分钟前
存储运维实战:基于 Ceph Event 监听与 Python 适配器的分布式存储健康度物理声光响应架构
运维·ceph·python·报警灯
爱丶狸1 小时前
Grafana_Zabbix_ImageRenderer_部署与前端操作手册
linux·前端·zabbix·grafana·kylin
阿里云云原生2 小时前
可用性从 99.9% 跃升至 99.995%:畅捷通如何用 AI 重塑运维底座?
运维·网络·人工智能
k4m7v2pz2 小时前
把 Bevy 0.14 游戏移植到 R36S 掌机:一场与“无窗口系统“的搏斗
linux·rust·bevy·r36s·rk3326·开源掌机
阿童木写作2 小时前
Python实现Temu图片批量翻译自动化教程
运维·人工智能·python·自动化
iori97king4 小时前
库存不足自动通知:第一次使用自动化
运维·自动化
@insist1234 小时前
信息系统管理工程师-信息系统运维资源、技术与智能运维核心考点解析
运维·软考·信管·软件水平考试·信息系统管理工程师
木子欢儿4 小时前
Intel 架构的 MacBook Pro 运行 Linux 发热量高解决
linux·运维·服务器
KKKlucifer6 小时前
运营商全域安全运维支撑体系落地实践
运维·安全
EAIReport6 小时前
工业电气自动化数据治理破局:多Agent大模型赋能全景智能决策
大数据·运维·自动化