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 #重启 验证结果  
相关推荐
甲鱼9296 小时前
MySQL 实战手记:日志管理与主从复制搭建全指南Johny_Zhao20 小时前
OpenClaw安装部署教程YuMiao1 天前
gstatic连接问题导致Google Gemini / Studio页面乱码或图标缺失问题chlk1232 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密舒一笑2 天前
Ubuntu系统安装CodeX出现问题改一下配置文件2 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)碳基沙盒2 天前
OpenClaw 多 Agent 配置实战指南深紫色的三北六号3 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)SudosuBash3 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)哈基咪怎么可能是AI3 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️