DevOps Training Material

«Back

Service in Linux

List all services

image

+ = Running
- = Stopped
? = Service does not have status parameter

Service Status, Start, Stop, Restart

sudo systemctl apache2 restart
sudo systemctl apache2 status
sudo /etc/init.d/my_service restart