root@server \~\]# mount /dev/sr0 /mnt #挂载 \[root@server \~\]# dnf install nginx -y #安装  \[root@server nginx\]# systemctl stop firewalld #关闭防火墙 \[root@server nginx\]# systemctl restart nginx #重启 \[root@server nginx\]# setenforce 0 #关闭selinux \[root@server nginx\]# nmtui #写多IP  \[root@server nginx\]# nmcli connection up ens160 #重启nmtui  \[root@server nginx\]#vim /etc/nginx/conf.d/test_ip.conf #编辑  \[root@server nginx\]# mkdir /test/{100,129,200} -pv #创建文件  \[root@server nginx\]# echo this is 129 \> /test/129/index.html \[root@server nginx\]# echo this is 100 \> /test/100/index.html \[root@server nginx\]# echo this is 200 \> /test/200/index.html #根据配置在主机创建数据文件 \[root@server nginx\]# systemctl restart nginx #重启 验证结果  
相关推荐
硅基导游1 小时前
Linux内核观测与跟踪的利器BPF环境测试YXXY3131 小时前
Linux进程概念(四)了一梨2 小时前
[T113] 交叉编译 OpenCV 4.5.2 + face 模块我是谁??2 小时前
在 Rocky Linux 9 无桌面环境中通过 SSH 安装 KVM 虚拟机(Rocky9含 XFCE 桌面/xubuntu20)完整指南3DVisionary2 小时前
突破3C质检产能瓶颈:XTOM蓝光扫描仪配合自动化转台实现精密件批量检测困死,根本不会2 小时前
VMware Ubuntu 显示有线连接却无法上网|完整排查与解决笔记Luke Ewin2 小时前
Linux中部署Qwen3.5大模型xin_yao_xin2 小时前
Windows 下 Docker Desktop 安装教程及常用命令(2026 最新)