1. Install libpcre3, libpcre3-dev2. Install zlib1g-dev3. Download nginx and unzip it4. ./configure5. make6. sudo make install7. cd /usr/local/nginx/sbin8. sudo ./nginx Open your web browser and type: http://localhost, you will get the below test page…