Restart a Service on Linux

Restarts it and prints active if it came back. For Nginx, test first with nginx -t. Fill in the details below to get the exact command.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Restart a Service

sudo systemctl restart nginx && systemctl is-active nginx

Restarts it and prints active if it came back. For Nginx, test first with nginx -t.

Linux Command Generator

The command

Commandsudo systemctl restart nginx && systemctl is-active nginx
CategoryServices
Works OnUbuntu, Debian, AlmaLinux, Rocky Linux

Restarts it and prints active if it came back. For Nginx, test first with nginx -t.

Questions

How do I restart a service on Linux?
Run: sudo systemctl restart nginx && systemctl is-active nginx

Run VMs for other people?

Frabs stops spam, scans and floods leaving your customers' VMs, before the abuse report lands.