更改tomcat的catalina.pid的位置 [英] Changing of location of catalina.pid for tomcat

查看:1698
本文介绍了更改tomcat的catalina.pid的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

catalina.pid不在应有的 tomcat / bin文件夹中,并且在tomcat启动期间未在其中创建。
问题是我如何(在哪里)重新定义 catalina.pid的路径以强制将其创建在正确的文件夹中。

"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.

在此先感谢,

推荐答案

根据tomcat的安装情况,我看到了未定义catalina.pid的实例。在这种情况下,请关闭tomcat,然后自行定义:

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:

在tomcat / bin / setenv.sh中,添加以下行:

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

CATALINA_PID = $ CATALINA_BASE / bin / catalina.pid

或用于Windows (在setenv.bat中): set CATALINA_PID =%CATALINA_HOME%/ bin / catalina.pid

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

并假设您的CATALINA_HOME被定义为您的tomcat文件夹,并在tomcat / bin文件夹中创建pid文件。但是,您也可以通过更改上面的路径来更改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.

这篇关于更改tomcat的catalina.pid的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆