Note -apache-tomcat installation / configuration

Tomcat Download: http://tomcat.apache.org/

1. Download Tomcat, download different versions of the system according to their own clients

2. Extract the compressed packet, to extract the exact path \ bin to the environment variable

3. Start the server: enter the command interface, enter startup.bat (startup.sh)

4. Check whether the server is turned on success, browser access localhost: 8080 to

 

 

 

5. Configuration Tomcat:

  <Context docBase="" path="" reloadable="" debug=""  crosscontext=""  />标签,

  among them:

  (1) docBase may be a relative path (relative webapps, a method has been used), or an absolute path to a local file

  (2) path is the access path to the web project, that is a virtual file directory. (Note: If the files in the webapps path settings of the same name, will be loaded under webapps web project, following the example two)

  (3) reloadable = When "true", when the WEB-INF directory and web.xml class files when there are changes automatically reloads do not need to restart the server

  (4) debug debugging information, rating from 0 to 9, the more the higher the level of debugging information

  (5) crosscontext = "true", indicates a different context shared session

  (6) when the privileged = "true", within the allowed Tomcat Servlet Web application use of the container

  (7) antiResourceLocking and antiJARLocking: hot deployment parameters need to be configured, updated default false avoid a webapp, sometimes Tomcat is not able to completely remove the old webapp,

    It often leaves a jar package under the WEB-INF / lib, it must be closed in order to delete the Tomcat, which led to the automatic deployment to fail. Set to true, Tomcat when running the corresponding webapp, will correspondingly

    Copy the source files and jar files to a temporary directory.

  Note: to change the labels need to write in apache-tomcat unpacked conf \ Catalina \ localhost \ ROOT.xml, the role is: Priority access setting root, no longer have access to the webapps directory to find the file, if not found, an error

Guess you like

Origin www.cnblogs.com/leonchan/p/12101714.html