美文网首页
认识OpenResty与安装

认识OpenResty与安装

作者: 寓含 | 来源:发表于2020-04-13 15:37 被阅读0次

1、openResty是什么?

一种web服务器

2、openResty的目标是什么?

目标是让你的Web服务直接跑在 Nginx 服务内部,充分利用 Nginx 的非阻塞 I/O 模型,不仅仅对 HTTP 客户端请求,甚至于对远程后端诸如 MySQL、PostgreSQL、Memcached 以及 Redis 等都进行一致的高性能响应。

3、mac openResty的安装:

(1)brew tap openresty/brew

(2)brew install openresty

官方文档:https://openresty.org/en/installation.html

4、openResty的启动和停止:

启动:openresty -p `pwd` -c conf/nginx.conf 

停止:openresty -s quit -p `pwd` -c conf/nginx.conf

相关文章

网友评论

      本文标题:认识OpenResty与安装

      本文链接:https://www.haomeiwen.com/subject/zddvmhtx.html