Linux install Tomcat and MySQL

Source: Internet
Author: User
Tags gpg mysql version yum repolist

Linux install Tomcat download Linux version tomcat put it in usr/local and unzipTAR-ZXVF apache-tomcat-7.0.73.tar.gzThen rename it to Tomcat and then we'll use Tomcat in the same Windows environment, startingSh./usr/local/tomcat/bin/startup.shStop TomcatSh./usr/local/tomcat/bin/shutdown.sh"Note that shutting down the firewall or allowing this port in the configuration file" Linux installs MySQL step-by-turn steps:1 Installing LibaioMySQL relies on Libaio so we first install LibaioYum Search LibaioYum Install Libaioinstall this service. 2 Check if MySQL is installedYum List installed | grep mysqlIf you have one, uninstall MySQL first.Yum-have remove mysql-libs.x86_64Download MySQL Yum respositorywgethttp://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmIf there is no wget command, first install wget,Yum Install wgetYum Localinstall mysql-community-release-el7-5.noarch.rpmYum repolist enabled | grep "Mysql.*-community.*"Yum repolist all | grep mysqlView current MySQL boot versionYum repolist enabled | grep mysqlModify MySQL VersionYum-config-manager--disable mysql56-communityYum-config-manager--enable MYSQL57-COMMUNITY-DMR/etc/yum.repos.d/mysql-community.repo # Enable to use MySQL 5.6[mysql56-community]name=mysql 5.6 community serverbaseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/enabled=1gpgcheck=1gpgkey=file:/etc /pki/rpm-gpg/rpm-gpg-key-mysql installing MySQLYum Install Mysql-community-serverRpm-qi mysql-community-server.x86_64 0:5.6.24-3.el7Whereis MySQLsystemctl start mysqld starting MySQLsystemctl Stop mysqldsystemctl Status MysqldInstallation is successful! Create an account SA for external connections and provide him with all the privileges.

Linux install Tomcat and MySQL

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.