openresty php luajit
来源:互联网 发布:单片机哪种好 编辑:程序博客网 时间:2024/04/19 13:43
http://www.cppblog.com/AutomateProgram/archive/2013/03/21/198685.html
yum install -y pcre-devel readline-devel openssl-devel
mkdir download
cd download
wget http://openresty.org/download/ngx_openresty-1.4.3.6.tar.gz
tar xvf ngx_openresty-1.4.3.6.tar.gz
cd ngx_openresty-1.4.3.6
./configure --with-luajit
gmake
gmake install
nano /usr/local/openresty/nginx/conf/nginx.conf
location /hello {
default_type 'text/plain';
content_by_lua 'ngx.say("hello, lua")';
}
/usr/local/openresty/nginx/sbin/nginx
/usr/local/openresty/nginx/sbin/nginx -s reload
===
git clone http://luajit.org/git/luajit-2.0.git
cd luajit-2.0
make
make install
===============
yum install -y php php-devel php-mysql
php-cgi -b 127.0.0.1:9000
nano www/index.php
==nginx==
server {
listen 80;
server_name myserver.com;
charset utf-8;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location ~ \.php$ {
root /root/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include fastcgi_params;
}
}
nohup php-cgi -b 127.0.0.1:9000 > /dev/null 2> /dev/null &
- openresty php luajit
- Openresty nginx使用 luaJIT 配置!
- nginx静态编译luajit (openresty)
- LuaJIT(OpenResty)调用iconv动态链接库转码
- OpenResty(5)--PHP
- openresty解析php
- luaJIT
- luajit
- php+memcache和openresty+memcache
- Lua5.3简单的C扩展示例以及与OpenResty(LuaJIT)的兼容编译
- openresty 应用打包并使用luajit编译lua代码实现简单加密
- openresty
- OpenResty
- openresty
- openresty
- openresty
- Building openresty1.7.10.1 with luajit on windows using Cygwin, 在windows下用Cygwin下编译带Luajit的openresty
- 通过编译luaSQL调用ODBC连接Access以及给OpenResty(LuaJIT)编写简单的C扩展示例
- TCP Keepalive 笔记
- SRM 599 DIV2 950
- Problem 56: 某种序列(大数加法+数列)
- Windows下Emacs+ Distel的配置
- pache 合理配置KeepAlive选项对服务器性能的影响
- openresty php luajit
- struts整合spring插件出现如下异常:Unable to load jar:struts2-spring-plugin-2.3.15.3.jar!/struts-plugin.xml
- 开发者的义不容辞
- 我们是幸福的
- hdu 1754 I Hate It (线段树)
- OpenCV: 高斯滤波
- Apidemo 学习 Regions RoundRects ScaleToFit
- Poj 1101 The Game(广搜,优先级:优先队列或者其他)
- 堆排序