![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
23_nginx
文章平均质量分 81
信行合一
彻底拆分一切可控!
展开
-
docker nginx 代理宿主机服务
docker 的出现解决了我们很多问题,让我们避免陷入各种依赖安装的痛苦中,但是docker本身自己也有一些自己的规则,如果不知道也会让我们走很多弯路。最近在阿里云服务启动了一个nginx容器,在代理静态文件的时候都是正常访问的,但是在进行反向代理tomcat服务的过程中就一直报错:[error] 37#37: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 111.199.4.122原创 2021-01-29 23:07:52 · 4214 阅读 · 0 评论 -
jar包下载网站
www.java2s.com原创 2012-10-11 16:13:34 · 1499 阅读 · 0 评论 -
nginx 代理图片展示
nginx 图片服务器原创 2017-05-27 11:43:33 · 6015 阅读 · 0 评论 -
nginx rewrite
nginx 重定向原创 2016-09-25 17:52:20 · 568 阅读 · 0 评论 -
nginx 安装和使用
1.卸载已有的 nginx 2.软件下载地址 3.预先安装软件 4.安装 nginx 5.出现问题解决 6.启动和停止nginx 7.停止 8.启动 9.重启 10.测试 11.常见例子->访问静态文件 12.常见例子->一个负载均衡例子 13.常见例子->多个负载均衡,多个服务,多个端口 14.nginx可以实现的效果卸载已有的 nginxf...原创 2016-09-07 19:39:16 · 2725 阅读 · 0 评论 -
nginx ip hash
问题:项目的验证码一直不正确,怎么输入都错,后来从网上找了各种解决方法,有说 src="" 会执行两次加载事件的,后来通过火狐浏览器去调试确实发现有这个问题,代码如下:<img id="validImg" title="刷新验证码" src="getImage" onclick="this.src='getImage?'+Math.random();"/>不过这个问题还是解决不了原创 2015-11-13 16:06:22 · 2950 阅读 · 0 评论 -
nginx tcp http 代理配置
#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;}原创 2016-08-03 16:50:23 · 6959 阅读 · 0 评论 -
tomcat redis session 共享
1.依赖包下载1.redis配置(192.168.159.131:16300)(v2.8.3)2.tomcat配置 tomcat1(192.168.159.130:8081) tomcat2(192.168.159.130:8082)3.nginx安装在192.168.159.131。 首先,是配置tomcat,使其将session保存到redis上转载 2015-07-04 19:51:43 · 882 阅读 · 0 评论 -
nginx
安装说明系统环境:CentOS-6.3软件:nginx-1.2.6.tar.gz安装方式:源码编译安装 安装位置:/usr/local/nginx 下载地址:http://nginx.org/en/download.html安装前提 在安装nginx前,需要确保系统安装了g++、gcc、openssl-devel、pcre-devel和zlib-devel软件。安装必须转载 2014-09-25 21:24:39 · 839 阅读 · 0 评论 -
nginx 访问静态html 方式
1.nginx 配置:user nginx nginx;worker_processes 8;worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000;worker_rlimit_nofile 65536;#error_log logs/error原创 2014-10-27 19:46:27 · 65173 阅读 · 0 评论