nginx one-line install and health-check scripts (nginx.org repo)
curl -fsSL nginx.cc/install | bash installs or updates nginx from nginx.org; nginx.cc/fix runs a read-only health check with suggestions.
Install / update nginx (official nginx.org repo)
Adds the official nginx.org repository and installs or updates nginx on Debian, Ubuntu and RHEL/CentOS/Rocky/AlmaLinux. Verifies the signing-key fingerprint, safe to re-run, --dry-run prints steps only.
Usage
curl -fsSL nginx.cc/install | sudo bashcurl -fsSL nginx.cc/install | sudo bash -s -- --mainlinecurl -fsSL nginx.cc/install | bash -s -- --dry-runnginx health check & suggestions (read-only by default)
Runs nginx -t and checks ports, service state, common config problems, certificate expiry, the error log and disk space, with suggestions and encyclopedia links. Changes nothing by default; only --apply-hardening writes a snippet that is validated with nginx -t and rolled back on failure.
Usage
curl -fsSL nginx.cc/fix | sudo bashcurl -fsSL nginx.cc/fix | sudo bash -s -- --apply-hardeningVerify before running
curl -fsSL https://nginx.cc/install.sh -o install.sh curl -fsSL https://nginx.cc/install.sh.sha256 | sha256sum -c - less install.sh && sudo bash install.sh --dry-run
Same conventions as xyz.sh: no telemetry, every change printed first, confirmation or -y required. More VPS scripts on xyz.sh.