Configuring System Services in SUSE Linux Enterprise

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

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
  1. Stop the web server:

    sudo -i systemctl stop apache2
  2. Disable it:

    sudo -i systemctl disable apache2
Start and Enable the Nginx Service, and Correct Any Errors so the Service Is Enabled and Running
  1. Start the service:

    sudo -i systemctl start nginx
  2. If the service is unable to start, determine the reason:

    sudo -i systemctl unmask nginx
  3. Now that the service is unmasked, start and enable the service:

    sudo -i systemctl start nginx
    sudo -i systemctl enable nginx
  4. Verify that Nginx is running:

    sudo -i systemctl status nginx

Additional Resources

You have been tasked with ensuring the HTTP services in your organization have been switched over from apache2 to Nginx. A junior admin was attempting to make this change but was unable to get Nginx to start on the server, so apache was left running. You will need to stop and disable apache and then correct the issue that is causing Nginx to fail to start. Once that is complete, you will need to ensure Nginx is enabled and running on the server.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?