Following commands could be used to find out about the process which is listening to a particular port.
lsof -i :8000
ss -nlp | grep 8000
nmap
socklist
sudo netstat -tapen | grep ":8000 "
Ref: http://askubuntu.com/questions/278448/how-to-know-what-program-is-listening-on-a-given-port
Another good page
ReplyDeletehttp://www.cyberciti.biz/faq/what-process-has-open-linux-port/
To set Digital Ocean Tomcat: Use this
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-7-on-ubuntu-14-04-via-apt-get