nginx_installation

Nginx Installation

Windows

Chocolatey

Install with Chocolatey:

choco install nginx

nginx [engine x] is an HTTP server and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev.

This package provides an nssm Windows service wrapper for it which creates a standard Windows service named nginx to manage the Nginx server.

During installation nginx-service will create following nginx directory structure:

C:/tools/nginx

Place your nginx custom config files inside conf.d

Conf to be included must follow naming pattern server*.conf where * is a wildcard

Above allows config pattern where extra .conf files are included (and reused) manually from server*.conf, i.e. PHP location directive

It is safe to edit/rename/remove default config files. They will be restored during upgrade only if conf.d is empty

Fair Use Source: https://chocolatey.org/packages/nginx-service

nginx-service package files install completed. Performing other installation steps.

Config file(s) location “C:\tools\nginx\conf.d”

Nginx now can be started and stopped as regular Windows service or through NSSM command interface Type one of those commands in CMD or PowerShell for nginx-service control:

  • To restart service do both:
    • net stop nginx and net start nginx
    • nssm stop nginx and nssm start nginx

Environment Vars (like PATH) have changed. Close/reopen your shell to see the changes (or in powershell/cmd.exe just type `refreshenv`). The install of nginx-service was successful.

Software install location not explicitly set, could be in package or default install location if installer.

Chocolatey installed 2/2 packages.

See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

PS C:\WINDOWS\system32>

https://nginx.org/en/docs/windows.html

Nginx on macOS

Research It More

Fair Use Sources

Nginx: Web Servers, Nginx Installation (choco install nginx - Nginx on Windows, Nginx on WSL, brew install nginx - Nginx on macOS, dnf install nginx - Nginx on Rocky, apt install nginx - Nginx on Debian), Nginx Management, Load Balancers, Nginx GitHub, Awesome Nginx. (navbar_nginx)


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


nginx_installation.txt · Last modified: 2024/05/01 04:39 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki