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