install and configure nginx ubuntu 18.04 code example Example: install nginx on ubuntu 18.04 sudo apt update sudo apt install nginx