Openresty experience

Time:2021-9-25

summary

It is a high-performance web platform based on nginx and Lua. It integrates a large number of sophisticated Lua libraries, third-party modules and most dependencies. It is used to easily build dynamic web applications, web services and dynamic gateways that can handle high concurrency and high expansibility.

install

1. Add resource library


yum -y install yum-utils

yum-config-manager --add-repo https://openresty.org/yum/cn/centos/OpenResty.repo

2. List all packages


yum --disablerepo=”*” --enablerepo=”openresty” list available

3. Installation

yum install openresty

//Installing openresty using Yum may fail due to the lack of geoip library, so you need to run the following command first

yum install GeoIP-devel

//The installation of geoip library may fail because there is no extra Library in the warehouse, so you need to add the extra library first

yum install epel-release

4. Test


/usr/local/openresty/nginx/sbin/nginx -p /usr/local/openresty/nginx/

This work adoptsCC agreement, reprint must indicate the author and the link to this article

Recommended Today

Supervisor

Supervisor [note] Supervisor – H view supervisor command help Supervisorctl – H view supervisorctl command help Supervisorctl help view the action command of supervisorctl Supervisorctl help any action to view the use of this action 1. Introduction Supervisor is a process control system. Generally speaking, it can monitor your process. If the process exits abnormally, […]