CentOS 6.5 Build JSP Runtime Environment

Source: Internet
Author: User
Tags mysql command line

First, install Nginx

Ii. Installation of JDK

Third, install Tomcat

Iv. installation of MySQL

1. Installation

Yum install-y mysql-server MySQL mysql-devel

2. Start the service

[[email protected] bin]# service mysqld startinitializing mysql database:installing mysql system tables ... Okfilling Help Tables ... OKto start mysqld at boot time has to copysupport-files/mysql.server to the right place for your systemplease Remembe R to SET A PASSWORD for the MySQL root USER! To does, start the server, then issue the following commands:/usr/bin/mysqladmin-u root password ' new-password '/usr/bin/ Mysqladmin-u root-h iz94xzz4gddz password ' new-password ' Alternatively you can run:/usr/bin/mysql_secure_  Installationwhich would also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly recommended for production servers. See the Manual for more instructions. You can start the MySQL daemon with:cd/usr; /usr/bin/mysqld_safe &you can test the MySQL daemon with mysql-test-run.plcd/usr/mysql-test;                                  Perl mysql-test-run.plplease Report No problems with The/usr/bin/mysqlbug script!                         [OK] Starting mysqld: [OK]

See the tips above:

/usr/bin/mysqladmin-u root password ' new-password '/usr/bin/mysqladmin-u root-h iz94xzz4gddz password ' new-password '

So we reset the password for the root user of MySQL:

/usr/bin/mysqladmin-u root password ' new-password '

You can log in by MySQL command line at this time.

CentOS 6.5 Build JSP Runtime Environment

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.