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.
$ wget https://openresty.org/package/centos/openresty.repo $ 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/multi-user.target.wants/openresty.service to /usr/lib/systemd/system/openresty.service.
$ service openresty restart Redirecting to /bin/systemctl restart openresty.service