Tomcat installation and configuration

Source: Internet
Author: User
Windows is used as an example. Other environments and so on. 1. Download and decompress https://tomcat.apache.org. TIPS: Do not download the installation file. 2. Configure the 2.1 environment variable. You can set the Java environment variable of Tomcat separately. Edit installdir \ bin \ setclasspath. bat, add: Set "java_home = D: \ Program Files (x86) at the top of whether jre_home is null (if not" % jre_home % "=) \ Java \ jdk1.7.0 _ 02 "(adjusted according to the local JDK path) 2.2 service port configuration edit installdir \ conf \ Server. XML, find <service name = "Catalina">
<Connector Port = "8080" protocol = "HTTP/1.1"
Connectiontimeout = "20000"
Redirectport = "8443"/> change 8080 to the port number you want to set. We recommend that you set the port number to be greater than 1024. 3.3 users and roles can be seen in installdir \ webapps \ Manager \ WEB-INF \ WEB. XML, which configures different permissions for Manager-Gui, Manager-script, and Manager-JMX. You can add a manager-GUI user. Edit installdir \ conf \ tomcat-users.xml and add a role and a user, for example, <role rolename = "Manager-Gui"/>
<User Username = "manager" Password = "manager" roles = "Manager-Gui"/>
Related Article

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.