https://github.com/yizhezhang-ervin/backend_lua
Lua + OpenResty + Twemproxy
https://github.com/yizhezhang-ervin/backend_lua
lua openresty openresty-lua twemproxy
Last synced: 4 months ago
JSON representation
Lua + OpenResty + Twemproxy
- Host: GitHub
- URL: https://github.com/yizhezhang-ervin/backend_lua
- Owner: YizheZhang-Ervin
- License: mit
- Created: 2021-09-11T15:04:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T08:42:38.000Z (over 1 year ago)
- Last Synced: 2025-01-06T04:40:57.972Z (5 months ago)
- Topics: lua, openresty, openresty-lua, twemproxy
- Language: Lua
- Homepage:
- Size: 2.9 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BackEnd_Lua
## 1 Lua-Basic
```
# 安装(方法1)
tar zxf lua-5.4.6.tar.gz
cd lua-5.4.6
make linux test
make install# 安装(方法2)
apt install lua5.4# 数据类型
nil,boolean,number,string,function,userdata,thread,table# 运行
lua xx.lua
```## 2 Open-Resty
```
# 特点:
负载均衡、单机闭环、分布式闭环、插入网关# 安装
yum install readline-devel pcre-devel openssl-devel perl gcc
wget https://openresty.org/download/openresty-1.21.4.1.tar.gz
tar -xzvf openresty-1.21.4.1.tar.gz
./configure
make && make install
```## 3 实战 Example-Shopping
```
Twemproxy + redis:redis代理proxy,统一管理redis和memcached
lua-resty-template:模板渲染
```