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 #重启 验证结果  
相关推荐
半桔5 分钟前
【网络编程】套接字入门:网络字节序与套接字种类剖析云计算练习生5 分钟前
Linux 操作系统防火墙工具Firewalld常用操作nbsaas-boot6 分钟前
使用 DuckDB 构建高性能 OLAP 分析平台欢喜躲在眉梢里6 分钟前
mysql之二进制日志丬氼乀A10 分钟前
io的异步处理io_uring,实现io_uring_tcp_servertingting011921 分钟前
k8s kubelet 10250监控端口访问配置失因44 分钟前
Nginx 反向代理、负载均衡与 Keepalived 高可用迎風吹頭髮1 小时前
UNIX下C语言编程与实践6-Make 工具与 Makefile 编写:从基础语法到复杂项目构建实战码界奇点2 小时前
Nginx 502 Bad Gateway从 upstream 日志到 FastCGI 超时深度复盘struggle20252 小时前
Lightpanda:专为 AI 和自动化设计的无头浏览器