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

后端 未结 5 1154
名媛妹妹
名媛妹妹 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 09:43

    You can set your JAVA_OPTS environment variable either manually via the command line prior to starting Tomcat:

    set JAVA_OPTS=youropts
    

    or you can edit catalina.bat with the values you want.

提交回复
热议问题