ubuntu中如何向tomcat传递参数?

发布于 2024-08-14 00:59:03 字数 399 浏览 3 评论 0原文

我正在尝试将 CruiseControl 配置为使用 Tomcat 而不是 Jetty 作为其 servlet 引擎。我正在关注这方面的教程,但我被困在它说的地方:

将启动参数传递给tomcat。

-Ddashboard.config=/home/cruisecontrol/work/dashboard-config.xml

我应该将其放入 Tomcat 安装中的哪个文件中?是Tomcat目录下的startup.sh文件吗?

教程位于此处

I am trying to configure cruisecontrol to use Tomcat rather than Jetty as its servlet engine. I am following a tutorial on this and I'm stuck at the point where it says:

Pass startup parameter to tomcat.

-Ddashboard.config=/home/cruisecontrol/work/dashboard-config.xml

Which file do I put this in in my Tomcat installation? Is it the startup.sh file in the Tomcat directory?

The tutorials are here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

半透明的墙 2024-08-21 00:59:03

这可能需要放入 catalina.sh 文件中的 JAVA_OPTS 变量中。

This probably needs to go in the JAVA_OPTS variable, in the catalina.sh file.

甜妞爱困 2024-08-21 00:59:03

每个应用程序服务器(例如 tomcat 和 weblogic)都必须有 config.xml。您可以传递 tomcat 服务器的 config.xml 中提到的启动参数。

You have to have config.xml with every appserver like tomcat and weblogic. You can pass the startup parameters as mentioned there in config.xml of tomcat server.

挖个坑埋了你 2024-08-21 00:59:03

对于 Tomcat 7,应按照 catalina.sh 脚本中的说明在 $CATALINA_BASE/bin/setenv.sh 中进行设置。

With Tomcat 7, this should be set in $CATALINA_BASE/bin/setenv.sh as stated in the catalina.sh script.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文