zoukankan      html  css  js  c++  java
  • infobright 编译安装

    infobright安装: 
    需要boost 1.42 或更高版本,redhat自带的boost是1.41版本,所以需要下载个新的编译安装一下: 
    下载安装boost:http://www.boost.org/users/download/ 

    Shell代码  收藏代码
    1. cd boost_1_45_0  
    2. ./bootstrap.sh --prefix=/usr/local/boost_1_45_0  
    3. ./bjam install  
    4. export BOOST_ROOT=/usr/local/boost_1_45_0  
    5. echo "/usr/local/boost_1_45_0/lib" > /etc/ld.so.conf.d/boost-x86_64.conf  
    6. ldconfig  



    如果没有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> bin/mysql_install_db --defaults-file=/etc/my-ib.cnf --user=mysql  
    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 

    加入开机启动: 
    shell> chkconfig --add mysqld-ib 

  • 相关阅读:
    Ansible inventory(主机清单的静态文件)
    Ansible的安装和命令的介绍
    ansible的介绍
    python笔记---day4
    zabbix 监控 linux的防火墙是否运行
    python笔记---day3
    python笔记---day2
    Pytorch_第十篇_我对卷积神经网络(CNN)的理解(包含例子)
    Pytorch_第九篇_神经网络中常用的激活函数
    Pytorch_第八篇_深度学习 (DeepLearning) 基础 [4]---欠拟合、过拟合与正则化
  • 原文地址:https://www.cnblogs.com/ylqmf/p/2308939.html
Copyright © 2011-2022 走看看