tomcat8+jdk1.8.0_131 Environment Building and adding users (win764 bit)

Source: Internet
Author: User

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)

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.