tomcat configuration directory and installation instructions

  1. Upgrade version jdk

    

    View the current version of java java -version

    Upload the latest version of jdk

    tar xf jdk-8u191-linux-x64.tar.gz next to the current extracting jdk

    mv jdk1.8.0_191 / usr / lcoal / java file to move jdk / usr / local / java rename

    rm -rf / usr / bin / java delete old files

    source / etc / profile reload the configuration file

    View the current version of java -version

 

  Role 2.tomcat folder for each directory

  

    

 

    bin: put the binaries, scripts, commands, startup.sh open, shutdown.sh closed.

    conf: put global configuration file, most notably server.xml and web.xml.

    lib: library file.

    logs: log file.

    temp: temporary files produced.

    webapps: the development of a good jsp file storage address.

    work: store java class files.

    windows: * .dll libraries ending.

    linux: * .so library file ending.

    java: library files * .jar end.

 

     

 

    

 

 

     

 

 

   3.webaoos catalog:

      

    

 

 

     ROOT: the site root directory.

     docs: tomcat help documentation.

     examples: web application examples.

     host-manager: Host Management.

     manager: management.

  

  4.conf catalog:

 

      

    catalina.policy access control profile

    catalina.properties tomcat property profile

    context.xml context is used to specify additional directory

    logging.properties log log configuration file

    The main configuration file server.xml

    tomcat-users.xml manager-gui manage user profile (generated after tomcat installation management interface, to access a file can be opened)

    The web.xml tomcat servlet, servlet-mapping, filter, MIM configuration

  

  5.tomcat master configuration file:

 

    Notes ways: <! - -> Comment belong to the range of information

    tomcat Close: telnet 127.0.0.1 8005 port

          SHUTDOWN closing command (camouflages)

  

  6.connector main parameters:

 

    server: represents a tomcat instance running on the JVM.

    service (service): The connector linked to the engine, the interior has a service

             Multiple connector, only one engine.

    connector: receiving a user request, to the processing engine.

  7.host arguments detailed:

 

    host: a virtual host

    name: Specifies the host name (domain name)

    appBase: store application directory, general appBase = "webapps", in relation to

         CATALINA_HOM can also write an absolute path.

    unpackWAR: If true, then tomcat automatically extract the WAR file directly from

            WAR file to run the program.

    autoDeploy: When tomcat starts, whether automatic deployment.

    xmlValldation: whether to start checking function xml, generally xmlValldation = "faise".

    xmlNamespaceAware: detecting namespace, generally xmlNamespaceAware = "faise".

  8.context

 

    context: that a web application, usually WAR file.

    docBase: path to the application and WAR files can be stored in a relative path,

         Context for this initial path of the host belongs appBase defined path.

    path: url prefix of this web application, url request such as http: // localhonst:

       8080/path/****

    Reloadable: property is true, then tomcat automatically retrieve the application / WEB-INF / lib and

          / Change WEB-INF / classes directory, automatically installed in the new application,

          Applications can be changed without restarting the tomcat.

  

  9. The request processing flow

 

    

 

    Process flow: the user sends a request to the WEB server, the request is listening connector is connected to receive,

         And sends the request to the Server to process in the engine, and wait for the results. Please obtain engine

         Will match the corresponding host to the host from the host after the request information request, host route request based on the host

           Match the corresponding context, after the request to construct the application context web matching, response

           Request object, call the specified server to process the request. Request will be processed after the response object

           Returned to the host host, host response object will be returned to the host engine engine, engine and then

         response object is returned to the connector link, and finally connector connectors response back to the browser.

Guess you like

Origin www.cnblogs.com/WELLLEE/p/11618351.html