How to change java_opts for tomcat when we run it as a windows service manually?

后端 未结 5 1161
名媛妹妹
名媛妹妹 2021-02-05 09:35

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 dyna

5条回答
  •  攒了一身酷
    2021-02-05 10:06

    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.

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

    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.

提交回复
热议问题