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