- 博客(6)
- 收藏
- 关注
原创 nginx做反向代理时,配置其让tomcat的日志获取客户端ip
在nginx的配置文件nginx.conf中配置,加上proxy_set_header X-real-IP $remote_addr。 server { listen 80; server_name www.xxx.cn; #charset koi8-r;
2016-12-24 23:18:58 3155
原创 nginx.conf配置整理笔记(反向代理、缓存、均衡负载)更新中
#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 1
2016-12-24 20:45:28 791
原创 nginx1.1编译安装后生成目录
/etc/logrotate.d/nginx /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/ssl.conf /etc/nginx/conf.d/virtual.conf /etc/nginx/fastcgi.conf /etc/nginx/fastcgi.conf.default /etc/nginx/fastcgi_params
2016-12-23 23:05:47 1947
原创 nginx1.4成功编译安装中相关截图
补充: 如果编译过程失败了,可以查看nginx官网提供的src的rpm包中配置信息。看看自己的安装配置信息是否有问题。
2016-12-16 23:14:11 646
转载 nginx的sysV init脚本
为nginx提供SysV init脚本: 新建文件/etc/rc.d/init.d/nginx,内容如下: #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: Nginx is an HTTP(S) serve
2016-12-16 22:29:22 782
原创 使用redis作为访问记录存储的构想
用户的访问,以及商品被访问的情况这些数据,大部分都是非结构化的,传统的关系型数据库,对于在部分的存储,是比较棘手的,而NOSQL中redis由于其较多的数据类型和数据操作,可以满足大部分非结构化数据存储和获取操作的要求,下面贴出的代码,是基于本人真实项目中使用到测试用例,供大家参考。
2016-12-10 15:24:52 3754
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人