Difficulty: Beginner
Estimated Time: 10 minutes

Deploy OpenResty and run Hello World!!

Don’t stop now! The next scenario will only take about 10 minutes to complete.

OpenResty - Hello World

Step 1 of 2

Install Openresty

Setup apt repository

sudo apt-get install wget && \ wget -qO - 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!")'