OpenResty® 是一個基於 Nginx 與 Lua 的高性能 Web 平臺,其內部集成了大量精良的 Lua 庫、第三方模塊以及大多數的依賴項。用於方便地搭建能夠處理超高併發、擴展性極高的動態 Web 應用、Web 服務和動態網關。
在遊戲服務器裏,OpenResty一般擔任網關的角色,但是我想用OpenResty 來作爲http服務器,以應付sdk登錄、sdk支付。
下面是我整理的OpenResty教程。
1.OpenResty 簡介
https://www.thisisgame.com.cn/openresty/openresty-tutorial.html
2.OpenResty Ubuntu18.04 安裝教程
https://www.thisisgame.com.cn/openresty/ubuntu18-0-4-install-openresty.html
3.OpenResty 第一個例子 helloworld
https://www.thisisgame.com.cn/openresty/openresty-hello-world.html
4.OpenResty 目錄結構
https://www.thisisgame.com.cn/openresty/openresty-directory-structure.html
5.OpenResty 啓動和關閉
https://www.thisisgame.com.cn/openresty/openresty-start-and-close.html
6.OpenResty 熱重啓
https://www.thisisgame.com.cn/openresty/openresty-reload.html
7.OpenResty 執行lua代碼
https://www.thisisgame.com.cn/openresty/openresty-execute-lua.html
8.OpenResty 執行lua文件
https://www.thisisgame.com.cn/openresty/openresty-execute-lua-file.html
9.OpenResty 網站服務
https://www.thisisgame.com.cn/openresty/openresty-simple-web.html
10.OpenResty 訪問指定網頁
https://www.thisisgame.com.cn/openresty/openresty-web-target-html.html
11.OpenResty 多網頁網站服務
https://www.thisisgame.com.cn/openresty/openresty-web-service-multi-html-page.html
12.OpenResty 日誌
https://www.thisisgame.com.cn/openresty/openresty-error-log.html
13.OpenResty 請求處理階段劃分(流水線)
https://www.thisisgame.com.cn/openresty/openresty-http-request-flow-line.html
14.OpenResty ip黑名單功能
https://www.thisisgame.com.cn/openresty/openresty-ip-blacklist.html
15.OpenResty 反向代理
https://www.thisisgame.com.cn/openresty/openresty-proxy_pass.html
16.OpenResty 負載均衡與容災
https://www.thisisgame.com.cn/openresty/openresty-load-balancing-and-disaster-recovery.html