Interested to know how people usually check to see if Tomcat is running on a Unix environment.
I either check that the process is running using
ps -ef | grep java
ps -ef | grep logging
or i check that the port number is active
netstat -a | grep 8080
is there a better way of checking that Tomcat is running? The above seem to be to be a 'hacky' way of checking that Tomcat is running.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…