认识OpenResty与安装

2020-04-13  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读