openresty入门示例

openresty=LuaJit+nginxnginx

openresty本质上仍是nginx,只不过使用lua对其进行了扩展。浏览器

安装好openresty后,就能够在nginx上跑lua脚本了--ide

vi nginx.conf:lua

 

从新加载一下openresty:3d

浏览器访问:rest

将lua脚本写到脚本文件中:日志

查看错误日志:blog

cd nginx-->mkdir lua_script-->vi test.lua:ip

相关文章
相关标签/搜索