Zabbix Step 1 : Install CentOS6.5 and Configration
[root@myzabbix Desktop]# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
epel/metalink | 5.8 kB 00:00
* base: mirrors.skyshe.cn
* epel: ftp.cuhk.edu.hk
* extras: mirrors.pubyun.com
* updates: mirrors.pubyun.com
epel | 4.4 kB 00:00
epel/primary_db | 6.3 MB 00:04
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package zabbix.x86_64 0:2.2.6-1.el6 will be installed
---> Package zabbix-agent.x86_64 0:2.2.6-1.el6 will be installed
---> Package zabbix-get.x86_64 0:2.2.6-1.el6 will be installed
---> Package zabbix-server.x86_64 0:2.2.6-1.el6 will be installed
--> Processing Dependency: zabbix-server-implementation = 2.2.6-1.el6 for package: zabbix-server-2.2.6-1.el6.x86_64
--> Processing Dependency: OpenIPMI-libs >= 2.0.14 for package: zabbix-server-2.2.6-1.el6.x86_64
--> Processing Dependency: iksemel for package: zabbix-server-2.2.6-1.el6.x86_64
--> Processing Dependency: unixODBC for package: zabbix-server-2.2.6-1.el6.x86_64
--> Processing Dependency: fping for package: zabbix-server-2.2.6-1.el6.x86_64
---> Package zabbix-web.noarch 0:2.2.6-1.el6 will be installed
--> Processing Dependency: php-gd for package: zabbix-web-2.2.6-1.el6.noarch
--> Processing Dependency: php-mbstring for package: zabbix-web-2.2.6-1.el6.noarch
--> Processing Dependency: php-bcmath for package: zabbix-web-2.2.6-1.el6.noarch
---> Package zabbix-web-mysql.noarch 0:2.2.6-1.el6 will be installed
--> Processing Dependency: php-mysql for package: zabbix-web-mysql-2.2.6-1.el6.noarch
--> Running transaction check
---> Package OpenIPMI-libs.x86_64 0:2.0.16-14.el6 will be installed
---> Package fping.x86_64 0:2.4b2-16.el6 will be installed
---> Package iksemel.x86_64 0:1.4-2.el6 will be installed
---> Package php-bcmath.x86_64 0:5.3.3-27.el6_5.2 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5.2 for package: php-bcmath-5.3.3-27.el6_5.2.x86_64
---> Package php-gd.x86_64 0:5.3.3-27.el6_5.2 will be installed
--> Processing Dependency: libXpm.so.4()(64bit) for package: php-gd-5.3.3-27.el6_5.2.x86_64
---> Package php-mbstring.x86_64 0:5.3.3-27.el6_5.2 will be installed
---> Package php-mysql.x86_64 0:5.3.3-27.el6_5.2 will be installed
---> Package unixODBC.x86_64 0:2.2.14-12.el6_3 will be installed
---> Package zabbix-server-mysql.x86_64 0:2.2.6-1.el6 will be installed
--> Running transaction check
---> Package libXpm.x86_64 0:3.5.10-2.el6 will be installed
---> Package php-common.x86_64 0:5.3.3-26.el6 will be updated
--> Processing Dependency: php-common(x86-64) = 5.3.3-26.el6 for package: php-cli-5.3.3-26.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-26.el6 for package: php-pdo-5.3.3-26.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-26.el6 for package: php-5.3.3-26.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-26.el6 for package: php-xml-5.3.3-26.el6.x86_64
---> Package php-common.x86_64 0:5.3.3-27.el6_5.2 will be an update
--> Running transaction check
---> Package php.x86_64 0:5.3.3-26.el6 will be updated
---> Package php.x86_64 0:5.3.3-27.el6_5.2 will be an update
---> Package php-cli.x86_64 0:5.3.3-26.el6 will be updated
---> Package php-cli.x86_64 0:5.3.3-27.el6_5.2 will be an update
---> Package php-pdo.x86_64 0:5.3.3-26.el6 will be updated
---> Package php-pdo.x86_64 0:5.3.3-27.el6_5.2 will be an update
---> Package php-xml.x86_64 0:5.3.3-26.el6 will be updated
---> Package php-xml.x86_64 0:5.3.3-27.el6_5.2 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
zabbix x86_64 2.2.6-1.el6 zabbix 146 k
zabbix-agent x86_64 2.2.6-1.el6 zabbix 156 k
zabbix-get x86_64 2.2.6-1.el6 zabbix 52 k
zabbix-server x86_64 2.2.6-1.el6 zabbix 20 k
zabbix-web noarch 2.2.6-1.el6 zabbix 4.5 M
zabbix-web-mysql noarch 2.2.6-1.el6 zabbix 13 k
Installing for dependencies:
OpenIPMI-libs x86_64 2.0.16-14.el6 base 473 k
fping x86_64 2.4b2-16.el6 zabbix-non-supported 31 k
iksemel x86_64 1.4-2.el6 epel 48 k
libXpm x86_64 3.5.10-2.el6 base 51 k
php-bcmath x86_64 5.3.3-27.el6_5.2 updates 36 k
php-gd x86_64 5.3.3-27.el6_5.2 updates 108 k
php-mbstring x86_64 5.3.3-27.el6_5.2 updates 457 k
php-mysql x86_64 5.3.3-27.el6_5.2 updates 83 k
unixODBC x86_64 2.2.14-12.el6_3 base 378 k
zabbix-server-mysql x86_64 2.2.6-1.el6 zabbix 1.5 M
Updating for dependencies:
php x86_64 5.3.3-27.el6_5.2 updates 1.1 M
php-cli x86_64 5.3.3-27.el6_5.2 updates 2.2 M
php-common x86_64 5.3.3-27.el6_5.2 updates 526 k
php-pdo x86_64 5.3.3-27.el6_5.2 updates 77 k
php-xml x86_64 5.3.3-27.el6_5.2 updates 105 k
Transaction Summary
================================================================================
Install 16 Package(s)
Upgrade 5 Package(s)
Total download size: 12 M
Downloading Packages:
(1/21): OpenIPMI-libs-2.0.16-14.el6.x86_64.rpm | 473 kB 00:00
(2/21): fping-2.4b2-16.el6.x86_64.rpm | 31 kB 00:02
(3/21): iksemel-1.4-2.el6.x86_64.rpm | 48 kB 00:00
(4/21): libXpm-3.5.10-2.el6.x86_64.rpm | 51 kB 00:00
(5/21): php-5.3.3-27.el6_5.2.x86_64.rpm | 1.1 MB 00:00
(6/21): php-bcmath-5.3.3-27.el6_5.2.x86_64.rpm | 36 kB 00:00
(7/21): php-cli-5.3.3-27.el6_5.2.x86_64.rpm | 2.2 MB 00:01
(8/21): php-common-5.3.3-27.el6_5.2.x86_64.rpm | 526 kB 00:00
(9/21): php-gd-5.3.3-27.el6_5.2.x86_64.rpm | 108 kB 00:00
(10/21): php-mbstring-5.3.3-27.el6_5.2.x86_64.rpm | 457 kB 00:00
(11/21): php-mysql-5.3.3-27.el6_5.2.x86_64.rpm | 83 kB 00:00
(12/21): php-pdo-5.3.3-27.el6_5.2.x86_64.rpm | 77 kB 00:00
(13/21): php-xml-5.3.3-27.el6_5.2.x86_64.rpm | 105 kB 00:00
(14/21): unixODBC-2.2.14-12.el6_3.x86_64.rpm | 378 kB 00:00
(15/21): zabbix-2.2.6-1.el6.x86_64.rpm | 146 kB 00:06
(16/21): zabbix-agent-2.2.6-1.el6.x86_64.rpm | 156 kB 00:02
(17/21): zabbix-get-2.2.6-1.el6.x86_64.rpm | 52 kB 00:00
(18/21): zabbix-server-2.2.6-1.el6.x86_64.rpm | 20 kB 00:00
(19/21): zabbix-server-mysql-2.2.6-1.el6.x86_64.rpm | 1.5 MB 00:12
(20/21): zabbix-web-2.2.6-1.el6.noarch.rpm | 4.5 MB 01:11
(21/21): zabbix-web-mysql-2.2.6-1.el6.noarch.rpm | 13 kB 00:00
--------------------------------------------------------------------------------
Total 100 kB/s | 12 MB 02:03
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
Importing GPG key 0x79EA5ED4:
Userid : Zabbix SIA <packager@zabbix.com>
Package: zabbix-release-2.2-1.el6.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6) <epel@fedoraproject.org>
Package: epel-release-6-8.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
Package: centos-release-6-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : php-common-5.3.3-27.el6_5.2.x86_64 1/26
Installing : zabbix-2.2.6-1.el6.x86_64 2/26
Installing : OpenIPMI-libs-2.0.16-14.el6.x86_64 3/26
Installing : unixODBC-2.2.14-12.el6_3.x86_64 4/26
Installing : iksemel-1.4-2.el6.x86_64 5/26
Updating : php-xml-5.3.3-27.el6_5.2.x86_64 6/26
Installing : php-mbstring-5.3.3-27.el6_5.2.x86_64 7/26
Updating : php-pdo-5.3.3-27.el6_5.2.x86_64 8/26
Installing : php-mysql-5.3.3-27.el6_5.2.x86_64 9/26
Installing : php-bcmath-5.3.3-27.el6_5.2.x86_64 10/26
Updating : php-cli-5.3.3-27.el6_5.2.x86_64 11/26
Updating : php-5.3.3-27.el6_5.2.x86_64 12/26
Installing : fping-2.4b2-16.el6.x86_64 13/26
Installing : zabbix-server-2.2.6-1.el6.x86_64 14/26
Installing : zabbix-server-mysql-2.2.6-1.el6.x86_64 15/26
Installing : libXpm-3.5.10-2.el6.x86_64 16/26
Installing : php-gd-5.3.3-27.el6_5.2.x86_64 17/26
Installing : zabbix-web-mysql-2.2.6-1.el6.noarch 18/26
Installing : zabbix-web-2.2.6-1.el6.noarch 19/26
Installing : zabbix-agent-2.2.6-1.el6.x86_64 20/26
Installing : zabbix-get-2.2.6-1.el6.x86_64 21/26
Cleanup : php-5.3.3-26.el6.x86_64 22/26
Cleanup : php-cli-5.3.3-26.el6.x86_64 23/26
Cleanup : php-pdo-5.3.3-26.el6.x86_64 24/26
Cleanup : php-xml-5.3.3-26.el6.x86_64 25/26
Cleanup : php-common-5.3.3-26.el6.x86_64 26/26
Verifying : zabbix-server-mysql-2.2.6-1.el6.x86_64 1/26
Verifying : iksemel-1.4-2.el6.x86_64 2/26
Verifying : zabbix-get-2.2.6-1.el6.x86_64 3/26
Verifying : php-gd-5.3.3-27.el6_5.2.x86_64 4/26
Verifying : libXpm-3.5.10-2.el6.x86_64 5/26
Verifying : php-common-5.3.3-27.el6_5.2.x86_64 6/26
Verifying : php-xml-5.3.3-27.el6_5.2.x86_64 7/26
Verifying : php-mbstring-5.3.3-27.el6_5.2.x86_64 8/26
Verifying : zabbix-server-2.2.6-1.el6.x86_64 9/26
Verifying : php-5.3.3-27.el6_5.2.x86_64 10/26
Verifying : php-mysql-5.3.3-27.el6_5.2.x86_64 11/26
Verifying : unixODBC-2.2.14-12.el6_3.x86_64 12/26
Verifying : zabbix-2.2.6-1.el6.x86_64 13/26
Verifying : zabbix-web-mysql-2.2.6-1.el6.noarch 14/26
Verifying : OpenIPMI-libs-2.0.16-14.el6.x86_64 15/26
Verifying : zabbix-agent-2.2.6-1.el6.x86_64 16/26
Verifying : php-pdo-5.3.3-27.el6_5.2.x86_64 17/26
Verifying : php-bcmath-5.3.3-27.el6_5.2.x86_64 18/26
Verifying : fping-2.4b2-16.el6.x86_64 19/26
Verifying : php-cli-5.3.3-27.el6_5.2.x86_64 20/26
Verifying : zabbix-web-2.2.6-1.el6.noarch 21/26
Verifying : php-pdo-5.3.3-26.el6.x86_64 22/26
Verifying : php-cli-5.3.3-26.el6.x86_64 23/26
Verifying : php-common-5.3.3-26.el6.x86_64 24/26
Verifying : php-5.3.3-26.el6.x86_64 25/26
Verifying : php-xml-5.3.3-26.el6.x86_64 26/26
Installed:
zabbix.x86_64 0:2.2.6-1.el6 zabbix-agent.x86_64 0:2.2.6-1.el6
zabbix-get.x86_64 0:2.2.6-1.el6 zabbix-server.x86_64 0:2.2.6-1.el6
zabbix-web.noarch 0:2.2.6-1.el6 zabbix-web-mysql.noarch 0:2.2.6-1.el6
Dependency Installed:
OpenIPMI-libs.x86_64 0:2.0.16-14.el6
fping.x86_64 0:2.4b2-16.el6
iksemel.x86_64 0:1.4-2.el6
libXpm.x86_64 0:3.5.10-2.el6
php-bcmath.x86_64 0:5.3.3-27.el6_5.2
php-gd.x86_64 0:5.3.3-27.el6_5.2
php-mbstring.x86_64 0:5.3.3-27.el6_5.2
php-mysql.x86_64 0:5.3.3-27.el6_5.2
unixODBC.x86_64 0:2.2.14-12.el6_3
zabbix-server-mysql.x86_64 0:2.2.6-1.el6
Dependency Updated:
php.x86_64 0:5.3.3-27.el6_5.2 php-cli.x86_64 0:5.3.3-27.el6_5.2
php-common.x86_64 0:5.3.3-27.el6_5.2 php-pdo.x86_64 0:5.3.3-27.el6_5.2
php-xml.x86_64 0:5.3.3-27.el6_5.2
Complete!
[root@myzabbix Desktop]#

Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* epel: ftp.cuhk.edu.hk
* extras: mirrors.pubyun.com
* updates: mirrors.pubyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.73-3.el6_5 will be installed
--> Processing Dependency: mysql = 5.1.73-3.el6_5 for package: mysql-server-5.1.73-3.el6_5.x86_64
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.73-3.el6_5.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.73-3.el6_5.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.73-3.el6_5.x86_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed
--> Processing Dependency: mysql-libs = 5.1.73-3.el6_5 for package: mysql-5.1.73-3.el6_5.x86_64
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.1.71-1.el6 will be updated
---> Package mysql-libs.x86_64 0:5.1.73-3.el6_5 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql-server x86_64 5.1.73-3.el6_5 updates 8.6 M
Installing for dependencies:
mysql x86_64 5.1.73-3.el6_5 updates 894 k
perl-DBD-MySQL x86_64 4.013-3.el6 base 134 k
perl-DBI x86_64 1.609-4.el6 base 705 k
Updating for dependencies:
mysql-libs x86_64 5.1.73-3.el6_5 updates 1.2 M
Transaction Summary
================================================================================
Install 4 Package(s)
Upgrade 1 Package(s)
Total download size: 12 M
Downloading Packages:
(1/5): mysql-5.1.73-3.el6_5.x86_64.rpm | 894 kB 00:00
(2/5): mysql-libs-5.1.73-3.el6_5.x86_64.rpm | 1.2 MB 00:00
(3/5): mysql-server-5.1.73-3.el6_5.x86_64.rpm | 8.6 MB 00:04
(4/5): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm | 134 kB 00:00
(5/5): perl-DBI-1.609-4.el6.x86_64.rpm | 705 kB 00:00
--------------------------------------------------------------------------------
Total 1.2 MB/s | 12 MB 00:09
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : mysql-libs-5.1.73-3.el6_5.x86_64 1/6
Installing : perl-DBI-1.609-4.el6.x86_64 2/6
Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 3/6
Installing : mysql-5.1.73-3.el6_5.x86_64 4/6
Installing : mysql-server-5.1.73-3.el6_5.x86_64 5/6
Cleanup : mysql-libs-5.1.71-1.el6.x86_64 6/6
Verifying : perl-DBD-MySQL-4.013-3.el6.x86_64 1/6
Verifying : mysql-libs-5.1.73-3.el6_5.x86_64 2/6
Verifying : mysql-server-5.1.73-3.el6_5.x86_64 3/6
Verifying : mysql-5.1.73-3.el6_5.x86_64 4/6
Verifying : perl-DBI-1.609-4.el6.x86_64 5/6
Verifying : mysql-libs-5.1.71-1.el6.x86_64 6/6
Installed:
mysql-server.x86_64 0:5.1.73-3.el6_5
Dependency Installed:
mysql.x86_64 0:5.1.73-3.el6_5 perl-DBD-MySQL.x86_64 0:4.013-3.el6
perl-DBI.x86_64 0:1.609-4.el6
Dependency Updated:
mysql-libs.x86_64 0:5.1.73-3.el6_5
Complete!
[root@myzabbix Desktop]#

[root@myzabbix Desktop]# chkconfig mysqld on
[root@myzabbix Desktop]# service mysqld start
Initializing MySQL database: Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h myzabbix.xjm.com password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
[ OK ]
Starting mysqld: [ OK ]
[root@myzabbix Desktop]#
[root@myzabbix Desktop]# ps -ef |grep mysql
root 3296 1 0 04:43 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
mysql 3404 3296 0 04:43 pts/0 00:00:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
root 3427 2947 0 04:44 pts/0 00:00:00 grep mysql

[root@myzabbix Desktop]# mysql -uroot -padmin
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database zabbix character set utf8;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql>

LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
DBName=zabbix
DBUser=zabbix
DBSocket=/var/lib/mysql/mysql.sock
SNMPTrapperFile=/var/log/snmptt/snmptt.log
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
DBName=zabbix
DBUser=zabbix
DBSocket=/var/lib/mysql/mysql.sock
SNMPTrapperFile=/var/log/snmptt/snmptt.log
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
[root@myzabbix Desktop]# vi /etc/zabbix/zabbix_server.conf
[root@myzabbix Desktop]# egrep -v "(^#|^$)" /etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
StartPollers=5
SNMPTrapperFile=/var/log/snmptt/snmptt.log
CacheSize=256M
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
Starting Zabbix server: [ OK ]
[root@myzabbix Desktop]# service httpd start
Starting httpd: [ OK ]
[root@myzabbix Desktop]# chkconfig zabbix-server on
[root@myzabbix Desktop]# chkconfig httpd on
[root@myzabbix Desktop]#
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
[root@myzabbix Desktop]#
[root@myzabbix Desktop]# setsebool -P httpd_can_network_connect=true
[root@myzabbix Desktop]# semanage port -a -t http_port_t -p tcp 10051
bash: semanage: command not found
/usr/sbin/semanage: Port tcp/10051 already defined
[root@myzabbix Desktop]#
[root@myzabbix Desktop]# yum -y install policycoreutils-python
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* epel: ftp.cuhk.edu.hk
* extras: mirrors.pubyun.com
* updates: mirrors.pubyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package policycoreutils-python.x86_64 0:2.0.83-19.39.el6 will be installed
--> Processing Dependency: libsemanage-python >= 2.0.43-4 for package: policycoreutils-python-2.0.83-19.39.el6.x86_64
--> Processing Dependency: audit-libs-python >= 1.4.2-1 for package: policycoreutils-python-2.0.83-19.39.el6.x86_64
--> Processing Dependency: setools-libs-python for package: policycoreutils-python-2.0.83-19.39.el6.x86_64
--> Processing Dependency: libcgroup for package: policycoreutils-python-2.0.83-19.39.el6.x86_64
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.2-4.el6_5 will be installed
--> Processing Dependency: audit-libs = 2.2-4.el6_5 for package: audit-libs-python-2.2-4.el6_5.x86_64
---> Package libcgroup.x86_64 0:0.40.rc1-6.el6_5.1 will be installed
---> Package libsemanage-python.x86_64 0:2.0.43-4.2.el6 will be installed
---> Package setools-libs-python.x86_64 0:3.3.7-4.el6 will be installed
--> Processing Dependency: setools-libs = 3.3.7-4.el6 for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libsefs.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libseaudit.so.4(VERS_4.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libseaudit.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libpoldiff.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libpoldiff.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libsefs.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libseaudit.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libpoldiff.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Running transaction check
---> Package audit-libs.x86_64 0:2.2-2.el6 will be updated
--> Processing Dependency: audit-libs = 2.2-2.el6 for package: audit-2.2-2.el6.x86_64
---> Package audit-libs.x86_64 0:2.2-4.el6_5 will be an update
---> Package setools-libs.x86_64 0:3.3.7-4.el6 will be installed
--> Running transaction check
---> Package audit.x86_64 0:2.2-2.el6 will be updated
---> Package audit.x86_64 0:2.2-4.el6_5 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
policycoreutils-python x86_64 2.0.83-19.39.el6 base 343 k
Installing for dependencies:
audit-libs-python x86_64 2.2-4.el6_5 updates 59 k
libcgroup x86_64 0.40.rc1-6.el6_5.1 updates 126 k
libsemanage-python x86_64 2.0.43-4.2.el6 base 81 k
setools-libs x86_64 3.3.7-4.el6 base 400 k
setools-libs-python x86_64 3.3.7-4.el6 base 222 k
Updating for dependencies:
audit x86_64 2.2-4.el6_5 updates 225 k
audit-libs x86_64 2.2-4.el6_5 updates 60 k
Transaction Summary
================================================================================
Install 6 Package(s)
Upgrade 2 Package(s)
Total download size: 1.5 M
Downloading Packages:
(1/8): audit-2.2-4.el6_5.x86_64.rpm | 225 kB 00:00
(2/8): audit-libs-2.2-4.el6_5.x86_64.rpm | 60 kB 00:00
(3/8): audit-libs-python-2.2-4.el6_5.x86_64.rpm | 59 kB 00:00
(4/8): libcgroup-0.40.rc1-6.el6_5.1.x86_64.rpm | 126 kB 00:00
(5/8): libsemanage-python-2.0.43-4.2.el6.x86_64.rpm | 81 kB 00:00
(6/8): policycoreutils-python-2.0.83-19.39.el6.x86_64.rp | 343 kB 00:00
(7/8): setools-libs-3.3.7-4.el6.x86_64.rpm | 400 kB 00:00
(8/8): setools-libs-python-3.3.7-4.el6.x86_64.rpm | 222 kB 00:00
--------------------------------------------------------------------------------
Total 332 kB/s | 1.5 MB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : audit-libs-2.2-4.el6_5.x86_64 1/10
Installing : audit-libs-python-2.2-4.el6_5.x86_64 2/10
Installing : setools-libs-3.3.7-4.el6.x86_64 3/10
Installing : setools-libs-python-3.3.7-4.el6.x86_64 4/10
Installing : libcgroup-0.40.rc1-6.el6_5.1.x86_64 5/10
Installing : libsemanage-python-2.0.43-4.2.el6.x86_64 6/10
Installing : policycoreutils-python-2.0.83-19.39.el6.x86_64 7/10
Updating : audit-2.2-4.el6_5.x86_64 8/10
Cleanup : audit-2.2-2.el6.x86_64 9/10
Cleanup : audit-libs-2.2-2.el6.x86_64 10/10
Verifying : audit-2.2-4.el6_5.x86_64 1/10
Verifying : audit-libs-python-2.2-4.el6_5.x86_64 2/10
Verifying : setools-libs-python-3.3.7-4.el6.x86_64 3/10
Verifying : audit-libs-2.2-4.el6_5.x86_64 4/10
Verifying : libsemanage-python-2.0.43-4.2.el6.x86_64 5/10
Verifying : policycoreutils-python-2.0.83-19.39.el6.x86_64 6/10
Verifying : libcgroup-0.40.rc1-6.el6_5.1.x86_64 7/10
Verifying : setools-libs-3.3.7-4.el6.x86_64 8/10
Verifying : audit-libs-2.2-2.el6.x86_64 9/10
Verifying : audit-2.2-2.el6.x86_64 10/10
Installed:
policycoreutils-python.x86_64 0:2.0.83-19.39.el6
Dependency Installed:
audit-libs-python.x86_64 0:2.2-4.el6_5
libcgroup.x86_64 0:0.40.rc1-6.el6_5.1
libsemanage-python.x86_64 0:2.0.43-4.2.el6
setools-libs.x86_64 0:3.3.7-4.el6
setools-libs-python.x86_64 0:3.3.7-4.el6
Dependency Updated:
audit.x86_64 0:2.2-4.el6_5 audit-libs.x86_64 0:2.2-4.el6_5
Complete!
[root@myzabbix Desktop]# semanage port -a -t http_port_t -p tcp 10051
/usr/sbin/semanage: Port tcp/10051 already defined
[root@myzabbix Desktop]#
[root@myzabbix Desktop]# getenforce
Permissive
[root@myzabbix Desktop]# vi /etc/selinux/config
Zabbix Step 1 : Install CentOS6.5 and Configration的更多相关文章
- Step 4: Install and Configure Databases
https://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_installing_configuring_dbs.htm ...
- Hadoop step by step _ install and configuration environment
1.安装centos linux系统. 2.配置静态IP 3.配置防火墙 4.添加hadoop用户 5.检查并安装jdk 配置环境变量 6.配置sshd服务 7.配置ssh免密码登录 8.格式化nam ...
- centos6 install mplayer(multimedia)
step_1 http://wiki.centos.org/AdditionalResources/Repositories/RPMForge step_2 http://wiki.centos.or ...
- centos6.4安装 zabbix agent
1.防火墙设置 允许zabbix-agent的10050端口通过 iptables -A INPUT -p tcp --dport 10050 -j ACCEPT 2.安装zabbix agent ...
- zabbix分布式监控系统安装配置
zabbix简介: zabbix(音同 zæbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵 ...
- CentOS6.5上Zabbix3.0的RPM安装【一】-安装并配置Server
一.Environment OS:CentOS6.5 64bit [桌面版安装] Server端:192.168.201.109 ServerName Clinet端:192.168.201.199 ...
- 如何部署Zabbix服务端
部署环境 RHEL 6.7 Zabbix-server 2.2.14 安装zabbix官方源 # wget http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_6 ...
- install zabbix-agent on CENTOS
in ubuntu--https://www.digitalocean.com/community/tutorials/how-to-install-zabbix-on-ubuntu-configur ...
- 第八章 监控 Zabbix
1.1 YUM部署 Zabbix 2.4 1. 前期准备(省略) l Yum源的配置 cd /etc/yum.repos.d/; mkdir old;mv ./* old/ rpm -Uvh ...
随机推荐
- live555学习经验链接一
live555学习经验链接:http://xingyunbaijunwei.blog.163.com/blog/#m=0&t=1&c=fks_084071082087086069082 ...
- uva11536 Smallest Sub-Array
Thinking about it: 我的思路跟sliding window有点类似.假设已经确定了一个区间[l, r],序列中从 l 到 r 恰好包含了[1, K]的各个元素,则从 r 开始继续迭代 ...
- Andriod之Activity
eclipse还原默认的面板设计:Window > Reset Perspective> OK1\ 1.多个Activity之间的关系: 2.Intent的基本作用: 3.在一个Activ ...
- Ext JS学习第十三天 Ext基础之 Ext.Element
•Ext.Element提供了181个方法,嗯,还没完,只是在4.1版本中是这样,最新的4.2版本貌似又增加了新方法,可谓是相当丰富给力.那么根据操作类型基本可以分为查询系.DOM操作系.样式操作系. ...
- 最简单的javascript 竖向菜单
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> ...
- 重启IIS常见命令
重启IIS常见命令 http://jingyan.baidu.com/article/4ae03de30d6cfa3efe9e6b4a.html
- JavaSE学习总结第18天_集合框架4
18.01 Map集合概述和特点 Map接口概述:将键映射到值的对象,一个映射不能包含重复的键,每个键最多只能映射到一个值 Map接口和Collection接口的不同 1.Map是双列的,Coll ...
- iOS显示PDF
使用UIWebView来显示 //locale file NSString *html = [NSString stringWithContentsOfFile:path1 encoding:NSUT ...
- 接收串口数据0x00 strlen函数会截断
写个串口接收程序接收到之后,用了一个上strlen,结果数据不全了,百度了下 strlen所作的仅仅是一个计数器的工作,它从内存的某个位置(可以是字符串开头,中间某个位置,甚至是某个不确定的内存区域) ...
- 关于map
java为数据结构中的映射定义了一个接口java.util.Map;它有四个实现类,分别是HashMap Hashtable LinkedHashMap 和TreeMap. Map主要用于存储健值对, ...