Linux Process Troubleshooting KodeKloud

 

Question: 

Solution:

Go to all appservers and check httpd status

systemctl status httpd

If you find failed then the httpd config need to be changed of that server

Check the issue by typing httpd -t

go to httpd.conf by typing vi /etc/httpd/conf/httpd.conf 

Fix the issue. My issue was with SeerverName, so i fixed it by removing # comment

ServerName 172.16.238.10:80

Press ESC button and type :wq! for saving

Install netstat tools 

yum install -y net-tools

Next check which service is blocking your port by typing this command

netstat -anp | grep LISTEN

Check which port is being blocked by another process. You can check your port from httpd config file. My port was 6100

Kill the process

kill -9 pid_number


Here pid number is 211. kill -9 211

Then restart httpd and check status

systemctl restart httpd

systemctl status httpd

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment