How do I check if a service is running in Linux?

Hằng Đoàn

New member
How do I check if a service is running in Linux?
Answer
  1. Linux provides fine-grained control over system services through systemd, using the systemctl command. …
  2. To verify whether a service is active or not, run this command: sudo systemctl status apache2. …
  3. To stop and restart the service in Linux, use the command: sudo systemctl restart SERVICE_NAME.
 

Tìm kiếm

Back
Top