openresty php luajit
2013-12-06 20:56
495 查看
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 &
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 + luajit
- Building openresty1.7.10.1 with luajit on windows using Cygwin, 在windows下用Cygwin下编译带Luajit的openresty
- Openresty/Lua + Thrift + HBase
- 安装Nginx+Lua+OpenResty开发环境配置全过程实例
- 安装Nginx+Lua+OpenResty开发环境配置全过程实例
- lua + openresty web API 框架
- openresty+lua在反向代理服务中的玩法 | WooYun知识库
- openresty + lua-resty-weedfs + weedfs + graphicsmagick动态生成缩略图(类似淘宝方案)
- 编译安装openresty+mysql+php7
- Nginx+Lua+OpenResty安装
- openresty lua zlib整合安装 让lua支持解压服务端压缩过的数据
- 编译安装openresty+mysql+php7
- 安装Nginx+Lua+OpenResty开发环境配置全过程实例
- 练手项目:用openresty + lua + jqurey 制作一个随机发牌网页
- openresty lua zlib整合安装 让lua支持解压服务端压缩过的数据
- LNMP架构,phpf服务器和memcached缓存配置,openresty+memcached实现缓存
- 搭建阿里云服务器环境(OpenResty+PHP 7+MySQL5.7)
- openresty luarocks 安装以及openssl 问题处理
- OpenResty+lua的方案
- mysql+php+mem+openresty