OpenResty - Getting Started with OpenResty

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

Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





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




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |