当前位置: 首页> 财经> 创投人物 > 东莞求职招聘信息网_公众号营销_网站seo推广平台_网络营销成功的案例

东莞求职招聘信息网_公众号营销_网站seo推广平台_网络营销成功的案例

时间:2025/7/14 20:46:04来源:https://blog.csdn.net/m0_61475941/article/details/143110752 浏览次数:0次
东莞求职招聘信息网_公众号营销_网站seo推广平台_网络营销成功的案例

多ip访问网站

安装nginx

[root@localhost ~]# dnf install nginx -y

关闭防火墙,sulinux

[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# setenforce 0

添加多IP(这里使用图形化模式)

[root@localhost ~]# nmtui
[root@localhost ~]# nmcli connection up ens160

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

撰写配置文件

[root@localhost ~]# vim /etc/nginx/conf.d/test_ip.conf
server {listen 192.168.36.100:80;# server_nameroot /test/100;location / {index index.html;}
}
server{listen 192.168.36.200:80;#server_nameroot /test/200;location / {index index.html;}
}

在这里插入图片描述

创建存放ip显示内容的目录

[root@localhost ~]# mkdir /test/{100,200} -pv

像两个ip网页写入内容

[root@localhost ~]# echo this is 1 > /test/100/index.html
[root@localhost ~]# echo this is 2 > /test/200/index.html

重启nginx服务

[root@localhost ~]# systemctl restart nginx

测试

[root@localhost ~]# curl 192.168.36.100
this is 1
[root@localhost ~]# curl 192.168.36.200
this is 2

请添加图片描述
请添加图片描述

关键字:东莞求职招聘信息网_公众号营销_网站seo推广平台_网络营销成功的案例

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: