- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
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.*
Lab Info
Table of Contents
-
Challenge
View Process Information Using the PS and TOP Commands
- Use
topto view process activity. - Use
grepto filterpsoutput formariadb.
- Use
-
Challenge
Cycle the Problematic Service
- Use the
systemctlcommand to cycle themariadb. - Confirm
mariadbservice is running using thesystemctlcommand.
- Use the
-
Challenge
Identify the PID and KILL the Problematic Process
- Use the
pscommand to identify the PID for themariadbprocess. - Use the
killcommand to terminate themariadbusing theSIGKILLparameter.
- Use the
-
Challenge
Stop and Mask the Problematic Service to Prevent It from Restarting
- Check the
mariadbservice status usingsystemctl. - Use
systemctlto stop themariadbservice. - Mask the
mariadbservice usingsystemctl. - Attempt to start the
mariadbservice to confirm it is properly masked.
- Check the
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.