惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
LangChain Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
GbyAI
GbyAI
Vercel News
Vercel News
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
Jina AI
Jina AI
B
Blog
Recorded Future
Recorded Future
MyScale Blog
MyScale Blog
I
InfoQ
aimingoo的专栏
aimingoo的专栏
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
爱范儿
爱范儿
Last Week in AI
Last Week in AI
博客园 - 三生石上(FineUI控件)
博客园 - Franky
Schneier on Security
Schneier on Security
V
V2EX
TaoSecurity Blog
TaoSecurity Blog
H
Hacker News: Front Page
Cloudbric
Cloudbric
D
DataBreaches.Net
B
Blog RSS Feed
P
Palo Alto Networks Blog
云风的 BLOG
云风的 BLOG
NISL@THU
NISL@THU
I
Intezer
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyberwarzone
Cyberwarzone
F
Fortinet All Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
K
Kaspersky official blog
Forbes - Security
Forbes - Security

博客园 - 大侠(cer)

阿里巴巴又抄袭创业公司产品,这次已被告上法庭(一) 手机app传统邀请码安装与免邀请码安装区别,如何选择呢? 好用的一些开源系统 一个搞笑的招聘启事 java和android及IOS对接RSA加密经验 mysql大数据表改表结构方案 android开发中监控android软件网络请求的软件Charles使用入门 android IOC框架学习记录 java分布式事务 android开发时使用游标时一定要关闭 今天发现ConcurrentHashMap的key是不区分大小写的 js方法isNaN使用时注意,“1.”这样子的东西他也会认为是数字 使用nginx+lua实现web项目的灰度发布 两台机器使用rsync同步数据(手工执行命令同步)(使用推的方式) 用户中心 - 博客园 ubuntu服务器配制jmagick环境 windows中架设基于Apache的svn服务器 amoeba学习 CentOS安装thrift
nginx增加lua支持
大侠(cer) · 2012-09-24 · via 博客园 - 大侠(cer)

1.下载nginx

wget http://nginx.org/download/nginx-1.2.2.tar.gz

2.安装gcc

sudo apt-get install gcc

3.下载LuaJIT

wget http://luajit.org/download/LuaJIT-2.0.0-beta10.tar.gz

4. 安装LuaJIT

tar -xzvf  LuaJIT-2.0.0-beta10.tar.gz

cd LuaJIT-2.0.0-beta10 

make && sudo make install

5.下载 ngx_devel_kit(在这个页面找:https://github.com/simpl/ngx_devel_kit/tags)

wget https://github.com/simpl/ngx_devel_kit/tarball/master -O simpl-ngx_devel_kit.tar.gz 

6.下载最新的 lua-nginx-module(在这个页面找:https://github.com/chaoslawful/lua-nginx-module/tags)

 wget https://github.com/chaoslawful/lua-nginx-module/tarball/master -O lua-nginx-module.tar.gz 

7.下载pcre

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.31.tar.gz 

tar -xzvf pcre-8.31.tar.gz

 

 ./configure && make(如果报“compile: unrecognized option `-DHAVE_CONFIG_H'”,请安装sudo apt-get install build-essential)

sudo make install

8.下载echo模块

wget https://github.com/agentzh/echo-nginx-module/tarball/master -O echo-nginx-module.tar.gz 

 tar -xzvf echo-nginx-module.tar.gz 

7. 解压nginx,ngx_devel_kit, lua-nginx-module

tar -xzvf nginx-1.2.2.tar.gz

tar -xzvf simpl-ngx_devel_kit.tar.gz 

 tar -xzvf lua-nginx-module.tar.gz

8.安装 

sudo apt-get install openssl libssl-dev 

sudo apt-get install libtool 

cd  nginx-1.2.2

export LUAJIT_LIB=/usr/local/lib/

export LUAJIT_INC=/usr/local/include/luajit-2.0

./configure --user=www-data --group=www-data --with-debug --with-http_gzip_static_module --with-http_ssl_module  --with-http_stub_status_module --with-http_realip_module \

--prefix=/usr/local/nginx \

    --add-module=../simpl-ngx_devel_kit-4192ba6/ \

  --add-module=../chaoslawful-lua-nginx-module-b771a2e/\

    --add-module=../agentzh-echo-nginx-module-8042c62/

make -j2

sudo make install