> For the complete documentation index, see [llms.txt](https://kermitcloud.gitbook.io/kermitcloud-hosting-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kermitcloud.gitbook.io/kermitcloud-hosting-wiki/vps-servers/how-to-install-nginx.md).

# How To Install Nginx

To install Nginx, you'll typically use your operating system's package manager. For Linux systems like Ubuntu or Debian, you can use `apt`. For other Linux distributions, you might use `yum` or `dnf`. For Windows, you'll need to download and unpack the Nginx distribution. Installation Steps (Linux - Ubuntu/Debian):

1. **Update the package lists:** `sudo apt update`.
2. **Install Nginx:** `sudo apt install nginx`.
3. **Start Nginx:** `sudo systemctl start nginx`.
4. **Enable Nginx to start on boot:** `sudo systemctl enable nginx`.
5. **Verify installation:** `sudo systemctl status nginx`.&#x20;

Installation Steps (Linux - Red Hat/CentOS):

1. **Add the EPEL repository:** `sudo yum install epel-release`.
2. **Install Nginx:** `sudo yum install nginx`.
3. **Start Nginx:** `sudo systemctl start nginx`.
4. **Enable Nginx to start on boot:** `sudo systemctl enable nginx`.
5. **Verify installation:** `sudo systemctl status nginx`.&#x20;

Installation Steps (Windows):

1. **Download the latest** [**mainline version**](https://www.google.com/search?safe=active\&sca_esv=e2b509bd8af7ff15\&rlz=1CAJEHJ_enUS1105\&q=mainline+version\&sa=X\&ved=2ahUKEwi9xMWMhd-MAxX2RDABHZLvDvkQxccNegQIbhAC\&mstk=AUtExfBSsraVM1G_-s96_L3H2X5XmeE2omjsDlKPa6945a63JtjSIdWU2_72JlUbkkSNhGJWzSRoWo4ULBmr0dieLu0ySPw2sp9t01lmpYeVUFfswWT9QoFsAs36Lc5S87zIX5E\&csui=3) **distribution**: (e.g., `nginx-1.27.5.zip` from [nginx](http://nginx.org/en/docs/windows.html)).
2. **Unpack the distribution:** Extract the downloaded ZIP file.
3. **Navigate to the Nginx directory:** `cd nginx-1.27.5` (or the appropriate directory).
4. **Run Nginx:** `start nginx`.
5. **Verify with tasklist:** `tasklist /fi "imagename eq nginx.exe"`.&#x20;

Verification: After installation, you can verify that Nginx is working by opening your web browser and navigating to your server's IP address or domain name. You should see the default Nginx welcome page. <br>
