Skip to main content

Configuring System Services in SUSE Linux Enterprise

Hands-On Lab

 

Photo of Ross Brunson

Ross Brunson

Linux Training Architect II

Length

00:30:00

Difficulty

Beginner

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.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Configuring System Services in SUSE Linux Enterprise

Introduction

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.

Solution

Log in to the Server1 server using the credentials provided:

ssh cloud_user@<SERVER1_PUBLIC_IP_ADDRESS>

Stop and Disable the Apache2 Web Server

  1. Stop the web server:

    sudo -i systemctl stop apache2

    Enter the cloud_user password provided with the lab credentials.

  2. Disable it:

    sudo -i systemctl disable apache2
  3. Make sure it's disabled:

    sudo -i systemctl status 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. Start the service:

    sudo -i systemctl start nginx
  4. Enable the service:

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

    sudo -i systemctl status nginx

Conclusion

Congratulations on successfully completing this hands-on lab!