REDHAT6下编译安装InfoBright

infobright安装:
需要boost 1.42 或更高版本,redhat自带的boost是1.41版本,所以需要下载个新的编译安装一下:
下载安装boost:http://www.boost.org/users/download/
[code="shell"]
cd boost_1_45_0
./bootstrap.sh --prefix=/usr/local/boost_1_45_0
./bjam install
export BOOST_ROOT=/usr/local/boost_1_45_0
echo "/usr/local/boost_1_45_0/lib" > /etc/ld.so.conf.d/boost-x86_64.conf
ldconfig
[/code]


如果没有mysql用户和组,需要加入:
[code="shell"]
shell> groupadd mysql
shell> useradd -g mysql mysql
[/code]


# 编译安装 MySQL and Infobright server and client tools
[code="shell"]
shell> cd infobright-version
shell> make EDITION=community release
shell> 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/infobright
shell> bin/mysql_install_db --defaults-file=/etc/my-ib.cnf --user=mysql
shell> chown -R root  .
shell> chown -R mysql var cache
shell> chgrp -R mysql .
[/code]


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


启动:
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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值