REDHAT6 boost安裝

來源:互聯網
上載者:User

REDHAT6下編譯安裝InfoBright - ㊣Inosin℃ - ITeye技術網站

REDHAT6下編譯安裝InfoBright
    部落格分類:
  • Mysql&Percona
MySQLRedHat指令碼Cacheinfobright安裝:
需要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  
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代碼  

  1. shell> groupadd mysql  
  2. shell> useradd -g mysql mysql  
shell> groupadd mysqlshell> 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> 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代碼  

  1. shell> cp share/mysql/mysql.server /etc/init.d/mysqld-ib  
  2. shell> vi /etc/init.d/mysqld-ib  
shell> cp share/mysql/mysql.server /etc/init.d/mysqld-ibshell> vi /etc/init.d/mysqld-ib

找到以下兩行: Shell代碼  

  1. conf=@BH_CONF@  
  2. user=@BH_USER@  
conf=@BH_CONF@user=@BH_USER@

修改為: Shell代碼  

  1. conf=/etc/mysql-ib.cnf  
  2. user=mysql  
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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.