OpenResty 项目模板,新项目能够 clone 下来修改html
项目地址:https://github.com/fengjx/ope...nginx
相关阅读git
$ make help Makefile cmd: deps: 安装依赖 start: 启动服务(前台进程) start: 启动服务(后台进程) start: 中止服务 start: 中止服务 help: Makefile帮助
# 下载项目模板 $ git clone https://github.com/fengjx/openresty-quick-start.git # 删除 git 文件 $ rm -rf .git # 修改项目名 $ mv openresty-quick-start my-project $ cd my-project # 安装依赖 $ make deps # 启动服务 $ make start-background server start for background # 访问测试 $ curl -i http://localhost:1024 HTTP/1.1 200 OK Date: Wed, 14 Oct 2020 13:14:59 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive Server: OpenResty ok # 中止服务 $ make quit server quit
├── Makefile - makefile 脚本 ├── README.md - 说明文档 ├── conf - nginx 配置 │ ├── common - 公共配置 │ └── servers - server 配置 ├── logs - 日志目录 ├── rockspec - 依赖管理 └── src - lua 源码目录 ├── app.lua └── core