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

验证


