Facing some issues regarding tomcat startup and shutdown on ubuntu 10.04

后端 未结 7 894
暖寄归人
暖寄归人 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条回答
  •  盖世英雄少女心
    2021-02-04 00:07

    I think the officially recommended way (according to catalina.sh inline comments) is:

    • create a setenv.sh file under $CATALINA_HOME/bin:

    #!/bin/sh

    CATALINA_PID="$CATALINA_HOME/logs/catalina.pid"; export CATALINA_PID

    • chmod as executable:

      chmod u+x setenv.sh

    • create the pid file by:

      touch $CATALINA_HOME/logs/catalina.pid

    • then startup tomcat as usual, the pid file will be updated automatically. And you can stop tomcat by "-force" option as well.

提交回复
热议问题