考试首页 | 考试用书 | 培训课程 | 模拟考场 | 考试论坛  
  当前位置:Linux认证 > 综合辅导 > 文章内容
  

LAMP源码环境搭建WEB服务器Linux+Apache+MySQL+PHP

来源:Linux社区 [ 2016年1月19日 ] 【

2.安装mysql cmake

[root@lly ~]# tar zxvf mysql-5.6.10.tar.gz -C /usr/local/src/

[root@lly ~]# cd /usr/local/src/mysql-5.6.10/

[root@lly mysql-5.6.10]# less INSTALL-SOURCE

mysql的使用说明

wps_clip_image-3494安装mysql的时候需要用到cmake工具

安装cmake

[root@lly ~]# tar -zxvf cmake-2.8.10.2.tar.gz -C /usr/local/src/

[root@lly ~]# cd /usr/local/src/cmake-2.8.10.2/

[root@lly cmake-2.8.10.2]# ./configure --prefix=/usr/local/cmake

[root@lly cmake-2.8.10.2]# make && make install

Waiting.......................

[root@lly cmake-2.8.10.2]# cd /usr/local/cmake/

为了日后能快速访问cmake下的bin,把cmke下的bin添加路径

[root@lly cmake]# vim /etc/profile

wps_clip_image-3520

注意:只有下次进入之后路径才会添加成功

[root@lly ~]# cd /usr/local/src/mysql-5.6.10/

86:36

[root@lly mysql-5.6.10]# cmake .

[root@lly mysql-5.6.10]# make && make install

Please waiting for a long time。。。。。。。。。。。。。。。。。。。。。。。。。。

[root@lly ~]# cd /usr/local/src/mysql-5.6.10/

[root@lly mysql-5.6.10]# less INSTALL-SOURCE

Mysql安装说明中的配置的步骤

wps_clip_image-7154

[root@lly mysql-5.6.10]# cd /usr/local/mysql/

创建帐号信息

[root@lly mysql]# groupadd mysql

[root@lly mysql]# useradd -r -g mysql mysql

[root@lly mysql]# chown -R mysql .

进行初始化

[root@lly mysql]# scripts/mysql_install_db --user=mysql

[root@lly mysql]# chown -R root .

[root@lly mysql]# chown -R mysql data

[root@lly mysql]# cd support-files/

[root@lly support-files]# cp my-default.cnf /etc/my.cnf

[root@lly support-files]# cp mysql.server /etc/init.d/mysqld

[root@lly support-files]# chmod a+x /etc/init.d/mysqld

[root@lly support-files]# service mysqld start

Starting MySQL..... [ OK ]

本文纠错】【告诉好友】【打印此文】【返回顶部
将考试网添加到收藏夹 | 每次上网自动访问考试网 | 复制本页地址,传给QQ/MSN上的好友 | 申请链接 | 意见留言 TOP
关于本站  网站声明  广告服务  联系方式  站内导航  考试论坛
Copyright © 2007-2013 中华考试网(Examw.com) All Rights Reserved