Installing Tomcat
Yum Install Tomcat
Answer y install tomcat at the confirmation prompt. This will install Tomcat 7 and its related items, such as Java, which will also create a tomcat user.
The most important tomcat files will be located in/usr/share/tomcat. If you already have, you want to run a tomcat application, you can put it in the/usr/share/tomcat/webapps directory, configure Tomcat, and restart the Tomcat service. But in this tutorial, we will install some additional packages to help you manage Tomcat applications and virtual hosts.
Let's quickly change the Java options that Tomcat uses at startup. Open the Tomcat configuration file:
Vi/usr/share/tomcat/conf/tomcat.conf
Add the following java_opts line to the file. Feel free to change the xmx and MaxPermSize values, which affect how much memory Tomcat uses:
/etc/default/tomcat7–java_opts
Java_opts= "-djava.security.egd=file:/dev/./urandom-djava.awt.headless=true-xmx512m-xx:maxpermsize=256m-xx:+ USECONCMARKSWEEPGC "
Save and exit.
Please note that the Tomcat service will not run.
Use Yum to install Tomcat MySQL in Centos7