Source installation Nginx, MySQL considerations

Source: Internet
Author: User
Tags openssl

Operating system: CentOS release 6.9 (Final)

Minimal installation of the server: Centos-6.8-x86_64-minimal.iso

Installing open-source software such as Nginx and MySQL requires the installation of a common or specially supported package or library.

When installing Nginx software, it is often necessary to install the following dependent packages or libraries:

#yum Install pcre pcre-devel OpenSSL openssl-devel gcc wget-y

When installing MySQL software, you often need to install the following dependent packages or libraries:

#yum install gcc gcc-c++ cmake ncurses-devel git-y

Common MySQL installation Configuration error resolution method:

Question 1:

[[email protected] bin]# MySQL

-bash:mysql:command not found

[Email protected] bin]# ln-s/usr/local/mysql/bin/mysql/usr/bin

Question 2:

However, the following command can be used to attempt the installation:

#make Clean

#rm CMakeCache.txt

Compile again, then.

Question 3:

[[Email protected] ~]# service mysqld start

starting MySQL ... error! The server quit without updating PID file (/application/mysql/data/localhost.localdomain.pid). #原因是没有成功初始化数据库.

Question 4

A similar command could not be found:-bash:mysql_install_db:command not found

In general, there is no relevant library installed, or the path is not written.

[Email protected] scripts]#/mysql_install_db--basedir=/application/mysql--datadir=/application/mysql/data-- User=mysql #正确的方式


This article is from the "sky9890" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1932903

Source installation Nginx, MySQL considerations

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.