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.
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
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
/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