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:

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 use of the Yum installation in CentOS, The Tomcat-related directories have been signed to the/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 dosage4drwxr-xr-x. 2 root root 4096 July 11 19:20binlrwxrwxrwx.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 19:20 logs-/var/log/tomcat6lrwxrwxrwx.1 root root 23 July 19:20 Temp-/var/cache/tomcat6/templrwxrwxrwx.1 root root 24 July 19:20 WebApps-/var/lib/tomcat6/webappslrwxrwxrwx.1 root root 23 July 19:20 work-/var/cache/tomcat6/Work[[email protected] tomcat6]#

Start, stop Tomcat

Service Tomcat6 Start
Service Tomcat6 Stop

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.