Friday 20 October 2017

How to check whether port is listening or not

If you’re troubleshooting a service that you know is running normally the next step is to ensure its listening on the correct network port.

You need to run netstat on the server that is running the service. if the list of listening daemons is long you can use grep to filter it.

[root@linuxcnf ~]# netstat –tulnp | grep ':80'

We should get port 80 in output if the server httpd is running.

No comments:

Post a Comment