OpenResty - Getting Started with OpenResty

by
Jeremy Canfield |
Updated: July 15 2021
| OpenResty articles
On a Linux system, wget can be used to download openresty.repo.
wget https://openresty.org/package/fedora/openresty.repo
And then move the openresty.repo into the /etc/yum.repos.d directory.
mv openresty.repo /etc/yum.repos.d/
apt-get (Debian, Ubuntu), dnf or yum (CentOS, Fedora, Red Hat) can be used to install OpenResty.
dnf install openresty openresty-resty
The which command should now show that the resty command line tool (CLI) exists.
which resty
Something like this should be returned.
/bin/resty
The following command can be issued to test resty.
resty -e 'print("Hello World")'
And Hello World should be returned.
Hello World
Did you find this article helpful?
If so, consider buying me a coffee over at