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
![](https://images2015.cnblogs.com/blog/1142031/201704/1142031-20170418150443556-452657071.png)
修改nginx.conf,注意要重启nginx!!!!
新增内容如下:
然后再访问 192.168.10.10/test
返回的结果是:
name: missing
至此说明,可以开启nginx+lua开发之旅了。。。。。。。