yum install openresty
sudo yum install yum-utils -y sudo yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo sudo yum install openresty -y
This, openresty is now installed
If you want to install the debugging tools openresty
Can sudo yum install openresty-resty
Use the following command to view the installation which openresty formation
[root@localhost ~]# rpm -qa openresty* openresty-openssl-1.1.0k-3.el7.x86_64 openresty-1.15.8.2-6.el7.x86_64 openresty-zlib-1.2.11-3.el7.centos.x86_64 openresty-pcre-8.43-1.el7.x86_64
Use the following command to see what path to install openresty
[root@localhost ~]# rpm -ql openresty-1.15.8.2 /usr/bin/openresty /usr/lib/systemd/system/openresty.service /usr/local/openresty/COPYRIGHT /usr/local/openresty/bin/openresty /usr/local/openresty/luajit/bin /usr/local/openresty/luajit/bin/luajit /usr/local/openresty/luajit/bin/luajit-2.1.0-beta3 /usr/local/openresty/luajit/include /usr/local/openresty/luajit/include/luajit-2.1 /usr/local/openresty/luajit/include/luajit-2.1/lauxlib.h /usr/local/openresty/luajit/include/luajit-2.1/lua.h /usr/local/openresty/luajit/include/luajit-2.1/lua.hpp /usr/local/openresty/luajit/include/luajit-2.1/luaconf.h /usr/local/openresty/luajit/include/luajit-2.1/luajit.h /usr/local/openresty/luajit/include/luajit-2.1/lualib.h /usr/local/openresty/luajit/lib /usr/local/openresty/luajit/lib/libluajit-5.1.so /usr/local/openresty/luajit/lib/libluajit-5.1.so.2 /usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0 /usr/local/openresty/luajit/lib/lua /usr/local/openresty/luajit/lib/lua/5.1 /usr/local/openresty/luajit/lib/pkgconfig /usr/local/openresty/luajit/lib/pkgconfig/luajit.pc /usr/local/openresty/luajit/share /usr/local/openresty/luajit/share/lua /usr/local/openresty/luajit/share/lua/5.1 /usr/local/openresty/luajit/share/luajit-2.1.0-beta3 /usr/local/openresty/luajit/share/luajit-2.1.0-beta3/jit /usr/local/openresty/luajit/share/luajit-2.1.0-beta3 / Jit / Bc.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1 . 0 -beta3 / Jit / Bcsave.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1 . 0 -beta3 / Jit / Dis_arm.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1 . 0 -beta3 / Jit / Dis_arm64.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1 . 0 -beta3 / Jit / Dis_arm64be.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1 . 0 -beta3 / Jit / Dis_mips.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1. 0 -beta3 / Jit / Dis_mips64.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1 . 0 -beta3 / Jit / Dis_mips64el.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1 . 0 -beta3 / Jit / Dis_mipsel.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1 . 0 -beta3 / Jit / Dis_ppc.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1 . 0 -beta3 / Jit / Dis_x64.lua / the usr / Local / Openresty / Luajit / Share / Luajit- 2.1 . 0 -beta3 / Jit / Dis_x86.lua /usr/local/openresty/luajit/share/luajit-2.1.0-beta3/jit/dump.lua /usr/local/openresty/luajit/share/luajit-2.1.0-beta3/jit/p.lua /usr/local/openresty/luajit/share/luajit-2.1.0-beta3/jit/v.lua /usr/local/openresty/luajit/share/luajit-2.1.0-beta3/jit/vmdef.lua /usr/local/openresty/luajit/share/luajit-2.1.0-beta3/jit/zone.lua /usr/local/openresty/lualib/cjson.so /usr/local/openresty/lualib/librestysignal.so /usr/local/openresty/lualib/ngx /usr/local/openresty/lualib/ngx/balancer.lua /usr/local/openresty/lualib/ngx/base64.lua /usr/local/openresty/lualib/ngx/errlog.lua /usr/local/openresty/lualib/ngx/ocsp.lua /usr/local/openresty/lualib/ngx/pipe.lua /usr/local/openresty/lualib/ngx/process.lua /usr/local/openresty/lualib/ngx/re.lua /usr/local/openresty/lualib/ngx/resp.lua /usr/local/openresty/lualib/ngx/semaphore.lua /usr/local/openresty/lualib/ngx/ssl /usr/local/openresty/lualib/ngx/ssl.lua /usr/local/openresty/lualib/ngx/ssl/session.lua /usr/local/openresty/lualib/redis /usr/local/openresty/lualib/redis/parser.so /usr/local/openresty/lualib/resty /usr/local/openresty/lualib/resty/aes.lua /usr/local/openresty/lualib/resty/core /usr/local/openresty/lualib/resty/core.lua /usr/local/openresty/lualib/resty/core/base.lua /usr/local/openresty/lualib/resty/core/base64.lua /usr/local/openresty/lualib/resty/core/ctx.lua /usr/local/openresty/lualib/resty/core/exit.lua /usr/local/openresty/lualib/resty/core/hash.lua /usr/local/openresty/lualib/resty/core/misc.lua / usr / local / openresty / lualib / Resty / core / ndk.lua / usr / local / openresty / lualib / Resty / core / phase.lua / usr / local / openresty / lualib / Resty / core / regex. Contact / usr / local / openresty / lualib / Resty / core / request.lua / usr / local / openresty / lualib / Resty / core / response.lua / usr / local / openresty / lualib / Resty / core / shdict.lua / usr / local / openresty / lualib / Resty / core / time.lua / usr / local / openresty / lualib / Resty / core / uri.lua / usr / local / openresty / lualib / Resty / core / utils.lua / usr / local / openresty / lualib / Resty / core / var .lua / usr / local / openresty / lualib / Resty / core / worker.lua /usr/local/openresty/lualib/resty/dns /usr/local/openresty/lualib/resty/dns/resolver.lua /usr/local/openresty/lualib/resty/limit /usr/local/openresty/lualib/resty/limit/conn.lua /usr/local/openresty/lualib/resty/limit/count.lua /usr/local/openresty/lualib/resty/limit/req.lua /usr/local/openresty/lualib/resty/limit/traffic.lua /usr/local/openresty/lualib/resty/lock.lua /usr/local/openresty/lualib/resty/lrucache /usr/local/openresty/lualib/resty/lrucache.lua /usr/local/openresty/lualib/resty/lrucache/pureffi.lua /usr/local/openresty/lualib/resty/md5.lua /usr/local/openresty/lualib/resty/memcached.lua /usr/local/openresty/lualib/resty/mysql.lua /usr/local/openresty/lualib/resty/random.lua /usr/local/openresty/lualib/resty/redis.lua /usr/local/openresty/lualib/resty/sha.lua /usr/local/openresty/lualib/resty/sha1.lua /usr/local/openresty/lualib/resty/sha224.lua /usr/local/openresty/lualib/resty/sha256.lua /usr/local/openresty/lualib/resty/sha384.lua /usr/local/openresty/lualib/resty/sha512.lua /usr/local/openresty/lualib/resty/shell.lua /usr/local/openresty/lualib/resty/signal.lua /usr/local/openresty/lualib/resty/string.lua /usr/local/openresty/lualib/resty/upload.lua /usr/local/openresty/lualib/resty/upstream /usr/local/openresty/lualib/resty/upstream/healthcheck.lua /usr/local/openresty/lualib/resty/websocket /usr/local/openresty/lualib/resty/websocket/client.lua /usr/local/openresty/lualib/resty/websocket/protocol.lua /usr/local/openresty/lualib/resty/websocket/server.lua /usr/local/openresty/lualib/tablepool.lua /usr/local/openresty/nginx/conf/fastcgi.conf /usr/local/openresty/nginx/conf/fastcgi.conf.default /usr/local/openresty/nginx/conf/fastcgi_params /usr/local/openresty/nginx/conf/fastcgi_params.default /usr/local/openresty/nginx/conf/koi-utf /usr/local/openresty/nginx/conf/koi-win /usr/local/openresty/nginx/conf/mime.types /usr/local/openresty/nginx/conf/mime.types.default /usr/local/openresty/nginx/conf/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf.default /usr/local/openresty/nginx/conf/scgi_params /usr/local/openresty/nginx/conf/scgi_params.default /usr/local/openresty/nginx/conf/uwsgi_params /usr/local/openresty/nginx/conf/uwsgi_params.default /usr/local/openresty/nginx/conf/win-utf /usr/local/openresty/nginx/html/50x.html /usr/local/openresty/nginx/html/index.html /usr/local/openresty/nginx/logs /usr/local/openresty/nginx/sbin/nginx /usr/local/openresty/nginx/sbin/stap-nginx /usr/local/openresty/nginx/tapset/nginx.stp /usr/local/openresty/nginx/tapset/ngx_lua.stp /usr/local/openresty/site/lualib