openresty 开发入门
来源:互联网 发布:怎么跟淘宝客服讲价 编辑:程序博客网 时间:2024/06/04 04:03
文章目录
1、openresty 安装2、lua 测试程序3、nginx.conf 文件配置4、系统启动
1、openresty 安装
(1) 下载 openresty-1.9.15.1.tar.gz;(2) tar -xzvf openresty-1.9.15.1.tar.gz;(3) 进入 openresty-1.9.15.1;(4) ./configure --prefix=/opt/openresty/;(5) make && make install;
2、lua 程序
hello.lua 文件
ngx.say("hello world!")
3、nginx.conf 文件配置
在 server 中配置下面内容
location /lua { default_type 'text/html'; content_by_lua_file /srv/app/api-server-high/hello.lua; }
4、系统启动
/openresty 安装路径/nginx/sbin/nginx -c /openresty 安装路径/nginx/conf/nginx.conf
0 0
- openresty 开发入门
- openresty 前端开发入门一
- openresty 前端开发入门二
- OpenResty(nginx+lua) 开发入门
- OpenResty(Nginx+Lua)开发入门
- 第二章 OpenResty(Nginx+Lua)开发入门
- OpenResty入门
- OpenResty入门
- openresty 前端开发入门三之JSON篇
- openresty 前端开发入门四之Redis篇
- openresty 前端开发入门五之Mysql篇
- openresty 前端开发入门六之调试篇
- openresty 前端开发入门五之Mysql篇
- openResty入门-安装编
- openresty 前端开发序
- Openresty的开发闭环初探
- openresty
- OpenResty
- Profile-多环境配置
- 51单片机 软件模拟IIC
- 崇志宏 【转载】深度学习进阶规划(论文阅读顺序推荐)--东南大学
- 【day-14】二叉树-剑指offer难题合集
- RestTemplate 发送 get 请求使用误区 多值为null
- openresty 开发入门
- #Hello CSDN
- grep命令以及cut命令的使用
- 数据结构与算法分析 2.23 不用递归,写出快速求幂的程序
- eclipse在debug时候,可能鼠标放上去,有些变量不直接显示咋办?
- Scrum敏捷开发流程
- nginx的多阶段请求处理
- hdu1573 X问题(中国剩余定理 不互质)
- caffe运行mnist出现convert_mnist_data.bin: not found问题解决