Nginx实现反向代理 openresty-nginx增强版(现在使用的) localhost 反向代理到 s102--s104 http://openresty.org/cn/ 1.windows下 安装openresty,并修改nginx.conf配置文件 nginx.conf配置文件 #使用指 ...
分类:
其他好文 时间:
2018-10-28 14:52:45
阅读次数:
257
首先,环境中必然要有gcc-c++环境 yum -y install gcc-c++ 1 使用openresty 这里使用的是1.11.2.1版本的openresty和1.0.2版本的openssl 可以在这里设置user和group,也可以稍后使用下面的命令进行设置 chown -R [user] ...
分类:
其他好文 时间:
2018-10-26 15:08:49
阅读次数:
1330
下载naxsi 编译openresty加上--add-module 将核心规则复制到openresty的conf中 自定义一个规则文件 内容为 编辑opernresty的主配置文件 在http中引用核心规则 在接口中引用自定义规则 ...
分类:
数据库 时间:
2018-10-24 10:50:53
阅读次数:
327
前言系统环境是Centos7,nginx选用的是openresty版本编译OpenResty下载wgethttps://openresty.org/download/openresty-1.13.6.2.tar.gztarzxmfopenresty-1.13.6.2.tar.gz编译cdopenresty-1.13.6.2/yum-yinstallgccgcc-c++pcrepcre-develz
分类:
其他好文 时间:
2018-10-16 02:08:49
阅读次数:
1946
安装vue http://blog.51cto.com/aaronsa/2064466 Nginx 一.课程介绍 1.应用场景2.虚拟主机(IP,端口,域名)3.反向代理4.负载均衡 openresty(基于Nginx 封装的) nginx+lua 性能牛B!openresty 安装nainx+lu ...
分类:
其他好文 时间:
2018-10-02 20:37:11
阅读次数:
607
火焰图是定位疑难杂症的神器,比如 CPU 占用高、内存泄漏等问题。特别是 Lua 级别的火焰图,可以定位到函数和代码级别。 一、研究 https://moonbingbing.gitbooks.io/openresty-best-practices/flame_graph.html https:// ...
分类:
系统相关 时间:
2018-09-27 19:15:06
阅读次数:
217
头部string(195) "HTTP/1.1 200 OK Server: openresty/1.7.7.1 Date: Wed, 05 Sep 2018 13:18:33 GMT Content-Type: text/plain; charset=utf-8 Content-Length: 1 ...
分类:
Web程序 时间:
2018-09-05 23:57:18
阅读次数:
472
cuid 是一个不错的id 生成算发,类似的有shortid 、hashid 演示使用lua 包集成openresty 做测试 使用docker-compose 运行 dockerfile FROM openresty/openresty:alpine-fat RUN apk add --no-ca ...
分类:
其他好文 时间:
2018-08-31 23:26:54
阅读次数:
464
解决问题1:业务系统以post方式上发请求日志,需要对日志进行采集分析;解决方法:1:可以安装openresty版本nginx;2:可以使用官方nginx版本编译lua模块;nginx版本:nginx-vnginxversion:openresty/1.13.6.2配置案例日志配置log_formatpost_format‘$time_iso8601\t$remote_addr\t$http_us
分类:
其他好文 时间:
2018-08-27 14:09:32
阅读次数:
201
原文: "openresty/replace filter nginx module" 1. 概要 2. 描述 该 Nginx 输出过滤模块尝试尽可能以非缓存模式执行正则表达式替换。 该模块没有使用像 PCRE 这样的传统回溯正则表达式 engines,而是使用由作者实现的新的 sregex 库,它 ...
分类:
其他好文 时间:
2018-08-16 13:47:09
阅读次数:
159