随笔分类 -  nginx

摘要:比如对产品productId=143这个请求分发 现编写lua脚本 distrib_product.lua local uri_args = ngx.req.get_uri_args()local productId = uri_args["productId"]--获取链接地址 和 product 阅读全文
posted @ 2017-10-07 23:37 清渡茶叶 阅读(468) 评论(0) 推荐(0)
摘要:项目工程结构 hello hello.conf lua hello.lua lualib *.lua *.so 新建hello.conf server { listen 80; server_name _; location /lua { default_type 'text/html'; lua_ 阅读全文
posted @ 2017-10-05 16:53 清渡茶叶
摘要:新建目录 mkdir -p /usr/servers cd /usr/servers/ 安装必要的程序 yum install -y readline-devel pcre-devel openssl-devel gcc 下载openresty wget https://openresty.org/ 阅读全文
posted @ 2017-10-05 16:18 清渡茶叶