北在北方

太白枝头看,花开不计年,杯中浮日月,楼外是青天。

导航

随笔分类 -  Nginx

摘要:操作系统:CentOS6.5 64bitNginx: 1.9.31、下载Nginx[root@iZ94jj63a3sZ softs]# wget http://nginx.org/download/nginx-1.9.3.tar.gz2、安装依赖的库[root@iZ94jj63a3sZ softs]... 阅读全文

posted @ 2015-08-02 14:02 CN.programmer.Luxh 阅读(2946) 评论(0) 推荐(0)

摘要:图片上传请求由Node处理,图片访问请求由Nginx处理。1、Nginx配置#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log lo... 阅读全文

posted @ 2014-11-25 17:11 CN.programmer.Luxh 阅读(3337) 评论(0) 推荐(0)

摘要:1、搭建环境 192.168.29.128(luxh-01.com) 安装nginx,参考http://www.cnblogs.com/luxh/p/4067038.html 192.168.29.129(luxh-02.com) 安装tomcat和memcached 192.168.29... 阅读全文

posted @ 2014-11-04 23:47 CN.programmer.Luxh 阅读(717) 评论(0) 推荐(0)

摘要:Linux下安装Nginx,需要保证一些依赖的库先被安装好。1、安装好g++、ssl、pcre、zlib库文件2、安装Nginx 1)执行./configure 命令编译,需指定一些编译参数 --prefix= 定义安装目录(默认/usr/local/nginx) --sbin-path... 阅读全文

posted @ 2014-11-01 13:15 CN.programmer.Luxh 阅读(453) 评论(0) 推荐(0)

摘要:一个最简单的负载均衡测试,不涉及到session复制,只是将请求分配到不同的服务器上去而已。1、创建一个简单的web应用。只有一个index.jsp页面,,内容如下。 Index Hello,Nginx! 打印一句话就ok,能... 阅读全文

posted @ 2014-10-28 11:07 CN.programmer.Luxh 阅读(480) 评论(0) 推荐(0)

摘要:Nginx一个频繁的应用是作为代理服务器,由Nginx代理服务器接受客户请求,并将客户请求发送到应用服务器处理,接受应用服务器的响应,然后将响应发送给客户。 现在要做的一个应用场景就是当客户请求图片资源时,直接由Nginx从本地获取,如果请求jsp资源,则Nginx将请求发送到Tomcat服务... 阅读全文

posted @ 2014-10-27 16:57 CN.programmer.Luxh 阅读(418) 评论(0) 推荐(0)

摘要:1、简单安装 1)下载http://nginx.org/en/download.html 2)解压后的路径E:\Study\nginx\nginx-1.7.6 3)执行nginx.exe,访问http://localhost ,出现Welcome to nginx!欢迎内容,安装成功。 4)... 阅读全文

posted @ 2014-10-27 15:38 CN.programmer.Luxh 阅读(2073) 评论(1) 推荐(1)