CAll Us: USA +1 9176775553   Login

Some tomcat related command

Some tomcat related command

1) How to check version of Tomcat
root@server []# cd /usr/local/jakarta/tomcat/bin
root@server []# sh version.sh

2] How to start and stop tomcat
root@server []#/usr/local/jakarta/tomcat/bin/./startup.sh  For Start
root@server []#/usr/local/jakarta/tomcat/bin/./shutdown.sh For Stop
root server[~]# /scripts/restartsrv tomcat

3] How to check tomcat error logs
/usr/local/jakarta/tomcat/logs/catalina.err
or
/usr/local/jakarta/tomcat/logs/catalina.out

4] Create symlinks for start and stop tomcat
ln -s /usr/local/jakarta/tomcat/bin/./startup.sh /etc/init.d/tomcatstart
and
ln -s /usr/local/jakarta/tomcat/bin/./shutdown.sh /etc/init.d/tomcatstop

Leave a Reply