Bootstrap FreeKB - OpenResty - Getting Started with OpenResty
OpenResty - Getting Started with OpenResty

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 6d33d2 in the box below so that we can be sure you are a human.