I have a centos 6.5 machine running a java server socket on port 9000. All these while it have been running well and suddenly when I tried to start it using this command java myService nothing seems to work. Below are some commands I tried to find why its not running.
# netstat -tpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:sunrpc *:* LISTEN 1762/rpcbind
tcp 0 0 *:ssh *:* LISTEN 7105/sshd
tcp 0 0 localhost:ipp *:* LISTEN 1911/cupsd
tcp 0 0 localhost:smtp *:* LISTEN 2128/master
tcp 0 0 *:41002 *:* LISTEN 1883/rpc.statd
tcp 0 0 *:sunrpc *:* LISTEN 1762/rpcbind
tcp 0 0 *:http *:* LISTEN 5914/httpd
tcp 0 0 *:ssh *:* LISTEN 7105/sshd
tcp 0 0 localhost:ipp *:* LISTEN 1911/cupsd
tcp 0 0 localhost:smtp *:* LISTEN 2128/master
tcp 0 0 *:33914 *:* LISTEN 1883/rpc.statd
tcp 0 0 *:15003 *:* LISTEN 4695/java
Also I run this command to find below result.
$ grep -e 9000 -e 9700 -e 9900 /etc/services
cslistener 9000/tcp # CSlistener
cslistener 9000/udp # CSlistener
board-roar 9700/tcp # Board M.I.T. Service
board-roar 9700/udp # Board M.I.T. Service
iua 9900/tcp # IUA
iua 9900/udp # IUA
iua 9900/sctp # IUA
What is confusing is that all these while it have been running well and suddenly when I start my original service I dont see its listening on port 9000? What could be the issue?
netstat -tpl
as root? Your normal user might not see everything.