Install Tomcat using Yum in Linux CentOS

Source: Internet
Author: User

Deploying Java-developed Web applications under Linux, typically using the TOMACT+JRE environment (Apache is not required), can be installed under Rhel and CentOS with the Yum online automatic installation method, as follows:

You can see the version of Tomcat on the server first

Yum Search Tomcat

Installation commands

Yum Install Tomcat6

Executing the above command will automatically install Tomcat and the associated JDK

The following end installs the system location and detects the installation situation

Installation location/ETC/TOMCAT6 main program/software store WebApp location/var/lib/tomcat6/webapps after installing with Yum on CentOS, the Tomcat-related directories have been linked to/usr/share/ Tomcat6 directory, including WebApps, which is convenient for us to configure Management/usr/share/tomcat6 logging location/var/log/tomcat6

Note: To view all Tomcat scatter requests below the directory view

/usr/share/tomcat6

[[email protected] tomcat6]# Pwd/usr/share/tomcat6[[email protected] tomcat6]# ll total dosage 4drwxr-xr-x. 2 root root   4096 July  19:20 binlrwxrwxrwx 1 root Tomcat   12 July  19:20 conf-/etc/tomcat6lrwxrwxrwx . 1 root root     23 July  19:20 Lib-/usr/share/java/tomcat6lrwxrwxrwx. 1 root root     16 July one  19:20 logs-& Gt /var/log/tomcat6lrwxrwxrwx. 1 root root     23 July  19:20 Temp-/var/cache/tomcat6/templrwxrwxrwx. 1 root root     24 July  19:20 Web Apps,/var/lib/tomcat6/webappslrwxrwxrwx. 1 root root     23 July  

View all Tomcat installation directories

RPM-QL Tomcat6 | Cat-n

Start, stop, restart Tomcat

Service Tomcat6 Start
Service Tomcat6 Stop
Service TOMCAT5 Restart

Install Tomcat using Yum in Linux CentOS

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.