Use Yum to install Tomcat MySQL in Centos7

Source: Internet
Author: User
Tags mysql in
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

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.