115云盘资源分享你懂 |
您所在的位置:网站首页 › 115云盘资源出售5元 › 115云盘资源分享你懂 |
115云盘资源分享你懂 永久客服【芯:5828つ0650】█永久客服【芯:4058つ3626】█ 一、前期准备安装OpenResty。官网有详细的下载、安装文档 安装IDEA。同时以下安装插件 Lua nginx Support OpenResty Lua Support![]() 创建一个名为luademo1的Lua项目 创建conf、src目录,并添加nginx.conf、build.xml和helloworld.lua文件 ![]() nginx.conf文件 worker_processes 1; error_log logs/error.log info; events { worker_connections 1024; } http { default_type application/octet-stream; access_log logs/access.log; lua_package_path 'luademo1/?.lua;;'; server { listen 8080; server_name localhost; default_type text/html; location = /favicon.ico { log_not_found off; access_log off; } location /test { content_by_lua_file luademo1/helloworld.lua; } } }helloworld.lua文件 local hello = function () ngx.say("Hello world,Lua!") end hello()build.xml文件 run pic-server ######开发版本的ant配置##### 清理openresty目录${dist}下的conf,logs,janus,januslib |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |