Difficulty: Beginner
Estimated Time: 10 minutes

Deploy OpenResty and run Hello World!!

OpenResty - Hello World

Step 1 of 2

Install Openresty

Setup apt openresty repository

curl https://openresty.org/package/pubkey.gpg | sudo apt-key add - && \ sudo apt-get -y install software-properties-common && \ sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"

Install OpenResty

sudo apt-get update && sudo apt-get install openresty -y

Verify Resty installation

resty -e 'print("hello, world!")'