Install Gunicorn On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian

Install Gunicorn On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian

gunicorn

Python WSGI HTTP Server.

Maintainer: Chris Lamb



Section: httpd

Install gunicorn

  • Debian apt-get install gunicorn Click to copy
  • Ubuntu apt-get install gunicorn Click to copy
  • Arch Linux pacman -S gunicorn Click to copy
  • Kali Linux apt-get install gunicorn Click to copy
  • CentOS yum install gunicorn Click to copy
  • Fedora dnf install gunicorn Click to copy
  • Raspbian apt-get install gunicorn Click to copy

Python WSGI HTTP Server.

How to use gunicorn?

Below are few example commands for gunicorn that you can use in the terminal.

Run Python web app:
gunicorn import.path:app_objectClick to copy
Listen on port 8080 on localhost:
gunicorn --bind localhost:8080 import.path:app_objectClick to copy
Turn on live reload:
gunicorn --reload import.path:app_objectClick to copy
Use 4 worker processes for handling requests:
gunicorn --workers 4 import.path:app_objectClick to copy
Use 4 worker threads for handling requests:
gunicorn --threads 4 import.path:app_objectClick to copy
Run app over HTTPS:
gunicorn --certfile cert.pem --keyfile key.pem import.path:app_objectClick to copy
To install the latest version of gunicorn in your favorite operating system just copy the gunicorn installation command from above and paste it into terminal. It will download and install the latest version of gunicorn 2026 package in your OS.