nginx.ccWeb server troubleshooting desk

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 bash
$curl -fsSL nginx.cc/install | sudo bash -s -- --mainline
$curl -fsSL nginx.cc/install | bash -s -- --dry-run

SHA-256: d0b2d0960d163e9bfcc27a95cf44808a603a8d4f5d598b56d91a9e232d80868c
View source · install.sh.sha256

nginx 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 bash
$curl -fsSL nginx.cc/fix | sudo bash -s -- --apply-hardening

SHA-256: 2cb344b4db54a91985e635629666699a8343366639617a4c115b0edfa7dccfd7
View source · fix.sh.sha256

Verify 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.