Linux Network Services Kodekloud

 


 

Question:


Solution:

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

ssh tony@stapp01

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




  

 


Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

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

5 comments:

  1. Thank you for you explanation , Solution works.

    ReplyDelete
  2. Very good topic, similar texts are I do not know if they are as good as your work out. check out this site

    ReplyDelete
  3. Hey man, if you have the time to reply:
    I've tried changing the port used by sendmail from 8081 to 25 instead and then restarting apache.
    Even though it didn't appear on netstat, I wasn't able to start apache with the same problem as the begining ("socket couldn't start cause there's a different process using it" or something like that).
    I've had to try from the zero and kill the process instead of reallocating its port in order to get it working. Do you have any idea why it happened?

    ReplyDelete
  4. Aw, this was a very nice post. In idea I wish to put in writing like this additionally ? taking time and precise effort to make a very good article? but what can I say? I procrastinate alot and not at all appear to get something done. Linux Cloud online training

    ReplyDelete
  5. Indeed, even Khloé Kardashian keeps on being submitting supported articles on the stage.tokliker

    ReplyDelete