openresty安装

官网:http://openresty.org/en/installation.html

先下载pcre-8.40,openssl-1.0.1u   //验证过此版本。其他版本有问题!!!!

./configure --with-luajit --with-openssl=../openssl-1.0.1u --with-pcre=../pcre-8.40
make
sudo make install

查看/usr/local/,如果已经有了openresty,则表明已经安装成功。

然后到
/usr/local/openresty/nginx/sbin下启动Nginx

默认80端口,访问ip

 

修改nginx.conf,注意要重启nginx!!!!

新增内容如下:

然后再访问 192.168.10.10/test

返回的结果是:

name: missing


至此说明,可以开启nginx+lua开发之旅了。。。。。。。






posted on 2017-04-18 14:59  丁小宝  阅读(108)  评论(0编辑  收藏  举报