{"id":13462572,"url":"https://github.com/Tinywan/lua-nginx-redis","last_synced_at":"2025-03-25T02:30:49.771Z","repository":{"id":43612138,"uuid":"82779531","full_name":"Tinywan/lua-nginx-redis","owner":"Tinywan","description":":hibiscus: Redis、Lua、Nginx、OpenResty 笔记和资料","archived":false,"fork":false,"pushed_at":"2021-10-26T07:27:38.000Z","size":11684,"stargazers_count":1097,"open_issues_count":1,"forks_count":377,"subscribers_count":59,"default_branch":"master","last_synced_at":"2025-03-20T12:11:59.722Z","etag":null,"topics":["docker","hls","lua","luajit","nginx","nginx-docker","nginx-lua","nginx-module","nginx-rtmp","openresty","openresty-module","redis","redis-lua","redis-server","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tinywan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-22T08:25:42.000Z","updated_at":"2025-03-18T13:39:21.000Z","dependencies_parsed_at":"2022-08-27T10:41:30.169Z","dependency_job_id":null,"html_url":"https://github.com/Tinywan/lua-nginx-redis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinywan%2Flua-nginx-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinywan%2Flua-nginx-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinywan%2Flua-nginx-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinywan%2Flua-nginx-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tinywan","download_url":"https://codeload.github.com/Tinywan/lua-nginx-redis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245385278,"owners_count":20606642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","hls","lua","luajit","nginx","nginx-docker","nginx-lua","nginx-module","nginx-rtmp","openresty","openresty-module","redis","redis-lua","redis-server","shell-script"],"created_at":"2024-07-31T12:00:52.380Z","updated_at":"2025-03-25T02:30:49.765Z","avatar_url":"https://github.com/Tinywan.png","language":"Lua","readme":"[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)\r\n\r\nNginx与Lua编写脚本的基本构建块是指令执行顺序的图\r\n\r\n![Nginx编译安装](Images/Nginx-Phase.png)\r\n\r\n## Nginx 教程   \r\n\r\n#### 基础  \r\n* [Nginx编译安装](/Nginx/nginx-install.md)\r\n* [Nginx.conf详解](/Nginx/nginx-base-config.md)  \r\n* [Location 详解](/docs/Nginx/location-detail.md)  \r\n* [Nginx基础知识](/Nginx/nginx-basic.md)  \r\n* [Nginx高性能WEB服务器详解](/Nginx/nginx-high-basic.md)   \r\n* [Nginx高并发系统内核优化和PHP7配置文件优化](/Nginx/nginx-parameter-config.md)   \r\n* [Nginx和PHP-FPM启动脚本](/Nginx/nginx-start-script.md)  \r\n* [Nginx的11个Phases](/Nginx/nginx-phases.md)  \r\n* [agentzh 的 Nginx 教程](https://openresty.org/download/agentzh-nginx-tutorials-zhcn.html)  \r\n* [Nginx 陷阱和常见错误](h/Nginx/nginx-1-config.md)  \r\n* [TCP和UDP负载平衡官方参考文档](https://www.cnblogs.com/tinywan/p/6586053.html)  \r\n* [Nginx 高并发系统内核优化](/Nginx/nginx-parameter-config.md)  \r\n* [nginx 并发数问题思考：worker_connections,worker_processes与 max clients](http://liuqunying.blog.51cto.com/3984207/1420556?utm_source=tuicool)\r\n* [如何在工作中提高Ngixn服务器性能?达到高效](https://juejin.im/post/5adb45e96fb9a07ab773c767?utm_source=gold_browser_extension)   \r\n* [并发 = 同步/异步/阻塞/非阻塞/进程/线程](https://juejin.im/post/5bc69ecee51d45395d4f4072)  \r\n* [The Complete NGINX Cookbook](docs/Complete-NGINX-Cookbook-2019.pdf)\r\n* [如何改进 NGINX 配置文件节省带宽？](/Nginx/nginx-config-bandwidth.md)\r\n* [Nginx官方文档中文版](https://www.bookstack.cn/read/nginx-official-doc)\r\n* [一个能够快速验证 Nginx 配置的在线演示工具](https://nginx-playground.wizardzines.com/)\r\n\r\n#### 案例   \r\n* [Nginx 同一个IP上配置多个HTTPS主机](/Nginx/more-domain-config.md)  \r\n* [Nginx 如何配置一个安全的HTTPS网站服务器](http://www.cnblogs.com/tinywan/p/7542629.html)  \r\n* [Nginx 配置启用 HTTP/2](http://www.cnblogs.com/tinywan/p/7860774.html)  \r\n* [申请Let's Encrypt通配符HTTPS证书](https://www.cnblogs.com/tinywan/p/8573169.html)   \r\n* [如何配置proxy_cache模块](/Nginx/Nginx-Web/Nginx-8-proxy_cache.md)  \r\n* [负载均衡五个配置实例](/Nginx/Nginx-Web/Nginx-7-Proxy.md)  \r\n\r\n####  模块   \r\n* [nginx-vod-module](http://www.cnblogs.com/tinywan/p/7879559.html)    \r\n* [nginx-module-vts](http://www.cnblogs.com/tinywan/p/7872366.html)    \r\n* [ngx_cache_purge](/Nginx/Nginx-Web/Nginx-8-proxy_cache.md)    \r\n* [lua-nginx-module](http://www.cnblogs.com/tinywan/p/6538006.html)    \r\n* [nginx-rtmp-module](http://www.cnblogs.com/tinywan/p/6639360.html)    \r\n* [ngx_http_proxy_module和ngx_http_upstream_module](/Nginx/Nginx-Web/ngx_http_upstream_module.md)  \r\n\r\n####  好文  \r\n* [Nginx入门到实战（1）基础篇](https://segmentfault.com/a/1190000014893012)  \r\n* [Nginx入门到实战（2) 场景实现篇](https://mp.weixin.qq.com/s/RDIhU2pd37ecmKjgCtiZGQ)   \r\n* [nginx从入门到实践](http://fanqieto.top/2017/11/29/nginx%E4%BB%8E%E5%85%A5%E9%97%A8%E5%88%B0%E5%AE%9E%E8%B7%B5/)  \r\n* [Nginx中文文档](http://www.nginx.cn/doc/)  \r\n* [Nginx开发从入门到精通](http://tengine.taobao.org/book/)  \r\n* [关于一些对location认识的误区](http://www.cnblogs.com/lidabo/p/4169396.html)  \r\n* [location总结及rewrite规则写法](https://segmentfault.com/a/1190000002797606)  \r\n* [How to Compile Nginx From Source on Ubuntu 16.04](https://www.vultr.com/docs/how-to-compile-nginx-from-source-on-ubuntu-16-04)  \r\n* [详解：Nginx 反向代理、后端检测模块](https://mp.weixin.qq.com/s/wGOQkAPif3buhezOQhbx5A) \r\n* [Nginx的负载均衡 - 加权轮询 (Weighted Round Robin)](https://blog.csdn.net/zhangskd/article/details/50194069)\r\n\r\n####  流媒体   \r\n* [Setup Nginx on Ubuntu to Stream Live HLS Video](https://www.vultr.com/docs/setup-nginx-on-ubuntu-to-stream-live-hls-video)  \r\n* [Setup Nginx-RTMP on Ubuntu 14.04](https://www.vultr.com/docs/setup-nginx-rtmp-on-ubuntu-14-04)  \r\n* [利用nginx搭建RTMP视频点播、直播、HLS服务器](https://blog.csdn.net/kingroc/article/details/50839994)  \r\n* [实时流（直播流）播放、上墙（大屏播放）解决方案](https://www.cnblogs.com/xiaozhi_5638/p/8664841.html)  \r\n* [Nginx配置Rtmp支持Hls的直播和点播功能](/Nginx-Rtmp/HLS-live-vod.md)  \r\n* [HLS视频直播和点播的Nginx的Location的配置信息(成功)](/Nginx-Rtmp/HLS-live-vod-locatiuon-config.md)   \r\n\r\n#### 其他   \r\n* [Nginx和PHP-FPM的开机自动启动脚本](/PHP/PHP-FPM/config.md)  \r\n* [php-fpm/www.conf 的配置 ](/PHP/PHP-FPM/config.md)   \r\n* [深入剖析 Web 服务器与 PHP 应用的通信机制 - 掌握 CGI 和 FastCGI 协议的运行原理](https://mp.weixin.qq.com/s/6Kyfvc_N7PhBtFPstgt3MA)  \r\n* [PHP-FPM 与 Nginx 的通信机制总结](https://segmentfault.com/a/1190000018464303)  \r\n\r\n## Lua 教程    \r\n* [Lua 基础语法](/Lua-Script/lua-basic.md)  \r\n* [luajit 执行文件默认安装路径](#Nginx_base_knowledge)   \r\n* [lua中self_indes详解](/Lua-Script/oop/self__index.md)   \r\n\r\n## Redis 教程     \r\n* [Redis 安装](/Redis/redis-install.md)   \r\n* [Redis 配置详解](/Redis/redis-config.md)   \r\n* [Redis 基础知识](#Redis_base_knowledge)   \r\n* [Redis 开发与运维](#Redis-DevOps)  \r\n* [Redis 执行Lua脚本基本用法](/Redis/redis-lua.md)    \r\n* [Redis 漏洞如何防止被黑客攻击](/Redis/redis-safety.md)   \r\n* [如何在Ubuntu 16.04上安装和配置Redis](https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04)  \r\n* [Redis协议规范（译文）](http://www.hchstudio.cn/article/2018/e687/)  \r\n* [负载均衡中使用Redis实现共享Session](https://segmentfault.com/a/1190000011558000)  \r\n* [Redis 设计与实现](https://github.com/huangz1990/redis-3.0-annotated)  \r\n* [为什么分布式一定要有Redis？](https://mp.weixin.qq.com/s/8uii1BzfVfChbH_t5Gk_8Q)  \r\n* [使用Lua脚本实现分布式锁](https://www.cnblogs.com/tinywan/p/9643022.html)  \r\n* [PHP 脚本执行一个Redis 订阅功能，用于监听键过期事件，返回一个回调，API接受改事件](/Redis-PHP/Php-Run-Redis-psubscribe/nohupRedisNotify.php)   \r\n* [阿里云Redis开发规范](https://yq.aliyun.com/articles/531067)   \r\n* [高可用Redis服务架构分析与搭建](https://mp.weixin.qq.com/s/DA4uhPULaXI-KDKwvLzb8Q)  \r\n* [如何轻松搭建电商秒杀系统](https://yq.aliyun.com/articles/277885)  \r\n* [如何在Ubuntu 16.04上安装和配置Redis（推荐）](https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04)  \r\n* [Codis集群演化与Redis异步迁移](/Redis/Codis集群演化与Redis异步迁移.pdf)  \r\n* [如何利用Redisson分布式化传统Web项目](/Redis/如何利用Redisson分布式化传统Web项目.pdf)  \r\n* [redis设计与实现(第二版).pdf](/Redis/redis设计与实现(第二版).pdf)  \r\n* [深入剖析 Redis5.0 全新数据结构 Streams（消息队列的新选择）](http://www.vlambda.com/wz_wNrPVgCQ43.html)  \r\n* [Redis5 配置及优化总结](/Redis/redis5-config.md)  \r\n\r\n##  Openresty 教程  \r\n\r\n* [安装默认配置信息](/Openresty/openresty-basic.md)   \r\n* [OpenResty 最佳实践](https://moonbingbing.gitbooks.io/openresty-best-practices/content/index.html)  \r\n* [如何编译一个高性能 OpenResty](https://yq.aliyun.com/articles/228399) \r\n* [ngx_lua APi 方法和常量](/Openresty/openresty-api.md)   \r\n* [ngx_lua 扩展模块学习](/Openresty/openresty-resty-module.md)   \r\n* [lua-resty-upstream-healthcheck使用](/Openresty/lua-resty-upstream-healthcheck.md)   \r\n* [Openresty与Nginx_RTMP](/Openresty/openresty-rtmp.md)   \r\n* [自己写的一个简单项目lua_project_v0.01](https://github.com/Tinywan/lua_project_v0.01)   \r\n* [如何在openresty里解析域名](http://www.jkeabc.com/181587.html)  \r\n* [谈谈基于 OpenResty 的接口网关设计](https://www.zybuluo.com/yishuailuo/note/844059)  \r\n* [跟我学OpenResty(Nginx+Lua)开发](http://jinnianshilongnian.iteye.com/blog/2190344)  \r\n* [openresty 专栏](https://blog.csdn.net/qq362228416/article/category/6558114)  \r\n* [openresty 视频](http://i.youku.com/i/UMTM2NTgyMDEyMA==/videos?q=openresty)  \r\n* [模仿京东使用Openresty+Redis做读服务](https://my.oschina.net/zjzhai/blog/759719)  \r\n* [Openresty-Lua动态修改upstream后端服务](Nginx/Nginx-Web/openresty-nginx-lua-Proxy.md)  \r\n* [Openresty编程.pdf](/Openresty/Openresty编程.pdf)\r\n\r\n## Linux 教程   \r\n\r\n* [命令篇](http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html)   \r\n* [实战篇](http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-part-two.html)   \r\n* [定时器教程](http://www.ruanyifeng.com/blog/2018/03/systemd-timer.html)   \r\n* [linux 进程间通信之管道](https://juejin.im/post/5bc735d85188255c57216d7e)  \r\n* [鸟哥的Linux私房菜服务器架设篇(第三版).pdf](Linux/鸟哥的Linux私房菜服务器架设篇(第三版).pdf)\r\n* [鸟哥的Linux私房菜-基础学习篇(第四版).pdf](Linux/鸟哥的Linux私房菜-基础学习篇(第四版).pdf)\r\n\r\n## Shell 教程    \r\n* [编写快速安全Bash脚本的建议](https://www.oschina.net/translate/bash-scripting-quirks-safety-tips)  \r\n* [写好shell脚本的13个技巧](https://mp.weixin.qq.com/s/f3xDHZ7dCQr7sHJ9KDvuyQ)  \r\n* [shell脚本实现分日志级别记录日志](/Nginx-Rtmp/Shell_Log.sh)   \r\n* [Nginx日志定时备份和删除](/Nginx-Rtmp/Shell_Nginx_Log_cut.sh)   \r\n* [SHELL脚本小技巧](/Nginx-Rtmp/Shell_script.md)   \r\n* [Mysql 自动备份脚本安全加锁机制](/Nginx-Rtmp/backup_mysql.sh)   \r\n* [PHP和Shell 脚本如何很好的搭配](/PHP/php-shell_run.md)  \r\n* [通过FTP备份MySQL数据库](/Shell/Backup-MySQL-FTP.md)  \r\n\r\n## 微信公众号\r\n\r\n![Nginx编译安装](Images/tinywan-wechat.jpg)","funding_links":[],"categories":["Uncategorized","Lua","Lua (24)"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTinywan%2Flua-nginx-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTinywan%2Flua-nginx-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTinywan%2Flua-nginx-redis/lists"}