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 #重启 验证结果  
相关推荐
Starry_hello world43 分钟前
Linux 的准备工作Rverdoser1 小时前
服务器(一种管理计算资源的计算机)流浪法师122 小时前
SecProxy - 自动化安全协同平台_考不上研究生不改名2 小时前
【完美解决】VSCode连接HPC节点,已配置密钥却还是提示需要输入密码_长银2 小时前
Vim搜索和替换IT _oA3 小时前
Active Directory 域服务·云扬·4 小时前
【BUG】阿里云服务器数据库远程连接报错MXsoft6184 小时前
云原生运维在 2025 年的发展蓝图爱的叹息4 小时前
Spring Boot 自定义配置类(包含字符串、数字、布尔、小数、集合、映射、嵌套对象)实现步骤及示例嵌入式-老费4 小时前
Linux上位机开发实践(一个硬件算法加速的示例)