Task - Linux Process Troubleshooting
Problem:
The production support team of xFusionCorp Industries has deployed some of the latest monitoring tools to keep an eye on every service, application, etc. running on the systems. One of the monitoring systems reported about Apache service unavailability on one of the app servers in
Stratos DC
.Identify the faulty app host and fix the issue. Make sure Apache service is up and running on all app hosts. They might not hosted any code yet on these servers so you need not to worry about if Apache isn't serving any pages or not, just make sure service is up and running. Also, make sure Apache is running on port
8087
on all app servers.
Solution:
First of all, we need to ssh into all the 3
app servers
and find out on which server theApache
service not working. SoSSH
into all servers and use this command to check the status of the Apache service.sudo systemctl status httpd
Now, we know which server has the
Apache
service issue. So let's find out which process is consuming this port 8087 mentioned in the problem statement. In your case, it could be differentsudo netstat -tunelp
So, from this command, you will know which process uses this port 8087. So kill this process & restart the Apache service, additionally, check the status too.
sudo kill -9 419 sudo systemctl restart httpd sudo systemctl status httpd
References: https://kodekloud.com/community/t/linux-process-troubleshooting-start-service-issue/6154/7
Subscribe to my newsletter
Read articles from Sachin Khamitkar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Sachin Khamitkar
Sachin Khamitkar
Hi there, I am a learner first and then an IT enthusiast. I have started exploring and ocean of DevOps Tools and tech.