
openresty
文章平均质量分 56
荆茗Scaler
这个作者很懒,什么都没留下…
展开
-
nginx-openresty-lua使用
以下配置均在nginx.conf中配置1. localtion下直接写lua脚本:content_by_lualocation /lua { default_type text/html; #响应内容为html解析 content_by_lua 'ngx.say("<br>hello world ! welcome to openresty!</br>")'; # content_by_lua:调用lua脚本 }2. 调用lua脚本文原创 2022-03-29 18:34:02 · 5545 阅读 · 0 评论 -
nginx-openresty-安装
1. 下载openresty安装包weget https://openresty.org/package/centos/openresty.repo2. 移动openresty.repo到新的文件夹sudo mv /root/openresty.repo /etc/yum.repos.d/3. 检查可更新的程序sudo yum check-upadte4. 安装openrestyyum install -y openresty5. 启动openrestysystemctl原创 2022-03-29 15:21:52 · 4210 阅读 · 0 评论