六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 263|回复: 0

REDHAT6下编译安装InfoBright

[复制链接]

升级  86%

11

主题

11

主题

11

主题

童生

Rank: 1

积分
43
 楼主| 发表于 2013-2-7 11:37:08 | 显示全部楼层 |阅读模式
infobright安装:
需要boost 1.42 或更高版本,redhat自带的boost是1.41版本,所以需要下载个新的编译安装一下:
下载安装boost:http://www.boost.org/users/download/
cd boost_1_45_0./bootstrap.sh --prefix=/usr/local/boost_1_45_0./bjam installexport BOOST_ROOT=/usr/local/boost_1_45_0echo "/usr/local/boost_1_45_0/lib" > /etc/ld.so.conf.d/boost-x86_64.confldconfig

如果没有mysql用户和组,需要加入:
shell> groupadd mysqlshell> useradd -g mysql mysql

# 编译安装 MySQL and Infobright server and client tools
shell> cd infobright-versionshell> make EDITION=community releaseshell> make EDITION=community install-release# Setting config file and brighthouse.ini file.shell> cp src/build/pkgmt/my-ib.cnf /etc/shell> cd /usr/local/infobrightshell> bin/mysql_install_db --defaults-file=/etc/my-ib.cnf --user=mysqlshell> chown -R root  .shell> chown -R mysql var cacheshell> chgrp -R mysql .

安装启动脚本:
shell> cp share/mysql/mysql.server /etc/init.d/mysqld-ibshell> vi /etc/init.d/mysqld-ib
找到以下两行:
conf=@BH_CONF@user=@BH_USER@
修改为:
conf=/etc/mysql-ib.cnfuser=mysql

启动:
shell> /etc/init.d/mysql-ib start

客户端连接:
shell> /usr/local/infobright/bin/mysql --default-file=/etc/my-ib.cnf -uroot

加入开机启动:
shell> chkconfig --add mysqld-ib
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表