stallion5632 / openresty-demo

Demo包含: Mongodb和MySQL的读写; 聊天业务 - websocket; 轮训服务器的vmstat数据 – http; 文件上传; TcpServer – 需通过客户端连接

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

describe

  • 使用openresty的demo,包括tcpserver、httpserver和websocket server
curl localhost:8000/a

<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>openresty/1.13.6.1</center>
</body>
</html>

curl localhost:8000/?"hello"="world"
hello :{"hello":"world"}

curl localhost:8000/mongo?"hello"="world"
mongo :{"hello":"world"}

dependence

源码介绍

struct

About

Demo包含: Mongodb和MySQL的读写; 聊天业务 - websocket; 轮训服务器的vmstat数据 – http; 文件上传; TcpServer – 需通过客户端连接


Languages

Language:JavaScript 85.3%Language:Lua 13.6%Language:HTML 1.1%Language:CSS 0.0%Language:Shell 0.0%