Skip to content

Platform-specific Guides

Installation and configuration guides for NGINX on various operating systems.

For the best experience with pre-built modules, use NGINX Extras:

sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install nginx

Unix-like Systems

Platform Guide
Solaris / illumos Building from source, SMF service setup
OpenBSD Building from source, using ports

OS Package Managers

For basic installations without third-party modules:

Debian/Ubuntu

sudo apt update
sudo apt install nginx

RHEL/CentOS/Fedora

sudo dnf install nginx
# or
sudo yum install nginx

macOS (Homebrew)

brew install nginx

FreeBSD

pkg install nginx
# or from ports:
cd /usr/ports/www/nginx && make install clean

Windows

See PHP on Windows for Windows setup.

Windows

Windows is not recommended for production NGINX deployments.