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 #重启 验证结果  
相关推荐
tan180°13 分钟前
MySQL表的操作(3)代码老y18 分钟前
Docker:容器化技术的基石与实践指南典学长编程42 分钟前
Linux操作系统从入门到精通!第二天(命令行)wuk9981 小时前
基于MATLAB编制的锂离子电池伪二维模型你想考研啊3 小时前
四、jenkins自动构建和设置邮箱Code blocks3 小时前
使用Jenkins完成springboot项目快速更新snoopyfly~4 小时前
Ubuntu 24.04 LTS 服务器配置:安装 JDK、Nginx、Redis。独行soc4 小时前
#渗透测试#批量漏洞挖掘#HSC Mailinspector 任意文件读取漏洞(CVE-2024-34470)BD_Marathon4 小时前
Ubuntu下Tomcat的配置饥饿的半导体4 小时前
Linux快速入门