随笔分类 -  NGINX

摘要:已经更新到官方文档:http://wiki.nginx.org/HttpLuaModule#ngx.location.capture语法:res = ngx.location.capture(uri, options?)环境: rewrite_by_lua*, access_by_lua*, content_by_lua*是一个同步非阻塞的NGINX子请求uriNGINX的子请求提供了一个非常强大的方式去实现非阻塞的内部请求,或者其他的C模块,比如ngx_proxy, ngx_fastcgi, ngx_memc, ngx_postgres, ngx_drizzle, 甚至ngx_lua自己等等 阅读全文
posted @ 2013-03-06 21:06 李秋 阅读(6603) 评论(0) 推荐(0)
摘要:以前一直介绍NGINX 和 PHP安装,今天安装NGINX+LUA,开始感觉挺难的,其实很容易!~1、安装各种包# sudo apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl2、去下载春哥的openresty,下载地址:http://agentzh.org/misc/nginx/ngx_openresty-1.2.6.1.tar.gz3、安装./configure --prefix=/opt/openresty \ --with-luajit \ ... 阅读全文
posted @ 2013-02-01 14:53 李秋 阅读(661) 评论(0) 推荐(0)
摘要:Create a folder for your VIM syntax files.>mkdir -p ~/.vim/syntax/Download the syntax highlighting plugin.>curl http://www.vim.org/scripts/download_script.php?src_id=14376 -o ~/.vim/syntax/nginx.vimAdd it to VIM’s file type definitions. Make sure to adjust the path to your Nginx installation i 阅读全文
posted @ 2012-12-24 12:51 李秋 阅读(711) 评论(0) 推荐(0)
摘要:推荐春哥的入门教程——Nginx 教程。链接:http://agentzh.org/misc/nginx/agentzh-nginx-tutorials-zhcn.html#01-NginxVariables04 阅读全文
posted @ 2012-11-21 22:57 李秋 阅读(420) 评论(0) 推荐(0)
摘要:NGINX-LUA 安装drizzle-0.8安装libdrizzle去页面:https://launchpad.net/libdrizzlewgethttps://launchpad.net/ubuntu/raring/+source/libdrizzle/0.8-1/+files/libdrizzle_0.8.orig.tar.gz./configuremakemake install安装oprestywget 'http://agentzh.org/misc/nginx/ngx_openresty-1.2.3.8.tar.gz'解压./configure --with-h 阅读全文
posted @ 2012-11-06 18:28 李秋 阅读(518) 评论(0) 推荐(0)
摘要:++++++++++++++++++++++++++++++++++++++++++++++linux下nginx+php+mysql环境搭建++++++++++++++++++++++++++++++++++++++++++++++操作系统 : [CentOS6.0]服务器 : [nginx-1.1.8]PHP : [php-5.2.6]数据库 : [mysql-5.1.59]PS : 经过两天的奋斗终于配置上了这套系统++++++++++++++++++++++++++++++++++++++++++++++wget 'http://ngi... 阅读全文
posted @ 2012-10-16 16:30 李秋 阅读(3188) 评论(1) 推荐(0)
摘要:第一步,安装Ubuntu nginx由于Ubuntu 904已经包含了nginx,所以根本不要编译,安装超简单!修改/etc/apt/sources.list文件内容为国内镜像,然后运行:apt-get updateapt-get install nginx即可完成安装启动Ubuntu nginx:/etc/init.d/nginx start然后就可以访问了,http://localhost/ , 一切正常!如果不能访问,先不要继续,看看是什么原因,解决之后再继续。下面配置php第二步,安装Php安装php:apt-get install php5-cli php5-cgi mysql-se 阅读全文
posted @ 2012-10-09 15:05 李秋 阅读(568) 评论(0) 推荐(0)