tomcat8:http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.14/bin/ apache-tomcat-8.5.14-windows-x64.zipjdk1.8.0:http://download.oracle.com/otn-pub/java/jdk/8u131-b11/ D54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-windows-x64.exe
After Tomcat is unpacked, copy all files to C:\tomcat\ (new without directory)
Environment variable configuration:
Java Environment variables:
Java_home:c:\program files\java\jdk1.8.0_131(end not sealed)
Path:%java_home%\bin;%java_home%\jre\bin
CLASSPATH:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar
Tomcat Environment variables:
Catalina_base:c:\tomcat
Catalina_home:c:\tomcat
Open cmd input: Java or java-version test Java environment;
Open cmd into the c:\tomcat\bin\ directory, run Services.bat install
C:\tomcat\bin>service.bat Install
Installing the service ' Tomcat8 ' ...
Using catalina_home: "C:\tomcat"
Using catalina_base: "C:\tomcat"
Using java_home: "C:\Program files\java\jdk1.8.0_131"
Using jre_home: "C:\Program files\java\jdk1.8.0_131\jre"
Using JVM: "C:\Program FILES\JAVA\JDK1.8.0_131\JRE\BIN\SERVER\JVM.D
ll
The service ' TOMCAT8 ' has been installed.
Run the directory under Startup.bat
Open: http://localhost:8080 (under normal circumstances, you should be able to see the cat)
New User: ( tomcat must be stopped for user changes)
Modify the C:\tomcat\conf\tomcat-users.xml file to add the following code before the last </tomcat-users>:
<role rolename= "Manager-gui"/>
<user username= "Tomcat" password= "1234" roles= "Manager-gui"/>
(Adding a Manager-gui role and adding a user tomcat password is: 1234)
Run startup startup Tomcat.
tomcat8+jdk1.8.0_131 Environment Building and adding users (win764 bit)