Do not change catalina.sh !! This file should not be modified by the user. Tomcat updates can override it. Instead, create the file " setenv.sh " in your "$ CATALINA_BASE / bin" (in the same folder as catalina.sh ). Set all your environment variables there.
setenv.sh is an optional file. If it exists, it is imported using catalina.sh . And the name says what you put there. This is a good place to initialize your $ CATALINA_OPTS, $ JAVA_OPTS, etc.
PS Generally speaking, you should avoid configuring files that can be modified with the provided package / distribution, and there is an alternative approach to customization. In this case, files such as catalina.sh , /etc/tomcat7/tomcat7.conf , /etc/init.d/tomcatX , etc., can be updated silently, and you wonβt even notice that your configuration changes are rolled back .
oα΄ΙΉΗΙ₯Ι Jun 08 2018-12-12T00: 00Z
source share