今天在CENTOS 6.6 實作 參考多篇文章和原廠安裝手冊 終於實作成功
安裝前下關掉selinux和iptables
service iptables stop
chkconfig iptables off
service ip6tables stop
chkconfig ip6tables off
/bin/sed -i.bak -e ‘s/^SELINUX=.*/SELINUX=disabled/g‘ /etc/selinux/config
清理掉相關的包
rpm -qa | grep -i matahari |xargs rpm -e --nodeps
rpm -qa | grep -i qpid |xargs rpm -e --nodeps
rpm -qa | grep -i mysql |xargs rpm -e --nodeps
rm -rf /var/lib/mysql
安裝jre
rpm -qa | egrep -i ‘(jdk|jre|java)‘
yum -y remove $(rpm -qa | egrep -i ‘(jdk|jre|java)‘)
chmod +x ./jre-6u45-linux-x64-rpm.bin
./jre-6u45-linux-x64-rpm.bin
echo "export JAVA_HOME=/usr/java/default" >> /etc/profile
source /etc/profile
java -version
Install the Zenoss Dependencies Repository
wget http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el6.noarch.rpm
rpm -Uvh zenossdeps-4.2.x-1.el6.noarch.rpm
mysql只有支援5.5.25以上 所以要移除原先舊版
yum install rabbitmq-server memcached snmpd -y
/etc/init.d/rabbitmq-server start
rabbitmqctl add_user zenoss zenoss
rabbitmqctl add_vhost /zenoss
rabbitmqctl set_permissions -p /zenoss zenoss ‘.*‘ ‘.*‘ ‘.*‘
yum -y --nogpgcheck localinstall MySQL*
vi /etc/my.cnf
[mysqld]
max_allowed_packet=16M
innodb_buffer_pool_size=256M
innodb_additional_mem_pool_size=20M
chkconfig --add mysql
chkconfig --level 2345 mysql on
service mysql start
mysqladmin -u root password ‘‘
mysqladmin -u root -h localhost password ‘‘
yum -y --nogpgcheck localinstall zenoss_core-4.2.5-2108.el6.x86_64.rpm
for svc in memcached snmpd; do chkconfig $svc on; service $svc start; done
yum -y --nogpgcheck localinstall zenup-1.1.0.267.869d67a-1.el6.x86_64.rpm
su - zenoss
zenup init zenoss_core-4.2.5-2108.el6-pristine-SP203.tgz $ZENHOME
zenup status
exit
service zenoss start
收入全部用到的整合包
jre-6u45-linux-i586-rpm.bin
zenoss_core-4.2.5-2108.el6.x86_64.rpm
zenoss_core-4.2.5-2108.el6-pristine-SP203.tgz
zenossdeps-4.2.x-1.el6.noarch.rpm
zenup-1.1.0.267.869d67a-1.el6.x86_64.rpm
MySQL-client-5.5.25a-1.el6.x86_64.rpm
MySQL-server-5.5.25a-1.el6.x86_64.rpm
MySQL-shared-5.5.25a-1.el6.x86_64.rpm
MySQL-shared-compat-5.5.25a-1.el6.x86_64.rpm
放到
http://down.51cto.com/901310
本文出自 “TopKevin” 博客,请务必保留此出处http://topkevin.blog.51cto.com/901310/1637837
原文地址:http://topkevin.blog.51cto.com/901310/1637837