In this hands on lab, we will be looking at configuring system services in SLES and troubleshooting a service that fails to start. We will be enabling and disabling services and working with service masks in systemd.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Stop and Disable the Apache2 Web Server
Stop the web server:
sudo -i systemctl stop apache2
Disable it:
sudo -i systemctl disable apache2
- Start and Enable the Nginx Service, and Correct Any Errors so the Service Is Enabled and Running
Start the service:
sudo -i systemctl start nginx
If the service is unable to start, determine the reason:
sudo -i systemctl unmask nginx
Now that the service is unmasked, start and enable the service:
sudo -i systemctl start nginx sudo -i systemctl enable nginx
Verify that Nginx is running:
sudo -i systemctl status nginx