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 #重启

验证

相关推荐
明夜之约18 分钟前
Linux 系统命令使用速查手册
linux·运维
武子康1 小时前
调查研究-153 Cloudflare 能部署网站吗?2026 年完整对比 Vercel / Netlify / 自建服务器
大数据·运维·服务器·人工智能·部署·devops·opc
Zldaisy3d1 小时前
物理测试不是唯一方式!增材制造零部件认证路径正在悄悄改变
大数据·服务器·制造
夜月yeyue1 小时前
KCP 与 UDP 可靠传输
linux·网络·单片机·网络协议·udp·php
utf8mb4安全女神1 小时前
子网划分【概念+实操+理解】
运维·服务器·网络
xcLeigh1 小时前
KES数据库运维监控与故障排查实战
运维·数据库·sql·故障排查·运维监控·kes
比昨天多敲两行1 小时前
Linux信号
linux·运维·服务器
sulikey1 小时前
ELF文件中的“节“与“段“,如何与虚拟地址空间中的“分页“和“分段“产生联系?
linux·服务器·elf·虚拟地址空间·分页·分段·elf文件
志栋智能2 小时前
超自动化安全:构建智能安全运营的神经系统
大数据·运维·网络·人工智能·安全·自动化