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