Install Gunicorn On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian
Install gunicorn
-
Debian
apt-get install gunicornClick to copy -
Ubuntu
apt-get install gunicornClick to copy -
Arch Linux
pacman -S gunicornClick to copy -
Kali Linux
apt-get install gunicornClick to copy -
CentOS
yum install gunicornClick to copy -
Fedora
dnf install gunicornClick to copy -
Raspbian
apt-get install gunicornClick 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 copyListen on port 8080 on localhost:gunicorn --bind localhost:8080 import.path:app_objectClick to copyTurn on live reload:gunicorn --reload import.path:app_objectClick to copyUse 4 worker processes for handling requests:gunicorn --workers 4 import.path:app_objectClick to copyUse 4 worker threads for handling requests:gunicorn --threads 4 import.path:app_objectClick to copyRun 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.




