Several use skills of Tomcat

xiaoxiao2021-03-06  61

First, deploy Tomcat to the directory other than the web-app (Tomcat4, Tomcat5) 1. You can modify the configuration through the interface: http: // localhost: 8080 / admin, but if it is released by "/", it may be Point problem. 2, the other manual modification is also very simple, I think it is much more fast than the use of the interface. There are two ways to manually modify, one is to directly modify server.xml, and the other is the WEP-APP under the Tomcat home directory. A configuration file, such as OA.xml; I agree with the second method, because you can avoid SERVER.XML too long. OA.XML is very simple:

Note that if it is released to be a path to web Applicaton, Path = ", not" / ". Second, transfer Tomcat's output, transfer from the console to output to the file. (Tomcat4)

Startup.bat countdown second row modified:

Call "% executable%" Run% cmd_line_args%

Catalina.bat changes the corresponding sentence of the final paragraph (change here: Donesetargs):

% _EXECJAVA%% JAVA_OPTS%% CATALINA_OPTS%% DEBUG_OPTS% -Djava.endorsed.dirs = "% JAVA_ENDORSED_DIRS%" -classpath "% CLASSPATH%" -Dcatalina.base = "% CATALINA_BASE%" -Dcatalina.home = "% CATALINA_HOME% "-Djava.io.tmpdir ="% catalina_tmpdir% "% mainclass%% cmd_line_args%% Action% >>% catalina_home% / logs / stdout.txt

You can view /logs/stdout.txt.

转载请注明原文地址:https://www.9cbs.com/read-88440.html

New Post(0)