Linux Network Services Kodekloud

 


 

Question:


Solution:

At first Login to stapp01 server or the server that has issue

ssh [email protected]

Login as root: sudo su

Then check httpd 

systemctl status httpd

If the status is inactive then find the error by typing

httpd -t

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

Uncomment ServerName

ServerName 172.16.238.10:3004

Save it by :wq!

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

netstat -anp |grep LISTEN |grep ":3004"

Kill the process 

kill -9 pid_number

Then restart httpd

systemctl restart httpd

systemctl status httpd

Next add rules to the iptables


 Now check from Jump Server




  

 


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