Compile and install infobright-㊣ inosin ℃-iteye Technology website in redhat6
Compile and install infobright in redhat6
Blog type:
- MySQL & percona
Install the mysqlredhat script cacheinfobright:
Boost 1.42 or a later version is required, and boost of RedHat is 1.41, so you need to download a new compilation and installation:
Download and install boost: http://www.boost.org/users/download/ Shell Code
- CD boost_000045_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_000045_0/lib">/Etc/lD. So. conf. d/boost-x86_64.conf
- Ldconfig
CD boost_000045_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
If there are no mysql users and groups, add the following shell code:
- Shell> groupadd MySQL
- Shell> useradd-G MySQL
Shell> groupadd mysqlshell> useradd-G MySQL
# Compile and install MySQL and infobright server and client tools shell code
-
- 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/pkgreenwich/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.
Install the Startup Script: shell code
- Shell> CP share/MySQL. Server/etc/init. d/mysqld-IB
- Shell> VI/etc/init. d/mysqld-IB
Shell> CP share/MySQL. Server/etc/init. d/mysqld-ibshell> VI/etc/init. d/mysqld-IB
Find the following two lines: shell code
- Conf = @ bh_conf @
- User = @ bh_user @
Conf = @ bh_conf @ user = @ bh_user @
Changed to: shell code
- Conf =/etc/mysql-ib.cnf
- User = MySQL
Conf =/etc/mysql-ib.cnfuser = MySQL
Start:
Shell>/etc/init. d/MySQL-Ib start
Client connection:
Shell>/usr/local/infobright/bin/MySQL-default-file =/etc/my-ib.cnf-uroot
Add boot start:
Shell> chkconfig -- add mysqld-IB