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