CentOS 6 64X
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
通过yum erase Package1 Package2 ...命令进行删除
1.以root登录.
2. 执行
/bin/echo 0 > /selinux/enforce
3. 执行
/bin/sed -i.bak-e 's/^SELINUX=.*/SELINUX=disabled/g'/etc/selinux/config
安装之前关闭防火墙
$service iptables stop
$chkconfig iptables off
$service ip6tables stop
$chkconfig ip6tables off
1. 配置 /etc/sysconfig/network-scripts/ifcfg-eth0 如下
DEVICE=eth0
MACADDR=8E:44:07:D4:E8:2F
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.40.123
NETMASK=255.255.255.0
GATEWAY=192.168.40.1
2. 配置/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
3. 配置/etc/resolv.conf
search leador.cn
nameserver 8.8.8.8
4. 重启
service network restart
RHEL/CentOS5:rpm -Uvh http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el5.noarch.rpm
RHEL/CentOS6:rpm -Uvh http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el6.noarch.rpm
1. wget -O jre-6u31-linux-x64-rpm.bin http://javadl.sun.com/webapps/download/AutoDL?BundleId=59622
2. chmod +x ./jre-6u31-linux-x64-rpm.bin
3. ./jre-6u31-linux-x64-rpm.bin
4. vim /etc/profile 添加如下片段:
exportJAVA_HOME=/usr/java/default/bin
5. java -version
1. 从http://dev.mysql.com/downloads/mysql 下载
wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-server-5.5.28-1.el6.x86_64.rpm
wgethttp://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-shared-compat-5.5.28-1.el6.x86_64.rpm
wgethttp://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-client-5.5.28-1.el6.x86_64.rpm
http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-shared-5.5.28-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
2. 通过以下命令安装
yum -y --nogpgcheck localinstall MySQL*
3. 创建并编辑配置文件/etc/my.cnf为以下内容
[mysqld]
max_allowed_packet=16M
innodb_buffer_pool_size=256M
innodb_additional_mem_pool_size=20M
4. 执行下面的命令让Mysql后台运行,并在启动时运行
service mysql start
chkconfig --add mysql
chkconfig --level 2345 mysql on
5. 为zenoss配置账户
mysqladmin -u root password ''
mysqladmin -u root -h localhost password ''
RHEL/CentOS 6:yum -y --nogpgcheck localinstall zenoss_core-4.2.4-1897.el6.x86_64.rpm
for svc inmemcached rabbitmq-server snmpd; do chkconfig $svc on; service $svc start; done
如果出现rabbitmq无法启动的情况,可以通过在/etc/hosts文件中加入:
127.0.0.1[主机名] 的方式来解决
GCloud Monitor的核心版本包括一个推荐补丁集(RPS)来修复发现的问题。安装和管理补丁集,GCloud Monitor的核心ZenUp补丁管理工具,必须在Zenoss的核心初始化之前,安装并启动ZenUp。
从http://wiki.zenoss.org/download/core/zenup/ 下载相关资源
1. 执行yum --nogpgcheck localinstallzenup-1.0.0.131-1.el6.x86_64.rpm
2. 切换到zenoss用户
3. 通过zenup把zenoss的实例注册到pristine文件,执行
zenup init zenoss_core-4.2.4.el6-pristine.tgz $ZENHOME
尽量把zenoss_core-4.2.4.el6-pristine.tgz文件放到zenoss用户的目录,否则会报找不到文件
4. 执行zenup status,如果前面的步骤都成功,应该会出现以下输出
Product: zenoss-core-4.2.4 (id = zenoss-core-4.2.4)
Home: /opt/zenoss
Revision: 0
Updated On: timestamp
1. 用root登录系统
2. 执行service zenoss start
3. 执行service zenoss stop
4. 切换到zenoss用户
5. 执行zenup install zenoss_core-4.2.4-SP71.zup
6. 执行zenoss start
安装成功后通过以下网址进入系统
http://XX.XX.XX.XX:8080
1. 使用最新的zup 文件
2. 切换到zenoss用户
3. 执行 zenup install--dry-run zenoss_core-4.2.X-SPXXX.zup 对zup文件进行测试
4. 执行zenup installzenoss_core-4.2.X-SPXXX.zup 正式升级
5. 执行zenup status
yum erase zenoss-4.2.4-1897.el6.x86_64zenossdeps-4.2.x-1.el6.noarch