OpenResty is a full-fledged internet platform which is usually based mostly on Nginx internet server. OpenResty not only bring many enhanced options from Nginx core, but additionally LuaJIT and LUA libraries. Openresty additionally embody high-quality Third-party Nginx modules which really designed to assist any builders to simply construct scalable internet app / companies, or dynamic internet gateways.

To start with, don’t neglect so as to add Openresty repository in your CentOS system. Merely change yum command to dnf in case you are utilizing CentOS 7

$ wget
$ mv openresty.repo /etc/yum.repos.d/

After that, lets run yum index update command.

$ yum check-update

Set up openresty and resty command-line utility package to your server

$ yum install openresty openresty-resty

Let’s start openresty web server and don’t forget to enabled it through systemctl

$ systemctl enable openresty.service
Created symlink from /etc/systemd/system/ to /usr/lib/systemd/system/openresty.service.
$ service openresty restart
Redirecting to /bin/systemctl restart openresty.service