Java Configuration and Tomcat installation

Source: Internet
Author: User

Original:
HTTPS://www.cnblogs.com/lwjboke/p/7089126.html

Download:
JDK History version:    http://www.oracle.com/technetwork/java/javase/archive-139210.html  Tomcat Download    http://tomcat.apache.org/
Configuration of Java Environment variables
JAVA installation exe file download and install the JDK, "My Computer" right---Properties, "Advanced system Settings", "Environment variables", create the following three variables (existing and edit): Java_home:c:\ Program FILES\JAVA\JDK1. 8. 0_111        //JDK installation path to the top of the bin.     CLASSPATH:%java_home%\lib\tools.jar; Path:%java_home%\bin;%java_home%-version ", if the installation is successful, the error message will not appear.
tomcat8.0 Installation
download Tomcat and unzip to the location you want to install VIM Catalina.bat add the following----------------------------SetTomcat_home=C:\opt\tomcatSetJava_home:c:\opt\java----------------------------Vim Setclasspath.bat #后台运行----------------------------Set_runjava="%jre_home%\bin\java"modified toSet_runjava="%JRE_HOME%\BIN\JAVAW"after the configuration, under CMD CD to C:\opt\tomcat\bin, run the "Catalina Start" command. View Process Tasklist| Findstr"Tomcat"in the browser address bar, enter "http://localhost "The following screen appears even if the installation was successful:
Tomcat boot up
Method 1:windows+r Run input gpedit.msc into Group Policy Editor Computer Configuration==windows set = = Script = = Start (right-click property) = = Add = =Select the bat file path Method 2: After installation, configure Server.xml to modify the following 3 ports------------------------------<server port="7001"shutdown="SHUTDOWN"> <connector port="8001"Protocol="http/1.1"ConnectionTimeout="20000"Redirectport="8443"/> <connector port="9001"Protocol="ajp/1.3"redirectport="8443"/>------------------------------under CMD CD to C:\opt\tomcat\bin, run the "service install tomcat8001" command, you can find tomcat8001 Note in services.msc: If you want to run as many Tomcat as Multiple and modify the port number

Java Configuration and Tomcat installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.