OpenResty

OpenResty (aka. ngx_openresty) is a full-fledged web application server by
bundling the standard Nginx
core, lots of 3rd-party Nginx
modules
, as well as most of their external dependencies.

By taking
advantage of various well-designed Nginx modules, OpenResty effectively turns
the nginx server into a powerful web app server, in which the web developers
can use the Lua programming language to script various existing nginx C modules
and Lua modules and construct extremely high-performance web applications that
are capable to handle 10K+ connections.

OpenResty aims to run your
server-side web app completely in the Nginx server, leveraging Nginx‘s event
model to do non-blocking I/O not only with the HTTP clients, but also with
remote backends like MySQL, PostgreSQL, Memcached, and Redis.

OpenResty
is not an Nginx fork. It is just a software bundle. Most of the patches
applied to the Nginx core in OpenResty have already been submitted to the
official Nginx team and most of the patches submitted have also been accepted.
We are trying hard not to fork Nginx and always to use the latest best
Nginx core from the official Nginx team.

来源:

http://www.openresty.org/

OpenResty,布布扣,bubuko.com

时间: 2024-10-18 15:29:57

OpenResty的相关文章

安装OpenResty开发环境

OpenResty是一个基于 Nginx 与 Lua 的高性能 Web 平台,其内部集成了大量精良的 Lua 库.第三方模块以及大多数的依赖项.用于方便地搭建能够处理超高并发.扩展性极高的动态 Web 应用.Web 服务和动态网关(摘自官网).本文将会介绍如何在Centos7上,安装Nginx+Lua的开发环境,并运行一个"Hello World"示例. 一.环境安装 1.1 创建工作路径 我计划将Openresty安装到/usr/servers下,首先创建这个文件夹. [[email

在 OS X 中使用 OpenResty

1. 移除 lighttpd 在 Mac OS X 上安装lighttpd 的时候,我使用 launchctl 来实现 lighttpd 的自动启动.现在,只需要 unload 即可. launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.lighttpd.plist 这会立即停止 lighttpd 的运行.接下来,将 homebrew.mxcl.lighttpd.plist 从~/Library/LanuchAgents 目录中移除.否则下

nginx+lua+redis(openresty)配置

nginx+lua+redis(openresty)配置 2014-07-18 11:10 2494人阅读 评论(1) 收藏 举报 方案一: 1.安装lua解释器 wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz (http://luajit.org/download.html) 配置lua Lib和include/luajit-$version目录为环境变量 2.下载ngx_devel_kit和lua-nginx-module https:

【Lua】Lua + openresty遍历文件目录

OpenResty (也称为 ngx_openresty)是一个全功能的 Web 应用服务器,它打包了标准的 Nginx 核心,很多的常用的第三方模块,以及它们的大多数依赖项. 今天用OpenResty + lua来遍历指定目录,返回json字符串 我们用Lua来遍历文件目录,并用nginx来访问lua文件,使其返回这个目录的json字符串. Lua代码: 1 local lfs = require("lfs") 2 3 function getType(path) 4 return

Openresty使用Thrift安装步骤

最新想用Golang与Openresty相互通讯调用,使用RPC协议来实现,后来研究最终选择了Thrift:主要还是FB实现了支持Lua和Go模块,直接编译就可以成功嵌套使用,非常方便:研究了两天最后编译成功,于是便把使用步骤做下记录. 1.Mac安装Thrift brew install thrift 2.Apache官网地址Thrift0.10下载地址 或者 git clone https://git-wip-us.apache.org/repos/asf/thrift.git thrift

lua resty template && openresty 使用

1. 安装 luarocks install lua-resty-template 2. 使用 配置模板页面位置 有多种方式: a.  直接使用root 目录 代码如下: location /{ root html; content_by_lua ' local template = require "resty.template" template.render("view.html",{ message ="Hello, World!"})

Centos7安装Openresty

通过yum安装 在 /etc/yum.repos.d/ 下新建 OpenResty.repo 内容 [openresty] name=Official OpenResty Repository baseurl=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/epel-$releasever-$basearch/ skip_if_unavailable=True gpgcheck=1 gpgkey=https:

mac下openresty安装

//openresty安装 http://openresty.org/ brew updatebrew install pcre openssl ./configure --prefix=/usr/local/openresty --with-cc-opt="-I/usr/local/opt/openssl/include/ -I/usr/local/opt/pcre/include/" --with-ld-opt="-L/usr/local/opt/openssl/lib/

OpenResty(nginx扩展)实现防cc攻击

OpenResty(nginx扩展)实现防cc攻击 导读 OpenResty 通过汇聚各种设计精良的 Nginx 模块(主要由 OpenResty 团队自主开发),从而将 Nginx 有效地变成一个强大的通用 Web 应用平台.这样,Web 开发人员和系统工程师可以使用 Lua 脚本语言调动 Nginx 支持的各种 C 以及 Lua 模块,快速构造出足以胜任 10K 乃至 1000K 以上单机并发连接的高性能 Web 应用系统 流程图 本文介绍使用openresty来实现防cc攻击的功能.ope

CentOS6.4 安装OpenResty和Redis 并在Nginx中利用lua简单读取Redis数据

1.下载OpenResty和Redis OpenResty下载地址:wget http://openresty.org/download/ngx_openresty-1.4.3.6.tar.gz Redis下载地址:wget http://download.redis.io/releases/redis-2.8.6.tar.gz 2.安装依赖包 yum install -y gcc gcc-c++ readline-devel pcre-devel openssl-devel tcl perl