Facing some issues regarding tomcat startup and shutdown on ubuntu 10.04

后端 未结 7 1027
暖寄归人
暖寄归人 2021-02-03 23:16

I am facing some issues regarding tomcat startup and shutdown.

I am using

  1. Tomcat v.6.0.32 (using the extracted the bundle downloaded from Apache website a
7条回答
  •  萌比男神i
    2021-02-04 00:02

    Dont use /etc/bash.bashrc just put this on your catalina.sh

    After:

    if [ -r "$CATALINA_BASE"/bin/setenv.sh ]; then
                . "$CATALINA_BASE"/bin/setenv.sh
            elif [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
                . "$CATALINA_HOME"/bin/setenv.sh
            fi
    

    put this:

    export CATALINA_PID="$CATALINA_HOME/catalina_pid.txt"
    

    And now your tomcat will be killed when you use catalina.sh stop -force

提交回复
热议问题