lnmp-编译安装mysql

Posted augustyang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了lnmp-编译安装mysql相关的知识,希望对你有一定的参考价值。

[[email protected] ~]# yum install  ncurses-devel libaio-devel -y

[[email protected] cmake-3.6.1]# tar -xf cmake-3.6.1.tar.gz
[[email protected] cmake-3.6.1]# cd cmake-3.6.1
[[email protected] cmake-3.6.1]# gmake
[[email protected] cmake-3.6.1]# gmake install
[[email protected] cmake-3.6.1]# which cmake
/usr/local/bin/cmake


[[email protected] tools]# cd mysql-5.5.49
[[email protected] mysql-5.5.49]# useradd -s /sbin/nologin -M mysql
[[email protected] mysql-5.5.49]# id mysql
uid=500(mysql) gid=500(mysql) groups=500(mysql)

[[email protected] mysql-5.5.49]# ./configure
cmake . -DCMAKE_INSTALL_PREFIX=/application/mysql-5.5.49 -DMYSQL_DATADIR=/application/mysql-5.5.49/data -DMYSQL_UNIX_ADDR=/application/mysql-5.5.49/tmp/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=gbk,gb2312,utf8,ascii -DENABLED_LOCAL_INFILE=ON -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1-DWITHOUT_PARTITION_STORAGE_ENGINE=1 -DWITH_FAST_MUTEXES=1 -DWITH_ZLIB=bundled -DENABLED_LOCAL_INFILE=1 -DWITH_READLINE=1 -DWITH_EMBEDDED_SERVER=1 -DWITH_DEBUG=0
[[email protected] mysql-5.5.49]# make 
[[email protected] mysql-5.5.49]# make install 

 





以上是关于lnmp-编译安装mysql的主要内容,如果未能解决你的问题,请参考以下文章

LNMP架构搭建Discuz论坛(实战!)

LNMP部署及应用理论及实操

lnmp之mysql安装

web服务之源码编译安装 LNMP

lnmp-编译安装mysql

LNMP搭建1:PHP编译安装