At this moment, I will present guidance on how to deploying a “Hello World” Python application with Nginx. Is it sounds strange to you? Likewise with me before trying this one. Before heading to the core of the tutorial, I should provide some prerequisites to do it.

Python

Python is an interpreted, high-level, general-purpose programming language. I’ll use Python 3.8.2 which is by default installed on my ubuntu 20.04 or Focal Fossa version. You can check the version of your Python 3 by this line.

# python3 -V
Python 3.8.2

If you have no Python3 installed on, you can search by yourself on how to do it. Don’t slothful!

PIP

Pip is the package installer for Python. You can use pip to install packages from the Python Package Index and other indexes. By default, Pip isn’t installed yet but it’s easy to have it by entering this line.

# apt install python3-pip

And you’ll get the latest and stable Pip package that using Python 3 as an interpreter. Check the version to make sure that it is absolutely installed on your machine.

# pip3 -V
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)

Nginx

Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy, and HTTP cache. It’s easy to install that only using this clean line.

# apt install nginx

Check the version of it just to make sure…

# nginx -v
nginx version: nginx/1.18.0 (Ubuntu)

#nginx #web-development #python

Deploying Python Application with Nginx
3.50 GEEK