安装InfoBright

本文详细介绍了如何在红帽系统上安装并配置Boost 1.42版本,以及如何下载、编译和安装MySQL和Infobright服务器与客户端工具。包括了设置MySQL用户和组、编译安装过程、配置文件操作、启动脚本修改及安装启动等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

需要boost 1.42 或更高版本,redhat自带的boost是1.41版本,所以需要下载个新的编译安装一下: 
下载安装boost:http://www.boost.org/users/download/ 
Shell代码  收藏代码
  1. cd boost_1_42_0  
  2. ./bootstrap.sh --prefix=/usr/local/boost_1_42_0  
  3. ./bjam install  
  4. export BOOST_ROOT=/usr/local/boost_1_42_0  
  5. vim /etc/profile
    添加 export LD_LIBRARY_PATH=/usr/local/boost_1_42_0/lib:$LD_LIBRARY_PATH
    source /etc/profile
    ldconfig 或者 
    /sbin/ldconfig -v



如果没有mysql用户和组,需要加入: 
Shell代码  收藏代码
  1. shell> groupadd mysql  
  2. shell> useradd -g mysql mysql  


# 编译安装 MySQL and Infobright server and client tools 
Shell代码  收藏代码
  1. shell> cd infobright-version  
  2. shell> make EDITION=community release  
  3. shell> make EDITION=community install-release  
  4.   
  5. # Setting config file and brighthouse.ini file.  
  6. shell> cp src/build/pkgmt/my-ib.cnf /etc/  
  7.   
  8. shell> cd /usr/local/infobright  
  9. shell> /usr/local/infobright/bin/mysql_install_db --basedir=/usr/local/infobright --datadir=/data/infobright/data --user=mysql --defaults-file=/etc/my-ib.cnf 
  10. shell> chown -R root  .  
  11. shell> chown -R mysql var cache  
  12. shell> chgrp -R mysql .  


安装启动脚本: 
Shell代码  收藏代码
  1. shell> cp share/mysql/mysql.server /etc/init.d/mysqld-ib  
  2. shell> vi /etc/init.d/mysqld-ib  

找到以下两行: 
Shell代码  收藏代码
  1. conf=@BH_CONF@  
  2. user=@BH_USER@  

修改为: 
Shell代码  收藏代码
  1. conf=/etc/mysql-ib.cnf  
  2. user=mysql  


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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值