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
Thank you for you explanation , Solution works.
ReplyDeleteVery good topic, similar texts are I do not know if they are as good as your work out. check out this site
ReplyDeleteHey man, if you have the time to reply:
ReplyDeleteI'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?
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
ReplyDeleteIndeed, even Khloé Kardashian keeps on being submitting supported articles on the stage.tokliker
ReplyDelete