Changing of location of catalina.pid for tomcat

旧街凉风 提交于 2019-12-01 05:27:29

问题


"catalina.pid" is not in the "tomcat/bin" folders where it should be and it isn't created there during tomcat starting. The question is how (where) i can redefine path to "catalina.pid" to force it to be created in a right folder.

Thanks in advance,


回答1:


Depending on the installation of tomcat, I have seen instances where catalina.pid is not defined. In this case, shut down tomcat, and define it yourself thusly:

In tomcat/bin/setenv.sh, add this line:

CATALINA_PID="$CATALINA_BASE/bin/catalina.pid"

or for windows (in setenv.bat): set CATALINA_PID=%CATALINA_HOME%/bin/catalina.pid

This will define and create the pid file in the tomcat/bin folder, assuming your CATALINA_HOME is defined as your tomcat folder. However, you may also change the location of the pid file, by just changing the path above.



来源:https://stackoverflow.com/questions/17777090/changing-of-location-of-catalina-pid-for-tomcat

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!