环境: 本地外网ip:123.58.251.166 .配置index.html网页 [root@host---- conf.d]# cat /web/sing/index.html <h1>www.test1.com</h1> .配置conf.d目录下配置文件 [root@host---- conf.d]# pwd /etc/nginx/conf.d [root@host---- conf.d]# ls test1.conf test2.conf test3.conf [root@…
环境: 本地外网ip:123.58.251.166 .配置index.html网页 [root@host---- conf.d]# cat /web/sing/index.html <h1>www.test1.com</h1> .配置conf.d目录下配置文件 [root@host---- conf.d]# pwd /etc/nginx/conf.d [root@host---- conf.d]# ls test1.conf test2.conf test3.conf [root@…
.环境 nginx 10.1.1.161 公网:123.58.251.166 tomcat 10.1.1.103 .tomcat 配置 [root@host---- ~]# netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp /redis-server tcp /sshd tcp /…
前言 问题一:我们在App内嵌H5开发的过程中,肯定会遇到一个问题就是我不想在chrome的控制台中调试也不想在模拟器中调试,我想要在真机上调试,那么如何解决这个问题呢? 问题二:我们期待调试时达到的效果就是和Charles学习(二)之使用Map local代理本地静态资源在Mac上调试移动端中实现的效果相同,也就是说代码更改手机端页面实时更新,这个问题如何解决? 方案 问题一解决方案:使用真机,需要一台iPhone和一台Android,在真机上安装测试包 问题二解决方案: 配置移动端代理 | …
环境: 本地外网ip:123.58.251.166 .配置index.html网页 [root@host---- conf.d]# cat /web/sing/index.html <h1>www.test1.com</h1> [root@host---- conf.d]# cat /root/html/index.html <h1>www.test2.com</h1> .配置conf.d目录下配置文件 [root@host---- conf.d]# pwd…
环境: 本地外网ip:123.58.251.166 .配置index.html网页 [root@host---- conf.d]# cat /web/sing/index.html <h1>www.test1.com</h1> [root@host---- conf.d]# cat /root/html/index.html <h1>www.test2.com</h1> .配置conf.d目录下配置文件 [root@host---- conf.d]# pwd…
.环境 nginx 10.1.1.161 公网:123.58.251.166 tomcat 10.1.1.103 .远端tomcat 配置 [root@host---- ~]# netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp /redis-server tcp /sshd tcp…
1.反向代理概述 反向代理(Reverse Proxy)方式是指以代理服务器来接受internet上的连接请求,然后将请求转发给内部网络上的服务器,并将从服务器上得到的结果返回给internet上请求连接的客户端,此时代理服务器对外就表现为一个反向代理服务器. 环境准备: 主机名 IP地址 角色 系统 web-node1.com eth0:192.168.90.201 web-node1节点 CentOS7.2 web-node2.com eth0:192.168.90.202 web-node…
实际开发中,会有不同的环境: - 开发环境:自己的电脑- 测试环境:提供给测试人员使用的环境- 预发布环境:数据是和生成环境的数据一致,运行最新的项目代码进去测试- 生产环境:项目最终发布上线的环境 如果不同环境使用不同的ip去访问,可能会出现一些问题.为了保证所有环境的一致,在各种环境下都使用域名来访问. 一个域名一定会被解析为一个或多个ip.这一般会包含两步: - 本地域名解析 浏览器会首先在本机的hosts文件中查找域名映射的IP地址,如果查找到就返回IP ,没找到则进行域名服务器解析,一…
在政府,医院等单位有网络安全要求,对内外网进行物理隔离,然而内网主机无法访问互联网下载安装包,通过Nginx 反向代理搭建本地yum服务器实现内网主机安装包下载. Centos 8.2 部署 Nginx Server 系统版本 [root@yum-server ~]# cat /etc/redhat-release CentOS Linux release 8.2.2004 (Core) 配置Nginx 源 # cat nginx.repo [nginx-stable] name=nginx s…