Java's web server -Tomcat

First, the server

  1, the server

    Computer server software installed: Server

  2, server software

    Server Software: receiving a user's request, processes the request, responds

  3, Web server software

    web server software: receiving a user's request, process the request, responds.

    In the web server software (web container), you can deploy web projects, allowing users to access these items through a browser.

Second, the commonly used Java-related web server software

  1、webLogic

     webLogic: Oracle Corporation, a large JavaEE server, supports all Java specifications and costs.

  2、webSphere

      webSphere: IBM Corporation, a large JavaEE server, supports all the JavaEE specification, for a fee.

  3、JBOSS

      JBOSS: JBOSS company's large JavaEE server, supports all the JavaEE specification, charges

  4、Tomcat

      Tomcat: Apache Fund, small and medium JavaEE server, supports only a small number of JavaEE specification servlet / jsp. Open source, free of charge.

  Tips : JavaEE: the sum of the technical specifications of the Java language used in the enterprise development, the specification provides for a total of 13 large

Three, Tomcat server

  1. Download

    Official website address: http://tomcat.apache.org/

  2, installation

    Extracting archive into the specified location.

    Note : The installation directory is recommended not to have Chinese and spaces

    Directory structure:

       

  3. Uninstall

    Uninstall delete the directory can be realized.

  4, start

    (1) Start and access

       ① start : in the installation directory bin files, find startup.bat, double-click the file to run

       ② Access : Enter the browser: http: // localhost: 8080 Enter access server on the machine; http: // ip address: 8080 access to the specified server on the PC

    (2) problems may be encountered

       ① black window flashed

        The reason : the JAVA_HOME environment variable is not configured correctly

        Solution : Configure JAVA_HOME environment variable

       ② start error

        The reason: There were other occupied port number

        solution:

          a, in cmd command window to see all the processes by netstat -ano command, find the process occupy the port, and then close the process with Task Manager

          b, in the installation directory, locate the following conf server.xml file, and then modify the port information in the configuration file

<Connector port="8888" protocol="HTTP/1.1"
connectionTimeout="20000"
 redirectPort="8445" />

          Extended : the default port number of the general will is 80.80 tomcat port number is the default port number for http protocol.

  5, closed

    (1) normally closed

      ①  run following bin shutdown.bat 

      ②  in the command window press ctrl + c

    (2) forcibly closed

      Click the Close button in the command window

  6, configuration

  7、

  8、

  9、

four,

Fives,

Guess you like

Origin www.cnblogs.com/niujifei/p/11617229.html