infobright系列一:源码安装infobright

时间:2023-12-12 09:54:44

1:下载infobright

http://www.infobright.org/downloads/ice/infobright-4.0.7-0-src-ice.tar.gz

2:查看环境

rpm -q gcc
rpm -q autoconf  
rpm -q boost #要求1.42以上版本

3.如果有缺少则进行安装

autoconf
下载后解压
./configure --prefix=/usr
make
make install

4.编译 安装
groupadd mysql
useradd -g mysql mysql
cd infobright-version
make EDITION=community release
make EDITION=community install-release

5.配置环境
cp src/build/pkgmt/my-ib.cnf /etc/
cd /usr/local/infobright
bin/mysql_install_db –defaults-file=/etc/my-ib.cnf –user=mysql
chown -R root .
chown -R mysql var cache
chgrp -R mysql .
安装启动脚本:
cp share/mysql/mysql.server /etc/init.d/mysqld-ib
vi /etc/init.d/mysqld-ib
找到以下两行:
conf=@BH_CONF@
user=@BH_USER@
修改为:
Shell代码
conf=/etc/my-ib.cnf
user=mysql
加入开机启动:
shell> chkconfig –add mysqld-ib

6.启动
/etc/init.d/mysqld-ib start