【文件属性】:
文件名称:shorturl-nginx:另一个具有基于Nginx和Redis的分析功能的URL Shortener
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-09 11:52:30
Lua
shorturl-nginx
带有基于Nginx和Redis的分析功能的URL缩短器
设置
启动Redis实例
使用lua-nginx-module和set-misc-nginx-module构建您的nginx
将lua脚本conf / lua / n3r / urlshortener_eval.lua复制到您自己的nginx conf / lua / n3r /目录中,并在connect函数中更新redis配置
将html / shortening-ui.html复制到您自己的nginx html目录中
下载并将lib / resty / redis.lua复制到您自己的nginx conf / lua / resty /目录中
将以下配置添加到您的nginx.conf中,然后启动您的nginx
http块: lua_package_path
服务器块:位置a)shorten-u
【文件预览】:
shorturl-nginx-master
----README.md(2KB)
----conf()
--------lua()
--------nginx.conf(2KB)
----LICENSE(1KB)
----html()
--------shorten-ui.html(3KB)