- A Cloud Guru
Configuring System Services in SUSE Linux Enterprise
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.
Table of Contents
Stop and Disable the Apache2 Web Server
Stop the web server:
sudo -i systemctl stop apache2
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
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.