- Lab
- A Cloud Guru
Managing and Troubleshooting System Services and Processes
In this hands-on lab, you will be investigating process activity and managing services on a development system. You use the `ps` and `top` commands to review process activity and locate the `PID` for a specific process. You will use this information to kill an active process that shouldn't be running. To ensure the process isn't restarted by the service, you will use the `systemctl` command to mask the service so it doesn't start automatically and cannot be manually started by an administrator. *This course is not approved or sponsored by Red Hat.*
Path Info
Table of Contents
-
Challenge
View Process Information Using the PS and TOP Commands
- Use
top
to view process activity. - Use
grep
to filterps
output formariadb
.
- Use
-
Challenge
Cycle the Problematic Service
- Use the
systemctl
command to cycle themariadb
. - Confirm
mariadb
service is running using thesystemctl
command.
- Use the
-
Challenge
Identify the PID and KILL the Problematic Process
- Use the
ps
command to identify the PID for themariadb
process. - Use the
kill
command to terminate themariadb
using theSIGKILL
parameter.
- Use the
-
Challenge
Stop and Mask the Problematic Service to Prevent It from Restarting
- Check the
mariadb
service status usingsystemctl
. - Use
systemctl
to stop themariadb
service. - Mask the
mariadb
service usingsystemctl
. - Attempt to start the
mariadb
service to confirm it is properly masked.
- Check the
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.