OpenResty通过汇聚各种设计精良的Nginx模块(例如Nginx C Module),从而将Nginx有效变成一个强大的通用Web应用平台。这样Web开发人员和工程师可以使用Lua语言调动Nginx支持各种C以及Lua模块,快速构造出足以胜任10k乃至1000k以上单机并发连接的高性能web应用程序
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:06:38 ago on Sun 17 Jul 2022 11:33:29 AM EDT. Module yaml error: Unexpected key in data: static_context [line 9 col 3] Module yaml error: Unexpected key in data: static_context [line 9 col 3] ===================================================================================================== Name & Summary Matched: openresty ===================================================================================================== openresty-1.17.8.1-1.el8.x86_64 : OpenResty, scalable web platform by extending NGINX with Lua openresty-1.17.8.2-1.el8.x86_64 : OpenResty, scalable web platform by extending NGINX with Lua openresty-1.19.3.1-1.el8.x86_64 : OpenResty, scalable web platform by extending NGINX with Lua openresty-1.19.3.2-1.el8.x86_64 : OpenResty, scalable web platform by extending NGINX with Lua openresty-1.19.9.1-1.el8.x86_64 : OpenResty, scalable web platform by extending NGINX with Lua openresty-1.21.4.1-1.el8.x86_64 : OpenResty, scalable web platform by extending NGINX with Lua openresty-asan-1.17.8.1-1.el8.x86_64 : The clang AddressSanitizer (ASAN) version of OpenResty openresty-asan-1.17.8.2-1.el8.x86_64 : The clang AddressSanitizer (ASAN) version of OpenResty openresty-asan-1.19.3.1-1.el8.x86_64 : The clang AddressSanitizer (ASAN) version of OpenResty openresty-asan-1.19.3.1-5.el8.x86_64 : The AddressSanitizer (ASAN) version of OpenResty openresty-asan-1.19.3.2-1.el8.x86_64 : The AddressSanitizer (ASAN) version of OpenResty openresty-asan-1.19.9.1-1.el8.x86_64 : The AddressSanitizer (ASAN) version of OpenResty openresty-asan-1.21.4.1-1.el8.x86_64 : The AddressSanitizer (ASAN) version of OpenResty openresty-asan-debuginfo-1.17.8.1-1.el8.x86_64 : Debug information for package openresty-asan ... [root@localhost ~]# dnf -y install openresty # 直接通过dnf软件包管理工具进行安装 Updating Subscription Management repositories. Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:08:02 ago on Sun 17 Jul 2022 11:33:29 AM EDT. Module yaml error: Unexpected key in data: static_context [line 9 col 3] Module yaml error: Unexpected key in data: static_context [line 9 col 3] Dependencies resolved. ============================================================================================================================================================================================================================================= Package Architecture Version Repository Size ============================================================================================================================================================================================================================================= Installing: openresty x86_64 1.21.4.1-1.el8 openresty 1.1 M Installing dependencies: openresty-openssl111 x86_64 1.1.1n-1.el8 openresty 1.6 M openresty-pcre x86_64 8.45-1.el8 openresty 167 k openresty-zlib x86_64 1.2.12-1.el8 openresty 59 k
[root@localhost conf]# systemctl enable --now openresty # 启动并设置开机启动 Created symlink /etc/systemd/system/multi-user.target.wants/openresty.service → /usr/lib/systemd/system/openresty.service. [root@localhost conf]# curl localhost # 访问测试 <!DOCTYPE html> <html> <head> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> <title>Welcome to OpenResty!</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>Welcome to OpenResty!</h1> <p>If you see this page, the OpenResty web platform is successfully installed and working. Further configuration is required.</p>
<p>For online documentation and support please refer to our <a href="https://openresty.org/">openresty.org</a> site<br/> Commercial support is available at <a href="https://openresty.com/">openresty.com</a>.</p> <p>We have articles on troubleshooting issues like <a href="https://blog.openresty.com/en/lua-cpu-flame-graph/?src=wb">high CPU usage</a> and <a href="https://blog.openresty.com/en/how-or-alloc-mem/">large memory usage</a> on <a href="https://blog.openresty.com/">our official blog site</a>. <p><em>Thank you for flying <a href="https://openresty.org/">OpenResty</a>.</em></p> </body> </html> [root@localhost conf]#