当我们手动将其作为Windows服务运行时,如何更改tomcat的java_opts? [英] How to change java_opts for tomcat when we run it as a windows service manually?

查看:98
本文介绍了当我们手动将其作为Windows服务运行时,如何更改tomcat的java_opts?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在控制台上手动将tomcat 6作为Windows服务运行。我需要在启动前更改java_opts。我怎么做?另外,有没有一种方法可以动态查看日志?

I'm manually running tomcat 6 as a windows service on the console. I need to change java_opts before starting it. How do I do that? Also, Is there a way I can see the logs dynamically?

推荐答案

更改 $ JAVA_OPTS ,您可能需要编辑用于启动Tomcat的批处理文件。我没有在Windows上运行Tomcat,但是 $ JAVA_OPTS 出现在<$ c $里面的 catalina.sh 中$ c> bin / 在我的Linux安装目录中。

To alter the $JAVA_OPTS, you will probably need to edit the batch file you use to start Tomcat. I don't run Tomcat on Windows, but the $JAVA_OPTS appears in my catalina.sh inside the bin/ directory on my Linux installation.

关于在Windows上动态查看日志,我有两个选择: m知道。

As far as viewing logs dynamically on Windows, there are a couple of options I'm aware of.


  1. 下载并安装Cygwin,然后在命令行上使用 tail -f logfilename 就像在Linux中一样。

  2. 获取BearTail程序,并使用它来跟踪日志文件。

  1. Download and install Cygwin, and then on the command-line, use tail -f logfilename like you would in Linux.
  2. Get the BearTail program and use that to follow your log files.

这篇关于当我们手动将其作为Windows服务运行时,如何更改tomcat的java_opts?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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