REDHAT6下編譯安裝InfoBright - ㊣Inosin℃ - ITeye技術網站
REDHAT6下編譯安裝InfoBright
MySQLRedHat指令碼Cacheinfobright安裝:
需要boost 1.42 或更高版本,redhat內建的boost是1.41版本,所以需要下載個新的編譯安裝一下:
下載安裝boost:http://www.boost.org/users/download/ 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
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代碼
- shell> groupadd mysql
- shell> useradd -g mysql mysql
shell> groupadd mysqlshell> useradd -g mysql mysql
# 編譯安裝 MySQL and Infobright server and client tools 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 .
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代碼
- shell> cp share/mysql/mysql.server /etc/init.d/mysqld-ib
- 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代碼
- conf=@BH_CONF@
- user=@BH_USER@
conf=@BH_CONF@user=@BH_USER@
修改為: Shell代碼
- conf=/etc/mysql-ib.cnf
- 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