How to start, stop & restart services in ubunt


  • List all service


systemctl

or
service --status-all



  • Start a service


systemctl start <service-name>
or
service <service-name> start


  • Stop a service

systemctl stop <service-name>
or
service <service-name> stop



  • Restart a service

systemctl restart <service-name>
or
service <service-name> restart




  • Check the status of a service

systemctl status <service-name>
or
service <service-name> status



































Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch