Chapter 1 prerequisites 11 operating system CentOS664X12 clear dependent software rp Chapter 1 prerequisites 1.1 Operating system
CentOS 6 64X
1.2 clear dependent software
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
Use the yum erase Package1 Package2... command to delete
1.3 Disable SE Linux
1. log on as root.
2. run
/Bin/echo 0>/selinux/enforce
3. execute
/Bin/sed-I. bak-e's/^ SELINUX =. */SELINUX = disabled/g'/etc/selinux/config
1.4 configure the firewall
Disable firewall before installation
$ Service iptables stop
$ Chkconfig iptables off
$ Service ip6tables stop
$ Chkconfig ip6tables off
1.5 configure the static IP network
1. configure/etc/sysconfig/network-scripts/ifcfg-eth0 as follows
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. configure/etc/sysconfig/network
NETWORKING = yes
HOSTNAME = localhost. localdomain
3. configure/etc/resolv. conf
Search leador.cn
Nameserver 8.8.8.8
4. restart
Service network restart
1.6 install Zenoss Respostory
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
Chapter 2 install software 2.1 Java
1. wget-O jre-6u31-linux-x64-rpm.bin? BundleId = 59622.
2. chmod + x./jre-6u31-linux-x64-rpm.bin
3 ../jre-6u31-linux-x64-rpm.bin
4. add the following snippet to vim/etc/profile:
ExportJAVA_HOME =/usr/java/default/bin
5. java-version
2.2 MySql
1. download from 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: // response
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. run the following command to install
Yum-y -- nogpgcheck localinstall MySQL *
3. create and edit the configuration file/etc/my. cnf as follows:
[Mysqld]
Max_allowed_packet = 16 M
Innodb_buffer_pool_size = 256 M
Innodb_additional_mem_pool_size = 20 M
4. run the following command to run Mysql in the background and run the command at startup.
Service mysql start
Chkconfig -- add mysql
Chkconfig -- level 2345 mysql on
5. configure an account for zenoss
Mysqladmin-u root password''
Mysqladmin-u root-h localhost password''
2.3 install Zenoss Core2.3.1 install rpm
RHEL/CentOS 6: yum-y -- nogpgcheck localinstall zenoss_core-4.2.4-1897.el6.x86_64.rpm
2.3.2 services that must be started when the system is started
For svc inmemcached rabbitmq-server snmpd; do chkconfig $ svc on; service $ svc start; done
If rabbitmq cannot be started, add the following content to the/etc/hosts file:
127.0.0.1 [host name]
2.3.3 initialize zenup
The core version of GCloud Monitor includes a recommended patch set (RPS) to fix detected problems. Install and manage the patch set. The core ZenUp patch management tool of GCloud Monitor must be installed and started before Zenoss Core initialization.
Download related resources from http://wiki.zenoss.org/download/core/zenup/
1. execute yum -- nogpgcheck localinstallzenup-1.0.0.131-1.el6.x86_64.rpm
2. switch to the zenoss user
3. use zenup to register the zenoss instance to the pristine file and run
Zenup init zenoss_core-4.2.4.el6-pristine.tgz $ ZENHOME
Try to put the zenoss_core-4.2.4.el6-pristine.tgz file in the zenoss user directory, otherwise it will report that the file cannot be found
4. execute zenup status. if the previous steps are successful, the following output should appear:
Product: zenoss-core-4.2.4 (id = zenoss-core-4.2.4)
Home:/opt/zenoss
Revision: 0
Updated On: timestamp
2.3.4 start zenoss and install RPS (recommended patch set)
1. use root to log on to the system
2. run service zenoss start
3. execute service zenoss stop
4. switch to the zenoss user
5. execute the zenup install zenoss_core-4.2.4-SP71.zup
6. execute zenoss start
2.4 access the system
After successful installation, go to the system at the following URL
Http://XX.XX.XX.XX: 8080
Chapter 3 system upgrade 3.1 update the latest RPS
1. use the latest zup file
2. switch to the zenoss user
3. run the zenup install -- dry-run zenoss_core-4.2.X-SPXXX.zup to test the zup file
4. run the zenup installzenoss_core-4.2.X-SPXXX.zup to officially upgrade
5. execute zenup status
Chapter 4 uninstall Zenoss
Yum erase zenoss-4.2.4-1897.el6.x86_64zenossdeps-4.2.x-1.el6.noarch