Install MySQL, tomcat, httpd with Yum under Linux

Source: Internet
Author: User
Tags mysql client

Install MySQL using yum under Linux

 1, installation view has been installed:           yum list installed mysql*           rpm-qa | grep mysql*  See if there is an installation package:           yum list mysql*  Install MySQL client:           yum install mysql  mysql server side:           yum Install mysql-server            yum Install mysql-devel  www.2cto.com  2, start && stop   Database Character Set           mysql configuration file/etc/ MY.CNF join default-character-set=utf8  to start the MySQL service:           service mysqld Start or/etc/init.d/mysqld start boot:           chkconfig-add mysqld, check if boot boot settings are successful chkconfig--list | grep mysql*           mysqld              0: Off    1: Turn off    2: Enable    3: Enable    4: Enable    5: Enable    6: Turn off Stop:           Service mysqld stop server directly shuts down after MySQL does not start the problem: Chown-r mysql:mysql/var/lib/mysql/etc/rc.d/init.d/mysqld start2, login   Create root administrator:           mysqladmin-u root password 123456   www.2cto.com   Login:           mysql-u root-p Enter the password. Forgot password:           service mysqld stop            mysqld_safe--user=root--skip-grant-tables            mysql-u root           &nBsp;use mysql           update User Set Password=password (" New_pass ") where user=" root ";            flush privileges;   3, remote access   Open firewall port number MySQL Add permission: The user table in the MySQL library adds a record of host "%" and user as "root". 4. Several important catalogs of Linux mysql   www.2cto.com   database directory           /var/lib/mysql/configuration file          /usr/share/ MySQL (mysql.server command and configuration file) related commands          /usr/bin (mysqladmin Mysqldump and other commands) startup script          /etc/rc.d/init.d/(startup script file mysql directory) II. Install Tomcat under Linux using YumYum-y Install Tomcat6 Tomcat6-webapps tomcat6-admin-webapps tomcat6-docs-webapp Tomcat6-javadoc if reported error: No package TOMCAT6 available executes: Yum search tomcat view Yum has tomcat which version of the package then executes the Installyum-y install TOMCAT5 Tomcat5-webapps Tomcat5-admin-webapps Tomcat5-docs-webapp tomcat5-javadoc View Tomcat installation path command: RPM-QL TOMCAT5 | Cat-ntomcat start and Close command: Service tomcat5 startservice tomcat5 stopservice tomcat5 Restart Iii. Installing the JDK using Yum under LinuxFirst see if you have installed Javayum-y list java* and then executed the command installation: Yum-y install java-1.6.0-openjdk* View installation version java-version Iv. installing httpd with Yum under LinuxYum Install Httpd-y

Install MySQL, tomcat, httpd with Yum under Linux

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.