Disable service at boot and stop it now.
Section: Enable, Disable, Mask
Disable and stop
bash
bash
sudo systemctl disable --now nginxExplanation
Useful during maintenance or decommissioning.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Enable, Disable, Mask