How to start, stop & restart services in ubunt
- List all service
systemctl
or
service --status-all
- Start a service
systemctl start <service-name>
orservice <service-name> start
- Stop a service
systemctl stop <service-name>
orservice <service-name> stop
- Restart a service
systemctl restart <service-name>
orservice <service-name> restart
- Check the status of a service
systemctl status <service-name>
orservice <service-name> status
Comments
Post a Comment