[root@centos11 ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

[root@centos11 ~]# uname -r
3.10.0-693.11.1.el7.x86_64

下载zabbix3.4版本的 yum源安装包

[root@centos11 zabbix]# wget http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm

[root@centos11 zabbix]# ls -lt zabbix-release-3.4-1.el7.centos.noarch.rpm
-rw-r--r--. 1 root root 12900 Aug 22 17:48 zabbix-release-3.4-1.el7.centos.noarch.rpm

安装zabbix3.4版本的 yum源安装包
[root@centos11 zabbix]# rpm -ivh zabbix-release-3.4-1.el7.centos.noarch.rpm

更新yum源
[root@centos11 zabbix]# yum clean all

检查yum源安装状态
[root@centos11 packages]# rpm -qa | grep -i zabbix
zabbix-release-3.4-1.el7.centos.noarch

用yum安装zabbix
[root@centos11 packages]# yum install zabbix*
Loaded plugins: fastestmirror
Examining zabbix-agent-3.4.5-1.el7.x86_64.rpm: zabbix-agent-3.4.5-1.el7.x86_64
Marking zabbix-agent-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-get-3.4.5-1.el7.x86_64.rpm: zabbix-get-3.4.5-1.el7.x86_64
Marking zabbix-get-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-java-gateway-3.4.5-1.el7.x86_64.rpm: zabbix-java-gateway-3.4.5-1.el7.x86_64
Marking zabbix-java-gateway-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-proxy-MysqL-3.4.5-1.el7.x86_64.rpm: zabbix-proxy-MysqL-3.4.5-1.el7.x86_64
Marking zabbix-proxy-MysqL-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-proxy-pgsql-3.4.5-1.el7.x86_64.rpm: zabbix-proxy-pgsql-3.4.5-1.el7.x86_64
Marking zabbix-proxy-pgsql-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64.rpm: zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64
Marking zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-sender-3.4.5-1.el7.x86_64.rpm: zabbix-sender-3.4.5-1.el7.x86_64
Marking zabbix-sender-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-server-MysqL-3.4.5-1.el7.x86_64.rpm: zabbix-server-MysqL-3.4.5-1.el7.x86_64
Marking zabbix-server-MysqL-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-server-pgsql-3.4.5-1.el7.x86_64.rpm: zabbix-server-pgsql-3.4.5-1.el7.x86_64
Marking zabbix-server-pgsql-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-web-3.4.5-1.el7.noarch.rpm: zabbix-web-3.4.5-1.el7.noarch
Marking zabbix-web-3.4.5-1.el7.noarch.rpm to be installed
Examining zabbix-web-MysqL-3.4.5-1.el7.noarch.rpm: zabbix-web-MysqL-3.4.5-1.el7.noarch
Marking zabbix-web-MysqL-3.4.5-1.el7.noarch.rpm to be installed
Examining zabbix-web-pgsql-3.4.5-1.el7.noarch.rpm: zabbix-web-pgsql-3.4.5-1.el7.noarch
Marking zabbix-web-pgsql-3.4.5-1.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:3.4.5-1.el7 will be installed
---> Package zabbix-get.x86_64 0:3.4.5-1.el7 will be installed
---> Package zabbix-java-gateway.x86_64 0:3.4.5-1.el7 will be installed
--> Processing Dependency: java-headless >= 1.6.0 for package: zabbix-java-gateway-3.4.5-1.el7.x86_64
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
zabbix | 2.9 kB 00:00:00
zabbix-non-supported | 951 B 00:00:00
(1/5): extras/7/x86_64/primary_db | 145 kB 00:00:02
(2/5): base/7/x86_64/group_gz | 156 kB 00:00:04
(3/5): zabbix/x86_64/primary_db | 50 kB 00:00:03
(4/5): updates/7/x86_64/primary_db | 4.6 MB 00:00:13
(5/5): base/7/x86_64/primary_db | 5.7 MB 00:00:14
zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:02
Determining fastest mirrors

  • base: mirrors.aliyun.com
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com
    zabbix-non-supported 4/4
    ---> Package zabbix-proxy-MysqL.x86_64 0:3.4.5-1.el7 will be installed
    --> Processing Dependency: fping for package: zabbix-proxy-MysqL-3.4.5-1.el7.x86_64
    --> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: zabbix-proxy-MysqL-3.4.5-1.el7.x86_64
    --> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: zabbix-proxy-MysqL-3.4.5-1.el7.x86_64
    --> Processing Dependency: libevent-2.0.so.5()(64bit) for package: zabbix-proxy-MysqL-3.4.5-1.el7.x86_64
    --> Processing Dependency: libnetsnmp.so.31()(64bit) for package: zabbix-proxy-MysqL-3.4.5-1.el7.x86_64
    --> Processing Dependency: libodbc.so.2()(64bit) for package: zabbix-proxy-MysqL-3.4.5-1.el7.x86_64
    ---> Package zabbix-proxy-pgsql.x86_64 0:3.4.5-1.el7 will be installed
    --> Processing Dependency: libpq.so.5()(64bit) for package: zabbix-proxy-pgsql-3.4.5-1.el7.x86_64
    ---> Package zabbix-proxy-sqlite3.x86_64 0:3.4.5-1.el7 will be installed
    ---> Package zabbix-sender.x86_64 0:3.4.5-1.el7 will be installed
    ---> Package zabbix-server-MysqL.x86_64 0:3.4.5-1.el7 will be installed
    --> Processing Dependency: libiksemel.so.3()(64bit) for package: zabbix-server-MysqL-3.4.5-1.el7.x86_64
    ---> Package zabbix-server-pgsql.x86_64 0:3.4.5-1.el7 will be installed
    ---> Package zabbix-web.noarch 0:3.4.5-1.el7 will be installed
    --> Processing Dependency: PHP >= 5.4 for package: zabbix-web-3.4.5-1.el7.noarch
    --> Processing Dependency: dejavu-sans-fonts for package: zabbix-web-3.4.5-1.el7.noarch
    --> Processing Dependency: httpd for package: zabbix-web-3.4.5-1.el7.noarch
    --> Processing Dependency: PHP-bcmath for package: zabbix-web-3.4.5-1.el7.noarch
    --> Processing Dependency: PHP-gd for package: zabbix-web-3.4.5-1.el7.noarch
    --> Processing Dependency: PHP-ldap for package: zabbix-web-3.4.5-1.el7.noarch
    --> Processing Dependency: PHP-mbstring for package: zabbix-web-3.4.5-1.el7.noarch
    --> Processing Dependency: PHP-xml for package: zabbix-web-3.4.5-1.el7.noarch
    ---> Package zabbix-web-MysqL.noarch 0:3.4.5-1.el7 will be installed
    --> Processing Dependency: PHP-MysqL for package: zabbix-web-MysqL-3.4.5-1.el7.noarch
    ---> Package zabbix-web-pgsql.noarch 0:3.4.5-1.el7 will be installed
    --> Processing Dependency: PHP-pgsql for package: zabbix-web-pgsql-3.4.5-1.el7.noarch
    --> Running transaction check
    ---> Package OpenIPMI-libs.x86_64 0:2.0.19-15.el7 will be installed
    --> Processing Dependency: OpenIPMI-modalias = 2.0.19-15.el7 for package: OpenIPMI-libs-2.0.19-15.el7.x86_64
    ---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
    --> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
    ---> Package fping.x86_64 0:3.10-1.el7 will be installed
    ---> Package httpd.x86_64 0:2.4.6-67.el7.centos.6 will be installed
    --> Processing Dependency: httpd-tools = 2.4.6-67.el7.centos.6 for package: httpd-2.4.6-67.el7.centos.6.x86_64
    --> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-67.el7.centos.6.x86_64
    --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-67.el7.centos.6.x86_64
    --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-67.el7.centos.6.x86_64
    ---> Package iksemel.x86_64 0:1.4-2.el7.centos will be installed
    ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.151-5.b12.el7_4 will be installed
    --> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
    --> Processing Dependency: copy-jdk-configs >= 2.2 for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
    --> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
    --> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
    ---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed
    ---> Package net-snmp-libs.x86_64 1:5.7.2-28.el7 will be installed
    ---> Package PHP.x86_64 0:5.4.16-43.el7_4 will be installed
    --> Processing Dependency: PHP-common(x86-64) = 5.4.16-43.el7_4 for package: PHP-5.4.16-43.el7_4.x86_64
    --> Processing Dependency: PHP-cli(x86-64) = 5.4.16-43.el7_4 for package: PHP-5.4.16-43.el7_4.x86_64
    ---> Package PHP-bcmath.x86_64 0:5.4.16-43.el7_4 will be installed
    ---> Package PHP-gd.x86_64 0:5.4.16-43.el7_4 will be installed
    --> Processing Dependency: libt1.so.5()(64bit) for package: PHP-gd-5.4.16-43.el7_4.x86_64
    --> Processing Dependency: libXpm.so.4()(64bit) for package: PHP-gd-5.4.16-43.el7_4.x86_64
    ---> Package PHP-ldap.x86_64 0:5.4.16-43.el7_4 will be installed
    ---> Package PHP-mbstring.x86_64 0:5.4.16-43.el7_4 will be installed
    ---> Package PHP-MysqL.x86_64 0:5.4.16-43.el7_4 will be installed
    --> Processing Dependency: PHP-pdo(x86-64) = 5.4.16-43.el7_4 for package: PHP-MysqL-5.4.16-43.el7_4.x86_64
    ---> Package PHP-pgsql.x86_64 0:5.4.16-43.el7_4 will be installed
    ---> Package PHP-xml.x86_64 0:5.4.16-43.el7_4 will be installed
    ---> Package postgresql-libs.x86_64 0:9.2.23-3.el7_4 will be installed
    ---> Package unixODBC.x86_64 0:2.3.1-11.el7 will be installed
    --> Running transaction check
    ---> Package OpenIPMI-modalias.x86_64 0:2.0.19-15.el7 will be installed
    ---> Package apr.x86_64 0:1.4.8-3.el7_4.1 will be installed
    ---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
    ---> Package copy-jdk-configs.noarch 0:2.2-5.el7_4 will be installed
    ---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
    ---> Package httpd-tools.x86_64 0:2.4.6-67.el7.centos.6 will be installed
    ---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed
    --> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch
    ---> Package libXpm.x86_64 0:3.5.12-1.el7 will be installed
    ---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed
    ---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed
    ---> Package PHP-cli.x86_64 0:5.4.16-43.el7_4 will be installed
    ---> Package PHP-common.x86_64 0:5.4.16-43.el7_4 will be installed
    --> Processing Dependency: libzip.so.2()(64bit) for package: PHP-common-5.4.16-43.el7_4.x86_64
    ---> Package PHP-pdo.x86_64 0:5.4.16-43.el7_4 will be installed
    ---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed
    ---> Package tzdata-java.noarch 0:2017c-1.el7 will be installed
    --> Running transaction check
    ---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
    ---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed
    --> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch
    --> Running transaction check
    ---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed
    --> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================
Package Arch Version Repository Size

=======================================================================================================
Installing:
zabbix-agent x86_64 3.4.5-1.el7 /zabbix-agent-3.4.5-1.el7.x86_64 1.4 M
zabbix-get x86_64 3.4.5-1.el7 /zabbix-get-3.4.5-1.el7.x86_64 1.0 M
zabbix-java-gateway x86_64 3.4.5-1.el7 /zabbix-java-gateway-3.4.5-1.el7.x86_64 1.4 M
zabbix-proxy-MysqL x86_64 3.4.5-1.el7 /zabbix-proxy-MysqL-3.4.5-1.el7.x86_64 2.9 M
zabbix-proxy-pgsql x86_64 3.4.5-1.el7 /zabbix-proxy-pgsql-3.4.5-1.el7.x86_64 2.9 M
zabbix-proxy-sqlite3 x86_64 3.4.5-1.el7 /zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64 2.8 M
zabbix-sender x86_64 3.4.5-1.el7 /zabbix-sender-3.4.5-1.el7.x86_64 1.0 M
zabbix-server-MysqL x86_64 3.4.5-1.el7 /zabbix-server-MysqL-3.4.5-1.el7.x86_64 4.5 M
zabbix-server-pgsql x86_64 3.4.5-1.el7 /zabbix-server-pgsql-3.4.5-1.el7.x86_64 4.5 M
zabbix-web noarch 3.4.5-1.el7 /zabbix-web-3.4.5-1.el7.noarch 15 M
zabbix-web-MysqL noarch 3.4.5-1.el7 /zabbix-web-MysqL-3.4.5-1.el7.noarch 0.0
zabbix-web-pgsql noarch 3.4.5-1.el7 /zabbix-web-pgsql-3.4.5-1.el7.noarch 0.0
Installing for dependencies:
OpenIPMI-libs x86_64 2.0.19-15.el7 base 502 k
OpenIPMI-modalias x86_64 2.0.19-15.el7 base 15 k
apr x86_64 1.4.8-3.el7_4.1 updates 103 k
apr-util x86_64 1.5.2-6.el7 base 92 k
copy-jdk-configs noarch 2.2-5.el7_4 updates 19 k
dejavu-fonts-common noarch 2.33-6.el7 base 64 k
dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M
fping x86_64 3.10-1.el7 zabbix-non-supported 40 k
httpd x86_64 2.4.6-67.el7.centos.6 updates 2.7 M
httpd-tools x86_64 2.4.6-67.el7.centos.6 updates 88 k
iksemel x86_64 1.4-2.el7.centos zabbix-non-supported 49 k
java-1.8.0-openjdk-headless
x86_64 1:1.8.0.151-5.b12.el7_4 updates 32 M
javapackages-tools noarch 3.4.1-11.el7 base 73 k
libXpm x86_64 3.5.12-1.el7 base 55 k
libevent x86_64 2.0.21-4.el7 base 214 k
libzip x86_64 0.10.1-8.el7 base 48 k
lksctp-tools x86_64 1.0.17-2.el7 base 88 k
mailcap noarch 2.1.41-2.el7 base 31 k
net-snmp-libs x86_64 1:5.7.2-28.el7 base 748 k
PHP x86_64 5.4.16-43.el7_4 updates 1.4 M
PHP-bcmath x86_64 5.4.16-43.el7_4 updates 57 k
PHP-cli x86_64 5.4.16-43.el7_4 updates 2.7 M
PHP-common x86_64 5.4.16-43.el7_4 updates 565 k
PHP-gd x86_64 5.4.16-43.el7_4 updates 127 k
PHP-ldap x86_64 5.4.16-43.el7_4 updates 52 k
PHP-mbstring x86_64 5.4.16-43.el7_4 updates 505 k
PHP-MysqL x86_64 5.4.16-43.el7_4 updates 101 k
PHP-pdo x86_64 5.4.16-43.el7_4 updates 98 k
PHP-pgsql x86_64 5.4.16-43.el7_4 updates 86 k
PHP-xml x86_64 5.4.16-43.el7_4 updates 125 k
postgresql-libs x86_64 9.2.23-3.el7_4 updates 234 k
python-javapackages noarch 3.4.1-11.el7 base 31 k
python-lxml x86_64 3.2.1-4.el7 base 758 k
t1lib x86_64 5.1.2-14.el7 base 166 k
tzdata-java noarch 2017c-1.el7 updates 183 k
unixODBC x86_64 2.3.1-11.el7 base 413 k

Transaction Summary

=======================================================================================================
Install 12 Packages (+36 Dependent packages)

Total size: 82 M
Total download size: 45 M
Installed size: 187 M
Is this ok [y/d/N]: y
Downloading packages:
(1/36): apr-1.4.8-3.el7_4.1.x86_64.rpm | 103 kB 00:00:04
(2/36): OpenIPMI-libs-2.0.19-15.el7.x86_64.rpm | 502 kB 00:00:07
(3/36): copy-jdk-configs-2.2-5.el7_4.noarch.rpm | 19 kB 00:00:06
(4/36): OpenIPMI-modalias-2.0.19-15.el7.x86_64.rpm | 15 kB 00:00:06
(5/36): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:02
(6/36): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:05
(7/36): httpd-tools-2.4.6-67.el7.centos.6.x86_64.rpm | 88 kB 00:00:02
(8/36): httpd-2.4.6-67.el7.centos.6.x86_64.rpm | 2.7 MB 00:00:07
(9/36): javapackages-tools-3.4.1-11.el7.noarch.rpm | 73 kB 00:00:00
(10/36): libXpm-3.5.12-1.el7.x86_64.rpm | 55 kB 00:00:00
(11/36): libevent-2.0.21-4.el7.x86_64.rpm | 214 kB 00:00:00
(12/36): libzip-0.10.1-8.el7.x86_64.rpm | 48 kB 00:00:00
(13/36): lksctp-tools-1.0.17-2.el7.x86_64.rpm | 88 kB 00:00:00
(14/36): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:00
warning: /var/cache/yum/x86_64/7/zabbix-non-supported/packages/fping-3.10-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature,key ID 79ea5ed4: NOKEY
Public key for fping-3.10-1.el7.x86_64.rpm is not installed
(15/36): fping-3.10-1.el7.x86_64.rpm | 40 kB 00:00:09
(16/36): net-snmp-libs-5.7.2-28.el7.x86_64.rpm | 748 kB 00:00:01
(17/36): iksemel-1.4-2.el7.centos.x86_64.rpm | 49 kB 00:00:07
(18/36): PHP-bcmath-5.4.16-43.el7_4.x86_64.rpm | 57 kB 00:00:03
(19/36): PHP-5.4.16-43.el7_4.x86_64.rpm | 1.4 MB 00:00:07
(20/36): PHP-gd-5.4.16-43.el7_4.x86_64.rpm | 127 kB 00:00:00
(21/36): PHP-ldap-5.4.16-43.el7_4.x86_64.rpm | 52 kB 00:00:00
(22/36): PHP-mbstring-5.4.16-43.el7_4.x86_64.rpm | 505 kB 00:00:02
(23/36): PHP-common-5.4.16-43.el7_4.x86_64.rpm | 565 kB 00:00:05
(24/36): PHP-MysqL-5.4.16-43.el7_4.x86_64.rpm | 101 kB 00:00:00
(25/36): PHP-pgsql-5.4.16-43.el7_4.x86_64.rpm | 86 kB 00:00:00
(26/36): PHP-xml-5.4.16-43.el7_4.x86_64.rpm | 125 kB 00:00:00
(27/36): postgresql-libs-9.2.23-3.el7_4.x86_64.rpm | 234 kB 00:00:00
(28/36): python-javapackages-3.4.1-11.el7.noarch.rpm | 31 kB 00:00:00
(29/36): PHP-cli-5.4.16-43.el7_4.x86_64.rpm | 2.7 MB 00:00:11
(30/36): python-lxml-3.2.1-4.el7.x86_64.rpm | 758 kB 00:00:02
(31/36): tzdata-java-2017c-1.el7.noarch.rpm | 183 kB 00:00:00
(32/36): unixODBC-2.3.1-11.el7.x86_64.rpm | 413 kB 00:00:00
(33/36): PHP-pdo-5.4.16-43.el7_4.x86_64.rpm | 98 kB 00:00:06
(34/36): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00:02
apr-util-1.5.2-6.el7.x86_64.rp Failed | 28 MB 00:00:19 ETA
http://mirror.lzu.edu.cn/centos/7.4.1708/os/x86_64/Packages/apr-util-1.5.2-6.el7.x86_64.rpm: [Errno 12] Timeout on http://mirror.lzu.edu.cn/centos/7.4.1708/os/x86_64/Packages/apr-util-1.5.2-6.el7.x86_64.rpm: (28,'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
(35/36): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:00:00
(36/36): java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64.rpm | 32 MB 00:00:50

Total 703 kB/s | 45 MB 00:01:06
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
Importing GPG key 0x79EA5ED4:
Userid : "Zabbix SIA <packager@zabbix.com>"
Fingerprint: fbab d5fb 2025 5eca b22e e194 d13d 58e4 79ea 5ed4
Package : zabbix-release-3.4-1.el7.centos.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : 1:net-snmp-libs-5.7.2-28.el7.x86_64 1/48
Installing : libevent-2.0.21-4.el7.x86_64 2/48
Installing : unixODBC-2.3.1-11.el7.x86_64 3/48
Installing : fping-3.10-1.el7.x86_64 4/48
Installing : apr-1.4.8-3.el7_4.1.x86_64 5/48
Installing : postgresql-libs-9.2.23-3.el7_4.x86_64 6/48
Installing : apr-util-1.5.2-6.el7.x86_64 7/48
Installing : iksemel-1.4-2.el7.centos.x86_64 8/48
Installing : httpd-tools-2.4.6-67.el7.centos.6.x86_64 9/48
Installing : lksctp-tools-1.0.17-2.el7.x86_64 10/48
Installing : libzip-0.10.1-8.el7.x86_64 11/48
Installing : PHP-common-5.4.16-43.el7_4.x86_64 12/48
Installing : PHP-pdo-5.4.16-43.el7_4.x86_64 13/48
Installing : PHP-pgsql-5.4.16-43.el7_4.x86_64 14/48
Installing : PHP-MysqL-5.4.16-43.el7_4.x86_64 15/48
Installing : PHP-xml-5.4.16-43.el7_4.x86_64 16/48
Installing : PHP-ldap-5.4.16-43.el7_4.x86_64 17/48
Installing : PHP-mbstring-5.4.16-43.el7_4.x86_64 18/48
Installing : PHP-bcmath-5.4.16-43.el7_4.x86_64 19/48
Installing : PHP-cli-5.4.16-43.el7_4.x86_64 20/48
Installing : copy-jdk-configs-2.2-5.el7_4.noarch 21/48
Installing : OpenIPMI-modalias-2.0.19-15.el7.x86_64 22/48
Installing : OpenIPMI-libs-2.0.19-15.el7.x86_64 23/48
Installing : tzdata-java-2017c-1.el7.noarch 24/48
Installing : t1lib-5.1.2-14.el7.x86_64 25/48
Installing : libXpm-3.5.12-1.el7.x86_64 26/48
Installing : PHP-gd-5.4.16-43.el7_4.x86_64 27/48
Installing : dejavu-fonts-common-2.33-6.el7.noarch 28/48
Installing : dejavu-sans-fonts-2.33-6.el7.noarch 29/48
Installing : python-lxml-3.2.1-4.el7.x86_64 30/48
Installing : python-javapackages-3.4.1-11.el7.noarch 31/48
Installing : javapackages-tools-3.4.1-11.el7.noarch 32/48
Installing : 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64 33/48
Installing : mailcap-2.1.41-2.el7.noarch 34/48
Installing : httpd-2.4.6-67.el7.centos.6.x86_64 35/48
Installing : PHP-5.4.16-43.el7_4.x86_64 36/48
Installing : zabbix-web-3.4.5-1.el7.noarch 37/48
Installing : zabbix-web-pgsql-3.4.5-1.el7.noarch 38/48
Installing : zabbix-web-MysqL-3.4.5-1.el7.noarch 39/48
Installing : zabbix-java-gateway-3.4.5-1.el7.x86_64 40/48
Installing : zabbix-proxy-MysqL-3.4.5-1.el7.x86_64 41/48
Installing : zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64 42/48
Installing : zabbix-server-pgsql-3.4.5-1.el7.x86_64 43/48
Installing : zabbix-proxy-pgsql-3.4.5-1.el7.x86_64 44/48
Installing : zabbix-server-MysqL-3.4.5-1.el7.x86_64 45/48
Installing : zabbix-agent-3.4.5-1.el7.x86_64 46/48
Installing : zabbix-sender-3.4.5-1.el7.x86_64 47/48
Installing : zabbix-get-3.4.5-1.el7.x86_64 48/48
Verifying : fping-3.10-1.el7.x86_64 1/48
Verifying : PHP-pgsql-5.4.16-43.el7_4.x86_64 2/48
Verifying : mailcap-2.1.41-2.el7.noarch 3/48
Verifying : zabbix-web-3.4.5-1.el7.noarch 4/48
Verifying : PHP-xml-5.4.16-43.el7_4.x86_64 5/48
Verifying : PHP-ldap-5.4.16-43.el7_4.x86_64 6/48
Verifying : python-lxml-3.2.1-4.el7.x86_64 7/48
Verifying : OpenIPMI-libs-2.0.19-15.el7.x86_64 8/48
Verifying : httpd-tools-2.4.6-67.el7.centos.6.x86_64 9/48
Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64 10/48
Verifying : PHP-MysqL-5.4.16-43.el7_4.x86_64 11/48
Verifying : iksemel-1.4-2.el7.centos.x86_64 12/48
Verifying : zabbix-proxy-MysqL-3.4.5-1.el7.x86_64 13/48
Verifying : PHP-pdo-5.4.16-43.el7_4.x86_64 14/48
Verifying : python-javapackages-3.4.1-11.el7.noarch 15/48
Verifying : javapackages-tools-3.4.1-11.el7.noarch 16/48
Verifying : dejavu-fonts-common-2.33-6.el7.noarch 17/48
Verifying : zabbix-get-3.4.5-1.el7.x86_64 18/48
Verifying : PHP-mbstring-5.4.16-43.el7_4.x86_64 19/48
Verifying : zabbix-sender-3.4.5-1.el7.x86_64 20/48
Verifying : postgresql-libs-9.2.23-3.el7_4.x86_64 21/48
Verifying : libXpm-3.5.12-1.el7.x86_64 22/48
Verifying : zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64 23/48
Verifying : zabbix-agent-3.4.5-1.el7.x86_64 24/48
Verifying : PHP-common-5.4.16-43.el7_4.x86_64 25/48
Verifying : t1lib-5.1.2-14.el7.x86_64 26/48
Verifying : unixODBC-2.3.1-11.el7.x86_64 27/48
Verifying : libevent-2.0.21-4.el7.x86_64 28/48
Verifying : apr-util-1.5.2-6.el7.x86_64 29/48
Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 30/48
Verifying : zabbix-server-pgsql-3.4.5-1.el7.x86_64 31/48
Verifying : zabbix-web-pgsql-3.4.5-1.el7.noarch 32/48
Verifying : tzdata-java-2017c-1.el7.noarch 33/48
Verifying : apr-1.4.8-3.el7_4.1.x86_64 34/48
Verifying : PHP-bcmath-5.4.16-43.el7_4.x86_64 35/48
Verifying : PHP-cli-5.4.16-43.el7_4.x86_64 36/48
Verifying : 1:net-snmp-libs-5.7.2-28.el7.x86_64 37/48
Verifying : PHP-5.4.16-43.el7_4.x86_64 38/48
Verifying : zabbix-java-gateway-3.4.5-1.el7.x86_64 39/48
Verifying : OpenIPMI-modalias-2.0.19-15.el7.x86_64 40/48
Verifying : httpd-2.4.6-67.el7.centos.6.x86_64 41/48
Verifying : copy-jdk-configs-2.2-5.el7_4.noarch 42/48
Verifying : PHP-gd-5.4.16-43.el7_4.x86_64 43/48
Verifying : zabbix-web-MysqL-3.4.5-1.el7.noarch 44/48
Verifying : libzip-0.10.1-8.el7.x86_64 45/48
Verifying : zabbix-proxy-pgsql-3.4.5-1.el7.x86_64 46/48
Verifying : zabbix-server-MysqL-3.4.5-1.el7.x86_64 47/48
Verifying : lksctp-tools-1.0.17-2.el7.x86_64 48/48

Installed:
zabbix-agent.x86_64 0:3.4.5-1.el7 zabbix-get.x86_64 0:3.4.5-1.el7
zabbix-java-gateway.x86_64 0:3.4.5-1.el7 zabbix-proxy-MysqL.x86_64 0:3.4.5-1.el7
zabbix-proxy-pgsql.x86_64 0:3.4.5-1.el7 zabbix-proxy-sqlite3.x86_64 0:3.4.5-1.el7
zabbix-sender.x86_64 0:3.4.5-1.el7 zabbix-server-MysqL.x86_64 0:3.4.5-1.el7
zabbix-server-pgsql.x86_64 0:3.4.5-1.el7 zabbix-web.noarch 0:3.4.5-1.el7
zabbix-web-MysqL.noarch 0:3.4.5-1.el7 zabbix-web-pgsql.noarch 0:3.4.5-1.el7

Dependency Installed:
OpenIPMI-libs.x86_64 0:2.0.19-15.el7 OpenIPMI-modalias.x86_64 0:2.0.19-15.el7
apr.x86_64 0:1.4.8-3.el7_4.1 apr-util.x86_64 0:1.5.2-6.el7
copy-jdk-configs.noarch 0:2.2-5.el7_4 dejavu-fonts-common.noarch 0:2.33-6.el7
dejavu-sans-fonts.noarch 0:2.33-6.el7 fping.x86_64 0:3.10-1.el7
httpd.x86_64 0:2.4.6-67.el7.centos.6 httpd-tools.x86_64 0:2.4.6-67.el7.centos.6
iksemel.x86_64 0:1.4-2.el7.centos java-1.8.0-openjdk-headless.x86_64 1:1.8.0.151-5.b12.el7_4
javapackages-tools.noarch 0:3.4.1-11.el7 libXpm.x86_64 0:3.5.12-1.el7
libevent.x86_64 0:2.0.21-4.el7 libzip.x86_64 0:0.10.1-8.el7
lksctp-tools.x86_64 0:1.0.17-2.el7 mailcap.noarch 0:2.1.41-2.el7
net-snmp-libs.x86_64 1:5.7.2-28.el7 PHP.x86_64 0:5.4.16-43.el7_4
PHP-bcmath.x86_64 0:5.4.16-43.el7_4 PHP-cli.x86_64 0:5.4.16-43.el7_4
PHP-common.x86_64 0:5.4.16-43.el7_4 PHP-gd.x86_64 0:5.4.16-43.el7_4
PHP-ldap.x86_64 0:5.4.16-43.el7_4 PHP-mbstring.x86_64 0:5.4.16-43.el7_4
PHP-MysqL.x86_64 0:5.4.16-43.el7_4 PHP-pdo.x86_64 0:5.4.16-43.el7_4
PHP-pgsql.x86_64 0:5.4.16-43.el7_4 PHP-xml.x86_64 0:5.4.16-43.el7_4
postgresql-libs.x86_64 0:9.2.23-3.el7_4 python-javapackages.noarch 0:3.4.1-11.el7
python-lxml.x86_64 0:3.2.1-4.el7 t1lib.x86_64 0:5.1.2-14.el7
tzdata-java.noarch 0:2017c-1.el7 unixODBC.x86_64 0:2.3.1-11.el7

Complete!
[root@centos11 packages]#

[root@centos11 packages]# rpm -qa | grep -i zabbix
zabbix-java-gateway-3.4.5-1.el7.x86_64
zabbix-proxy-pgsql-3.4.5-1.el7.x86_64
zabbix-get-3.4.5-1.el7.x86_64
zabbix-release-3.4-1.el7.centos.noarch
zabbix-web-3.4.5-1.el7.noarch
zabbix-web-MysqL-3.4.5-1.el7.noarch
zabbix-proxy-MysqL-3.4.5-1.el7.x86_64
zabbix-server-pgsql-3.4.5-1.el7.x86_64
zabbix-server-MysqL-3.4.5-1.el7.x86_64
zabbix-sender-3.4.5-1.el7.x86_64
zabbix-web-pgsql-3.4.5-1.el7.noarch
zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64
zabbix-agent-3.4.5-1.el7.x86_64

[root@centos11 packages]# rpm -qa | grep -i zabbix | wc -l
13

查看所安装对应版本zabbix3.4的文档
[root@centos11 ~]# ls -ltr /usr/share/doc | grep zabbix
drwxr-xr-x. 2 root root 17 Jan 4 12:00 zabbix-release-3.4
drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-web-3.4.5
drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-java-gateway-3.4.5
drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-proxy-MysqL-3.4.5
drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-proxy-sqlite3-3.4.5
drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-server-pgsql-3.4.5
drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-proxy-pgsql-3.4.5
drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-server-MysqL-3.4.5
drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-agent-3.4.5
drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-sender-3.4.5
drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-get-3.4.5

以上是Zabbix安装成功

安装apache

[root@centos11 ~]# yum install httpd libxml2-devel net-snmp-devel libcurl-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirrors.cn99.com
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com
    Package httpd-2.4.6-67.el7.centos.6.x86_64 already installed and latest version
    Resolving Dependencies
    --> Running transaction check
    ---> Package libcurl-devel.x86_64 0:7.29.0-42.el7_4.1 will be installed
    base/7/x86_64/filelists_db | 6.7 MB 00:13
    updates/7/x86_64/filelists_db | 3.0 MB 00:03
    ---> Package libxml2-devel.x86_64 0:2.9.1-6.el7_2.3 will be installed
    --> Processing Dependency: zlib-devel for package: libxml2-devel-2.9.1-6.el7_2.3 .x86_64
    --> Processing Dependency: xz-devel for package: libxml2-devel-2.9.1-6.el7_2.3.x 86_64
    ---> Package net-snmp-devel.x86_64 1:5.7.2-28.el7 will be installed
    --> Processing Dependency: net-snmp-agent-libs = 1:5.7.2-28.el7 for package: 1:n et-snmp-devel-5.7.2-28.el7.x86_64
    --> Processing Dependency: tcp_wrappers-devel for package: 1:net-snmp-devel-5.7. 2-28.el7.x86_64
    --> Processing Dependency: rpm-devel for package: 1:net-snmp-devel-5.7.2-28.el7. x86_64
    --> Processing Dependency: perl-devel(x86-64) for package: 1:net-snmp-devel-5.7. 2-28.el7.x86_64
    --> Processing Dependency: openssl-devel for package: 1:net-snmp-devel-5.7.2-28. el7.x86_64
    --> Processing Dependency: lm_sensors-devel for package: 1:net-snmp-devel-5.7.2- 28.el7.x86_64
    --> Processing Dependency: elfutils-libelf-devel for package: 1:net-snmp-devel-5 .7.2-28.el7.x86_64
    --> Processing Dependency: elfutils-devel for package: 1:net-snmp-devel-5.7.2-28 .el7.x86_64
    --> Processing Dependency: libnetsnmptrapd.so.31()(64bit) for package: 1:net-snm p-devel-5.7.2-28.el7.x86_64
    --> Processing Dependency: libnetsnmpmibs.so.31()(64bit) for package: 1:net-snmp -devel-5.7.2-28.el7.x86_64
    --> Processing Dependency: libnetsnmphelpers.so.31()(64bit) for package: 1:net-s nmp-devel-5.7.2-28.el7.x86_64
    --> Processing Dependency: libnetsnmpagent.so.31()(64bit) for package: 1:net-snm p-devel-5.7.2-28.el7.x86_64
    --> Running transaction check
    ---> Package elfutils-devel.x86_64 0:0.168-8.el7 will be installed
    ---> Package elfutils-libelf-devel.x86_64 0:0.168-8.el7 will be installed
    ---> Package lm_sensors-devel.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 will be in stalled
    --> Processing Dependency: lm_sensors-libs = 3.4.0-4.20160601gitf9185e5.el7 for package: lm_sensors-devel-3.4.0-4.20160601gitf9185e5.el7.x86_64
    --> Processing Dependency: libsensors.so.4()(64bit) for package: lm_sensors-deve l-3.4.0-4.20160601gitf9185e5.el7.x86_64
    ---> Package net-snmp-agent-libs.x86_64 1:5.7.2-28.el7 will be installed
    --> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: 1:net-snmp-a gent-libs-5.7.2-28.el7.x86_64
    --> Processing Dependency: libperl.so()(64bit) for package: 1:net-snmp-agent-lib s-5.7.2-28.el7.x86_64
    ---> Package openssl-devel.x86_64 1:1.0.2k-8.el7 will be installed
    --> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2 k-8.el7.x86_64
    ---> Package perl-devel.x86_64 4:5.16.3-292.el7 will be installed
    --> Processing Dependency: systemtap-sdt-devel for package: 4:perl-devel-5.16.3- 292.el7.x86_64
    --> Processing Dependency: perl(Getopt::Long) for package: 4:perl-devel-5.16.3-2 92.el7.x86_64
    --> Processing Dependency: perl(File::Spec) for package: 4:perl-devel-5.16.3-292 .el7.x86_64
    --> Processing Dependency: perl(File::Path) for package: 4:perl-devel-5.16.3-292 .el7.x86_64
    --> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.1 6.3-292.el7.x86_64
    --> Processing Dependency: perl(ExtUtils::MakeMaker) for package: 4:perl-devel-5 .16.3-292.el7.x86_64
    --> Processing Dependency: perl(ExtUtils::Installed) for package: 4:perl-devel-5 .16.3-292.el7.x86_64
    --> Processing Dependency: libdb-devel for package: 4:perl-devel-5.16.3-292.el7. x86_64
    --> Processing Dependency: glibc-devel for package: 4:perl-devel-5.16.3-292.el7. x86_64
    --> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.16.3-292.el7.x 86_64
    ---> Package rpm-devel.x86_64 0:4.11.3-25.el7 will be installed
    --> Processing Dependency: popt-devel(x86-64) for package: rpm-devel-4.11.3-25.e l7.x86_64
    ---> Package tcp_wrappers-devel.x86_64 0:7.6-77.el7 will be installed
    ---> Package xz-devel.x86_64 0:5.2.2-1.el7 will be installed
    ---> Package zlib-devel.x86_64 0:1.2.7-17.el7 will be installed
    --> Running transaction check
    ---> Package gdbm-devel.x86_64 0:1.10-8.el7 will be installed
    ---> Package glibc-devel.x86_64 0:2.17-196.el7_4.2 will be installed
    --> Processing Dependency: glibc-headers = 2.17-196.el7_4.2 for package: glibc-d evel-2.17-196.el7_4.2.x86_64
    --> Processing Dependency: glibc-headers for package: glibc-devel-2.17-196.el7_4 .2.x86_64
    ---> Package krb5-devel.x86_64 0:1.15.1-8.el7 will be installed
    --> Processing Dependency: libkadm5(x86-64) = 1.15.1-8.el7 for package: krb5-dev el-1.15.1-8.el7.x86_64
    --> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-8.el7.x 86_64
    --> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-8.el7 .x86_64
    --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-8.el7 .x86_64
    --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-8. el7.x86_64
    ---> Package libdb-devel.x86_64 0:5.3.21-20.el7 will be installed
    ---> Package lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 will be ins talled
    ---> Package perl.x86_64 4:5.16.3-292.el7 will be installed
    --> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-292.el 7.x86_64
    --> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3 -292.el7.x86_64
    --> Processing Dependency: perl-macros for package: 4:perl-5.16.3-292.el7.x86_64
    --> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-292. el7.x8664
    --> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-292.el7.x86
    64
    --> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-292.el7.x86 _64
    --> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-292.el7. x86_64
    --> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-292.el7. x86_64
    --> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-292.el7.x86 _64
    --> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-292.el7.x86_6 4
    --> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-292.el7 .x86_64
    --> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-2 92.el7.x86_64
    --> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3- 292.el7.x86_64
    --> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-2 92.el7.x86_64
    --> Processing Dependency: perl(File::Temp) for package: 4:perl-5.16.3-292.el7.x 86_64
    --> Processing Dependency: perl(Exporter) for package: 4:perl-5.16.3-292.el7.x86 _64
    --> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-292.el7.x86_64
    ---> Package perl-ExtUtils-Install.noarch 0:1.58-292.el7 will be installed
    ---> Package perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 will be installed
    --> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-MakeMa ker-6.68-3.el7.noarch
    --> Processing Dependency: perl(Pod::Man) for package: perl-ExtUtils-MakeMaker-6 .68-3.el7.noarch
    --> Processing Dependency: perl(ExtUtils::Manifest) for package: perl-ExtUtils-M akeMaker-6.68-3.el7.noarch
    ---> Package perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7 will be installed
    ---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
    ---> Package perl-Getopt-Long.noarch 0:2.40-2.el7 will be installed
    --> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Lon g-2.40-2.el7.noarch
    --> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long- 2.40-2.el7.noarch
    ---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
    ---> Package perl-libs.x86_64 4:5.16.3-292.el7 will be installed
    ---> Package popt-devel.x86_64 0:1.13-16.el7 will be installed
    ---> Package systemtap-sdt-devel.x86_64 0:3.1-4.el74 will be installed
    --> Processing Dependency: pyparsing for package: systemtap-sdt-devel-3.1-4.el7
    4.x86_64
    --> Running transaction check
    ---> Package glibc-headers.x86_64 0:2.17-196.el7_4.2 will be installed
    --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2. 17-196.el7_4.2.x86_64
    --> Processing Dependency: kernel-headers for package: glibc-headers-2.17-196.el 7_4.2.x86_64
    ---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
    ---> Package libcom_err-devel.x86_64 0:1.42.9-10.el7 will be installed
    ---> Package libkadm5.x86_64 0:1.15.1-8.el7 will be installed
    ---> Package libselinux-devel.x86_64 0:2.5-11.el7 will be installed
    --> Processing Dependency: libsepol-devel(x86-64) >= 2.5-6 for package: libselin ux-devel-2.5-11.el7.x86_64
    --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5 -11.el7.x86_64
    --> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.5- 11.el7.x86_64
    ---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
    ---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
    ---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
    ---> Package perl-ExtUtils-Manifest.noarch 0:1.61-244.el7 will be installed
    ---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
    ---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
    ---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
    --> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Si mple-3.28-4.el7.noarch
    --> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el 7.noarch
    ---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
    --> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.e l7.noarch
    ---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
    ---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed
    ---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
    ---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
    ---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
    ---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
    ---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
    ---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
    ---> Package perl-macros.x86_64 4:5.16.3-292.el7 will be installed
    ---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
    ---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
    ---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
    ---> Package pyparsing.noarch 0:1.5.6-9.el7 will be installed
    --> Running transaction check
    ---> Package kernel-headers.x86_64 0:3.10.0-693.11.6.el7 will be installed
    ---> Package libsepol-devel.x86_64 0:2.5-6.el7 will be installed
    ---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
    ---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
    ---> Package perl-Pod-Escapes.noarch 1:1.04-292.el7 will be installed
    ---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
    --> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7 .noarch
    --> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4 .el7.noarch
    --> Running transaction check
    ---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
    ---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
    --> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository
Size

=============================================================

===================

Installing:
libcurl-devel x86_64 7.29.0-42.el7_4.1 updates 300 k
libxml2-devel x86_64 2.9.1-6.el7_2.3 base 1.0 M
net-snmp-devel x86_64 1:5.7.2-28.el7 base 257 k
Installing for dependencies:
elfutils-devel x86_64 0.168-8.el7 base 82 k
elfutils-libelf-devel x86_64 0.168-8.el7 base 37 k
gdbm-devel x86_64 1.10-8.el7 base 47 k
glibc-devel x86_64 2.17-196.el7_4.2 updates 1.1 M
glibc-headers x86_64 2.17-196.el7_4.2 updates 676 k
kernel-headers x86_64 3.10.0-693.11.6.el7 updates 6.0 M
keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k
krb5-devel x86_64 1.15.1-8.el7 base 266 k
libcom_err-devel x86_64 1.42.9-10.el7 base 31 k
libdb-devel x86_64 5.3.21-20.el7 base 38 k
libkadm5 x86_64 1.15.1-8.el7 base 174 k
libselinux-devel x86_64 2.5-11.el7 base 186 k
libsepol-devel x86_64 2.5-6.el7 base 74 k
libverto-devel x86_64 0.2.5-4.el7 base 12 k
lm_sensors-devel x86_64 3.4.0-4.20160601gitf9185e5.el7 base 26 k
lm_sensors-libs x86_64 3.4.0-4.20160601gitf9185e5.el7 base 41 k
net-snmp-agent-libs x86_64 1:5.7.2-28.el7 base 704 k
openssl-devel x86_64 1:1.0.2k-8.el7 base 1.5 M
pcre-devel x86_64 8.32-17.el7 base 480 k
perl x86_64 4:5.16.3-292.el7 base 8.0 M
perl-Carp noarch 1.26-244.el7 base 19 k
perl-Encode x86_64 2.51-7.el7 base 1.5 M
perl-Exporter noarch 5.68-3.el7 base 28 k
perl-ExtUtils-Install noarch 1.58-292.el7 base 74 k
perl-ExtUtils-MakeMaker noarch 6.68-3.el7 base 275 k
perl-ExtUtils-Manifest noarch 1.61-244.el7 base 31 k
perl-ExtUtils-ParseXS noarch 1:3.18-3.el7 base 77 k
perl-File-Path noarch 2.09-2.el7 base 26 k
perl-File-Temp noarch 0.23.01-3.el7 base 56 k
perl-Filter x86_64 1.49-3.el7 base 76 k
perl-Getopt-Long noarch 2.40-2.el7 base 56 k
perl-HTTP-Tiny noarch 0.033-3.el7 base 38 k
perl-PathTools x86_64 3.40-5.el7 base 82 k
perl-Pod-Escapes noarch 1:1.04-292.el7 base 51 k
perl-Pod-Perldoc noarch 3.20-4.el7 base 87 k
perl-Pod-Simple noarch 1:3.28-4.el7 base 216 k
perl-Pod-Usage noarch 1.63-3.el7 base 27 k
perl-Scalar-List-Utils x86_64 1.27-248.el7 base 36 k
perl-Socket x86_64 2.010-4.el7 base 49 k
perl-Storable x86_64 2.45-3.el7 base 77 k
perl-Test-Harness noarch 3.28-3.el7 base 302 k
perl-Text-ParseWords noarch 3.29-4.el7 base 14 k
perl-Time-HiRes x86_64 4:1.9725-3.el7 base 45 k
perl-Time-Local noarch 1.2300-2.el7 base 24 k
perl-constant noarch 1.27-2.el7 base 19 k
perl-devel x86_64 4:5.16.3-292.el7 base 453 k
perl-libs x86_64 4:5.16.3-292.el7 base 688 k
perl-macros x86_64 4:5.16.3-292.el7 base 43 k
perl-parent noarch 1:0.225-244.el7 base 12 k
perl-podlators noarch 2.5.1-3.el7 base 112 k
perl-threads x86_64 1.87-4.el7 base 49 k
perl-threads-shared x86_64 1.43-6.el7 base 39 k
popt-devel x86_64 1.13-16.el7 base 22 k
pyparsing noarch 1.5.6-9.el7 base 94 k
rpm-devel x86_64 4.11.3-25.el7 base 105 k
systemtap-sdt-devel x86_64 3.1-4.el7_4 updates 71 k
tcp_wrappers-devel x86_64 7.6-77.el7 base 17 k
xz-devel x86_64 5.2.2-1.el7 base 46 k
zlib-devel x86_64 1.2.7-17.el7 base 50 k

Transaction Summary

=============================================================

===================
Install 3 Packages (+59 Dependent packages)

Total download size: 26 M
Installed size: 66 M
Is this ok [y/d/N]: y
Downloading packages:
(1/62): gdbm-devel-1.10-8.el7.x86_64.rpm | 47 kB 00:06
(2/62): elfutils-libelf-devel-0.168-8.el7.x86_64.rpm | 37 kB 00:05
(3/62): glibc-devel-2.17-196.el7_4.2.x86_64.rpm | 1.1 MB 00:07
(4/62): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00
(5/62): elfutils-devel-0.168-8.el7.x86_64.rpm | 82 kB 00:08
(6/62): glibc-headers-2.17-196.el7_4.2.x86_64.rpm | 676 kB 00:10
(7/62): krb5-devel-1.15.1-8.el7.x86_64.rpm | 266 kB 00:02
(8/62): libcurl-devel-7.29.0-42.el7_4.1.x86_64.rpm | 300 kB 00:01
(9/62): libdb-devel-5.3.21-20.el7.x86_64.rpm | 38 kB 00:00
(10/62): libcom_err-devel-1.42.9-10.el7.x86_64.rpm | 31 kB 00:03
(11/62): libsepol-devel-2.5-6.el7.x86_64.rpm | 74 kB 00:00
(12/62): libverto-devel-0.2.5-4.el7.x86_64.rpm | 12 kB 00:05
(13/62): libkadm5-1.15.1-8.el7.x86_64.rpm | 174 kB 00:06
(14/62): lm_sensors-devel-3.4.0-4.20160601gitf9185e5.el7.x | 26 kB 00:00
(15/62): libselinux-devel-2.5-11.el7.x86_64.rpm | 186 kB 00:07
(16/62): libxml2-devel-2.9.1-6.el7_2.3.x86_64.rpm | 1.0 MB 00:08
(17/62): net-snmp-devel-5.7.2-28.el7.x86_64.rpm | 257 kB 00:01
(18/62): kernel-headers-3.10.0-693.11.6.el7.x86_64.rpm | 6.0 MB 00:13
(19/62): lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x8 | 41 kB 00:03
(20/62): pcre-devel-8.32-17.el7.x86_64.rpm | 480 kB 00:01
(21/62): net-snmp-agent-libs-5.7.2-28.el7.x86_64.rpm | 704 kB 00:05
(22/62): perl-Exporter-5.68-3.el7.noarch.rpm | 28 kB 00:00
(23/62): perl-ExtUtils-Install-1.58-292.el7.noarch.rpm | 74 kB 00:00
(24/62): perl-Carp-1.26-244.el7.noarch.rpm | 19 kB 00:03
(25/62): perl-Encode-2.51-7.el7.x86_64.rpm | 1.5 MB 00:02
(26/62): perl-ExtUtils-Manifest-1.61-244.el7.noarch.rpm | 31 kB 00:00
(27/62): perl-File-Path-2.09-2.el7.noarch.rpm | 26 kB 00:00
(28/62): perl-ExtUtils-ParseXS-3.18-3.el7.noarch.rpm | 77 kB 00:00
(29/62): perl-File-Temp-0.23.01-3.el7.noarch.rpm | 56 kB 00:00
(30/62): perl-Getopt-Long-2.40-2.el7.noarch.rpm | 56 kB 00:00
(31/62): perl-Filter-1.49-3.el7.x86_64.rpm | 76 kB 00:00
(32/62): perl-PathTools-3.40-5.el7.x86_64.rpm | 82 kB 00:00
(33/62): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm | 38 kB 00:00
(34/62): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm | 87 kB 00:00
(35/62): perl-Pod-Escapes-1.04-292.el7.noarch.rpm | 51 kB 00:00
(36/62): perl-ExtUtils-MakeMaker-6.68-3.el7.noarch.rpm | 275 kB 00:02
(37/62): perl-Pod-Usage-1.63-3.el7.noarch.rpm | 27 kB 00:00
(38/62): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm | 36 kB 00:00
(39/62): perl-Socket-2.010-4.el7.x86_64.rpm | 49 kB 00:00
(40/62): perl-Storable-2.45-3.el7.x86_64.rpm | 77 kB 00:00
(41/62): perl-Text-ParseWords-3.29-4.el7.noarch.rpm | 14 kB 00:00
(42/62): perl-Test-Harness-3.28-3.el7.noarch.rpm | 302 kB 00:01
(43/62): perl-Pod-Simple-3.28-4.el7.noarch.rpm | 216 kB 00:01
(44/62): perl-Time-Local-1.2300-2.el7.noarch.rpm | 24 kB 00:00
(45/62): perl-constant-1.27-2.el7.noarch.rpm | 19 kB 00:00
(46/62): perl-devel-5.16.3-292.el7.x86_64.rpm | 453 kB 00:01
(47/62): perl-macros-5.16.3-292.el7.x86_64.rpm | 43 kB 00:00
(48/62): perl-parent-0.225-244.el7.noarch.rpm | 12 kB 00:00
(49/62): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm | 45 kB 00:02
(50/62): perl-podlators-2.5.1-3.el7.noarch.rpm | 112 kB 00:00
(51/62): perl-threads-shared-1.43-6.el7.x86_64.rpm | 39 kB 00:00
(52/62): popt-devel-1.13-16.el7.x86_64.rpm | 22 kB 00:00
(53/62): perl-threads-1.87-4.el7.x86_64.rpm | 49 kB 00:00
(54/62): pyparsing-1.5.6-9.el7.noarch.rpm | 94 kB 00:00
(55/62): rpm-devel-4.11.3-25.el7.x86_64.rpm | 105 kB 00:00
(56/62): systemtap-sdt-devel-3.1-4.el7_4.x86_64.rpm | 71 kB 00:00
(57/62): tcp_wrappers-devel-7.6-77.el7.x86_64.rpm | 17 kB 00:00
(58/62): xz-devel-5.2.2-1.el7.x86_64.rpm | 46 kB 00:00
(59/62): perl-libs-5.16.3-292.el7.x86_64.rpm | 688 kB 00:03
(60/62): zlib-devel-1.2.7-17.el7.x86_64.rpm | 50 kB 00:00
(61/62): perl-5.16.3-292.el7.x86_64.rpm | 8.0 MB 00:20
(62/62): openssl-devel-1.0.2k-8.el7.x86_64.rpm | 1.5 MB 00:26

Total 561 kB/s | 26 MB 00:47
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : zlib-devel-1.2.7-17.el7.x86_64 1/62
Installing : elfutils-libelf-devel-0.168-8.el7.x86_64 2/62
Installing : xz-devel-5.2.2-1.el7.x86_64 3/62
Installing : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64 4/62
Installing : lm_sensors-devel-3.4.0-4.20160601gitf9185e5.el7.x86_64 5/62
Installing : elfutils-devel-0.168-8.el7.x86_64 6/62
Installing : 1:perl-parent-0.225-244.el7.noarch 7/62
Installing : perl-HTTP-Tiny-0.033-3.el7.noarch 8/62
Installing : perl-podlators-2.5.1-3.el7.noarch 9/62
Installing : perl-Pod-Perldoc-3.20-4.el7.noarch 10/62
Installing : 1:perl-Pod-Escapes-1.04-292.el7.noarch 11/62
Installing : perl-Text-ParseWords-3.29-4.el7.noarch 12/62
Installing : perl-Encode-2.51-7.el7.x86_64 13/62
Installing : perl-Pod-Usage-1.63-3.el7.noarch 14/62
Installing : 4:perl-macros-5.16.3-292.el7.x86_64 15/62
Installing : 4:perl-libs-5.16.3-292.el7.x86_64 16/62
Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 17/62
Installing : perl-Exporter-5.68-3.el7.noarch 18/62
Installing : perl-constant-1.27-2.el7.noarch 19/62
Installing : perl-Filter-1.49-3.el7.x86_64 20/62
Installing : perl-Time-Local-1.2300-2.el7.noarch 21/62
Installing : perl-Socket-2.010-4.el7.x86_64 22/62
Installing : perl-Storable-2.45-3.el7.x86_64 23/62
Installing : perl-PathTools-3.40-5.el7.x86_64 24/62
Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64 25/62
Installing : perl-threads-shared-1.43-6.el7.x86_64 26/62
Installing : perl-threads-1.87-4.el7.x86_64 27/62
Installing : perl-File-Temp-0.23.01-3.el7.noarch 28/62
Installing : perl-File-Path-2.09-2.el7.noarch 29/62
Installing : perl-Carp-1.26-244.el7.noarch 30/62
Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch 31/62
Installing : perl-Getopt-Long-2.40-2.el7.noarch 32/62
Installing : 4:perl-5.16.3-292.el7.x86_64 33/62
Installing : perl-Test-Harness-3.28-3.el7.noarch 34/62
Installing : perl-ExtUtils-Manifest-1.61-244.el7.noarch 35/62
Installing : 1:net-snmp-agent-libs-5.7.2-28.el7.x86_64 36/62
Installing : tcp_wrappers-devel-7.6-77.el7.x86_64 37/62
Installing : libsepol-devel-2.5-6.el7.x86_64 38/62
Installing : libdb-devel-5.3.21-20.el7.x86_64 39/62
Installing : kernel-headers-3.10.0-693.11.6.el7.x86_64 40/62
Installing : glibc-headers-2.17-196.el7_4.2.x86_64 41/62
Installing : glibc-devel-2.17-196.el7_4.2.x86_64 42/62
Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 43/62
Installing : pcre-devel-8.32-17.el7.x86_64 44/62
Installing : libselinux-devel-2.5-11.el7.x86_64 45/62
Installing : libcom_err-devel-1.42.9-10.el7.x86_64 46/62
Installing : popt-devel-1.13-16.el7.x86_64 47/62
Installing : rpm-devel-4.11.3-25.el7.x86_64 48/62
Installing : libverto-devel-0.2.5-4.el7.x86_64 49/62
Installing : libkadm5-1.15.1-8.el7.x86_64 50/62
Installing : krb5-devel-1.15.1-8.el7.x86_64 51/62
Installing : 1:openssl-devel-1.0.2k-8.el7.x86_64 52/62
Installing : gdbm-devel-1.10-8.el7.x86_64 53/62
Installing : pyparsing-1.5.6-9.el7.noarch 54/62
Installing : systemtap-sdt-devel-3.1-4.el7_4.x86_64 55/62
Installing : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch 56/62
Installing : 4:perl-devel-5.16.3-292.el7.x86_64 57/62
Installing : perl-ExtUtils-Install-1.58-292.el7.noarch 58/62
Installing : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch 59/62
Installing : 1:net-snmp-devel-5.7.2-28.el7.x86_64 60/62
Installing : libxml2-devel-2.9.1-6.el7_2.3.x86_64 61/62
Installing : libcurl-devel-7.29.0-42.el7_4.1.x86_64 62/62
Verifying : perl-HTTP-Tiny-0.033-3.el7.noarch 1/62
Verifying : zlib-devel-1.2.7-17.el7.x86_64 2/62
Verifying : libxml2-devel-2.9.1-6.el7_2.3.x86_64 3/62
Verifying : perl-threads-shared-1.43-6.el7.x86_64 4/62
Verifying : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 5/62
Verifying : perl-Exporter-5.68-3.el7.noarch 6/62
Verifying : perl-constant-1.27-2.el7.noarch 7/62
Verifying : perl-PathTools-3.40-5.el7.x86_64 8/62
Verifying : 1:net-snmp-devel-5.7.2-28.el7.x86_64 9/62
Verifying : 4:perl-macros-5.16.3-292.el7.x86_64 10/62
Verifying : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch 11/62
Verifying : pyparsing-1.5.6-9.el7.noarch 12/62
Verifying : gdbm-devel-1.10-8.el7.x86_64 13/62
Verifying : libcurl-devel-7.29.0-42.el7_4.1.x86_64 14/62
Verifying : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch 15/62
Verifying : 1:perl-parent-0.225-244.el7.noarch 16/62
Verifying : libkadm5-1.15.1-8.el7.x86_64 17/62
Verifying : glibc-devel-2.17-196.el7_4.2.x86_64 18/62
Verifying : 4:perl-5.16.3-292.el7.x86_64 19/62
Verifying : libverto-devel-0.2.5-4.el7.x86_64 20/62
Verifying : popt-devel-1.13-16.el7.x86_64 21/62
Verifying : perl-Test-Harness-3.28-3.el7.noarch 22/62
Verifying : libcom_err-devel-1.42.9-10.el7.x86_64 23/62
Verifying : pcre-devel-8.32-17.el7.x86_64 24/62
Verifying : perl-Filter-1.49-3.el7.x86_64 25/62
Verifying : perl-File-Temp-0.23.01-3.el7.noarch 26/62
Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 27/62
Verifying : 1:perl-Pod-Simple-3.28-4.el7.noarch 28/62
Verifying : 4:perl-devel-5.16.3-292.el7.x86_64 29/62
Verifying : perl-Time-Local-1.2300-2.el7.noarch 30/62
Verifying : 4:perl-libs-5.16.3-292.el7.x86_64 31/62
Verifying : perl-Pod-Perldoc-3.20-4.el7.noarch 32/62
Verifying : 1:openssl-devel-1.0.2k-8.el7.x86_64 33/62
Verifying : glibc-headers-2.17-196.el7_4.2.x86_64 34/62
Verifying : perl-Socket-2.010-4.el7.x86_64 35/62
Verifying : kernel-headers-3.10.0-693.11.6.el7.x86_64 36/62
Verifying : rpm-devel-4.11.3-25.el7.x86_64 37/62
Verifying : libselinux-devel-2.5-11.el7.x86_64 38/62
Verifying : perl-podlators-2.5.1-3.el7.noarch 39/62
Verifying : perl-ExtUtils-Install-1.58-292.el7.noarch 40/62
Verifying : perl-Storable-2.45-3.el7.x86_64 41/62
Verifying : perl-Scalar-List-Utils-1.27-248.el7.x86_64 42/62
Verifying : systemtap-sdt-devel-3.1-4.el7_4.x86_64 43/62
Verifying : 1:perl-Pod-Escapes-1.04-292.el7.noarch 44/62
Verifying : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64 45/62
Verifying : libdb-devel-5.3.21-20.el7.x86_64 46/62
Verifying : perl-Pod-Usage-1.63-3.el7.noarch 47/62
Verifying : perl-Encode-2.51-7.el7.x86_64 48/62
Verifying : perl-ExtUtils-Manifest-1.61-244.el7.noarch 49/62
Verifying : xz-devel-5.2.2-1.el7.x86_64 50/62
Verifying : elfutils-devel-0.168-8.el7.x86_64 51/62
Verifying : perl-Getopt-Long-2.40-2.el7.noarch 52/62
Verifying : libsepol-devel-2.5-6.el7.x86_64 53/62
Verifying : krb5-devel-1.15.1-8.el7.x86_64 54/62
Verifying : perl-threads-1.87-4.el7.x86_64 55/62
Verifying : lm_sensors-devel-3.4.0-4.20160601gitf9185e5.el7.x86_64 56/62
Verifying : perl-Text-ParseWords-3.29-4.el7.noarch 57/62
Verifying : tcp_wrappers-devel-7.6-77.el7.x86_64 58/62
Verifying : perl-File-Path-2.09-2.el7.noarch 59/62
Verifying : perl-Carp-1.26-244.el7.noarch 60/62
Verifying : elfutils-libelf-devel-0.168-8.el7.x86_64 61/62
Verifying : 1:net-snmp-agent-libs-5.7.2-28.el7.x86_64 62/62

Installed:
libcurl-devel.x86_64 0:7.29.0-42.el7_4.1
libxml2-devel.x86_64 0:2.9.1-6.el7_2.3
net-snmp-devel.x86_64 1:5.7.2-28.el7

Dependency Installed:
elfutils-devel.x86_64 0:0.168-8.el7
elfutils-libelf-devel.x86_64 0:0.168-8.el7
gdbm-devel.x86_64 0:1.10-8.el7
glibc-devel.x86_64 0:2.17-196.el7_4.2
glibc-headers.x86_64 0:2.17-196.el7_4.2
kernel-headers.x86_64 0:3.10.0-693.11.6.el7
keyutils-libs-devel.x86_64 0:1.5.8-3.el7
krb5-devel.x86_64 0:1.15.1-8.el7
libcom_err-devel.x86_64 0:1.42.9-10.el7
libdb-devel.x86_64 0:5.3.21-20.el7
libkadm5.x86_64 0:1.15.1-8.el7
libselinux-devel.x86_64 0:2.5-11.el7
libsepol-devel.x86_64 0:2.5-6.el7
libverto-devel.x86_64 0:0.2.5-4.el7
lm_sensors-devel.x86_64 0:3.4.0-4.20160601gitf9185e5.el7
lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7
net-snmp-agent-libs.x86_64 1:5.7.2-28.el7
openssl-devel.x86_64 1:1.0.2k-8.el7
pcre-devel.x86_64 0:8.32-17.el7
perl.x86_64 4:5.16.3-292.el7
perl-Carp.noarch 0:1.26-244.el7
perl-Encode.x86_64 0:2.51-7.el7
perl-Exporter.noarch 0:5.68-3.el7
perl-ExtUtils-Install.noarch 0:1.58-292.el7
perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7
perl-ExtUtils-Manifest.noarch 0:1.61-244.el7
perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7
perl-File-Path.noarch 0:2.09-2.el7
perl-File-Temp.noarch 0:0.23.01-3.el7
perl-Filter.x86_64 0:1.49-3.el7
perl-Getopt-Long.noarch 0:2.40-2.el7
perl-HTTP-Tiny.noarch 0:0.033-3.el7
perl-PathTools.x86_64 0:3.40-5.el7
perl-Pod-Escapes.noarch 1:1.04-292.el7
perl-Pod-Perldoc.noarch 0:3.20-4.el7
perl-Pod-Simple.noarch 1:3.28-4.el7
perl-Pod-Usage.noarch 0:1.63-3.el7
perl-Scalar-List-Utils.x86_64 0:1.27-248.el7
perl-Socket.x86_64 0:2.010-4.el7
perl-Storable.x86_64 0:2.45-3.el7
perl-Test-Harness.noarch 0:3.28-3.el7
perl-Text-ParseWords.noarch 0:3.29-4.el7
perl-Time-HiRes.x86_64 4:1.9725-3.el7
perl-Time-Local.noarch 0:1.2300-2.el7
perl-constant.noarch 0:1.27-2.el7
perl-devel.x86_64 4:5.16.3-292.el7
perl-libs.x86_64 4:5.16.3-292.el7
perl-macros.x86_64 4:5.16.3-292.el7
perl-parent.noarch 1:0.225-244.el7
perl-podlators.noarch 0:2.5.1-3.el7
perl-threads.x86_64 0:1.87-4.el7
perl-threads-shared.x86_64 0:1.43-6.el7
popt-devel.x86_64 0:1.13-16.el7
pyparsing.noarch 0:1.5.6-9.el7
rpm-devel.x86_64 0:4.11.3-25.el7
systemtap-sdt-devel.x86_64 0:3.1-4.el7_4
tcp_wrappers-devel.x86_64 0:7.6-77.el7
xz-devel.x86_64 0:5.2.2-1.el7
zlib-devel.x86_64 0:1.2.7-17.el7

Complete!
[root@centos11 ~]#

检查是否安装成功

[root@centos11 ~]# rpm -qa | grep -i httpd
httpd-tools-2.4.6-67.el7.centos.6.x86_64
httpd-2.4.6-67.el7.centos.6.x86_64

以上httpd 已安装

安装PHP和PHP相应模块

[root@centos11 ~]# yum install PHP PHP-devel -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirrors.cn99.com
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com
    Package PHP-5.4.16-43.el7_4.x86_64 already installed and latest version
    Resolving Dependencies
    --> Running transaction check
    ---> Package PHP-devel.x86_64 0:5.4.16-43.el7_4 will be installed
    --> Processing Dependency: automake for package: PHP-devel-5.4.16-43.el7_4.x86_64
    --> Processing Dependency: autoconf for package: PHP-devel-5.4.16-43.el7_4.x86_64
    --> Running transaction check
    ---> Package autoconf.noarch 0:2.69-11.el7 will be installed
    --> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
    --> Processing Dependency: perl(Data::Dumper) for package: autoconf-2.69-11.el7.noarch
    ---> Package automake.noarch 0:1.13.4-3.el7 will be installed
    --> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
    --> Running transaction check
    ---> Package m4.x86_64 0:1.4.16-10.el7 will be installed
    ---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
    ---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
    --> Finished Dependency Resolution

Dependencies Resolved

==================================================================================
Package Arch Version Repository Size

==================================================================================
Installing:
PHP-devel x86_64 5.4.16-43.el7_4 updates 602 k
Installing for dependencies:
autoconf noarch 2.69-11.el7 base 701 k
automake noarch 1.13.4-3.el7 base 679 k
m4 x86_64 1.4.16-10.el7 base 256 k
perl-Data-Dumper x86_64 2.145-3.el7 base 47 k
perl-Thread-Queue noarch 3.02-2.el7 base 17 k

Transaction Summary

==================================================================================
Install 1 Package (+5 Dependent packages)

Total download size: 2.2 M
Installed size: 8.4 M
Downloading packages:
(1/6): perl-Thread-Queue-3.02-2.el7.noarch.rpm | 17 kB 00:00:01
(2/6): perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00:01
(3/6): m4-1.4.16-10.el7.x86_64.rpm | 256 kB 00:00:02
(4/6): automake-1.13.4-3.el7.noarch.rpm | 679 kB 00:00:03
(5/6): PHP-devel-5.4.16-43.el7_4.x86_64.rpm | 602 kB 00:00:01
(6/6): autoconf-2.69-11.el7.noarch.rpm | 701 kB 00:00:04

Total 462 kB/s | 2.2 MB 00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : m4-1.4.16-10.el7.x86_64 1/6
Installing : perl-Thread-Queue-3.02-2.el7.noarch 2/6
Installing : perl-Data-Dumper-2.145-3.el7.x86_64 3/6
Installing : autoconf-2.69-11.el7.noarch 4/6
Installing : automake-1.13.4-3.el7.noarch 5/6
Installing : PHP-devel-5.4.16-43.el7_4.x86_64 6/6
Verifying : autoconf-2.69-11.el7.noarch 1/6
Verifying : perl-Data-Dumper-2.145-3.el7.x86_64 2/6
Verifying : perl-Thread-Queue-3.02-2.el7.noarch 3/6
Verifying : PHP-devel-5.4.16-43.el7_4.x86_64 4/6
Verifying : automake-1.13.4-3.el7.noarch 5/6
Verifying : m4-1.4.16-10.el7.x86_64 6/6

Installed:
PHP-devel.x86_64 0:5.4.16-43.el7_4

Dependency Installed:
autoconf.noarch 0:2.69-11.el7 automake.noarch 0:1.13.4-3.el7
m4.x86_64 0:1.4.16-10.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7
perl-Thread-Queue.noarch 0:3.02-2.el7

Complete!
[root@centos11 ~]# yum install PHP-fpm PHP-fpm-devel -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirrors.cn99.com
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com
    No package PHP-fpm-devel available.
    Resolving Dependencies
    --> Running transaction check
    ---> Package PHP-fpm.x86_64 0:5.4.16-43.el7_4 will be installed
    --> Finished Dependency Resolution

Dependencies Resolved

==================================================================================
Package Arch Version Repository Size

==================================================================================
Installing:
PHP-fpm x86_64 5.4.16-43.el7_4 updates 1.4 M

Transaction Summary

==================================================================================
Install 1 Package

Total download size: 1.4 M
Installed size: 4.5 M
Downloading packages:
PHP-fpm-5.4.16-43.el7_4.x86_64.rpm | 1.4 MB 00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : PHP-fpm-5.4.16-43.el7_4.x86_64 1/1
Verifying : PHP-fpm-5.4.16-43.el7_4.x86_64 1/1

Installed:
PHP-fpm.x86_64 0:5.4.16-43.el7_4

Complete!
[root@centos11 ~]#

检查是否已经安装PHP

[root@centos11 ~]# rpm -qa | grep -i PHP
PHP-common-5.4.16-43.el7_4.x86_64
PHP-xml-5.4.16-43.el7_4.x86_64
PHP-cli-5.4.16-43.el7_4.x86_64
PHP-5.4.16-43.el7_4.x86_64
PHP-devel-5.4.16-43.el7_4.x86_64
PHP-pdo-5.4.16-43.el7_4.x86_64
PHP-MysqL-5.4.16-43.el7_4.x86_64
PHP-ldap-5.4.16-43.el7_4.x86_64
PHP-bcmath-5.4.16-43.el7_4.x86_64
PHP-gd-5.4.16-43.el7_4.x86_64
PHP-fpm-5.4.16-43.el7_4.x86_64
PHP-pgsql-5.4.16-43.el7_4.x86_64
PHP-mbstring-5.4.16-43.el7_4.x86_64

以上已安装PHP成功

安装MysqL server
因为centos7默认的yum安装的数据库是marridb,所以我们需要手动下载MysqL rpm包来安装MysqL
下载链接: https://dev.mysql.com/downloads/mysql/

查看所下载的安装包
[root@centos11 MysqL5.6]# ls -ltr
total 84264
-rw-r--r--. 1 root root 62426388 Jan 15 16:32 MysqL-server-5.6.39-1.el7.x86_64.rpm
-rw-r--r--. 1 root root 3533032 Jan 15 16:35 MysqL-devel-5.6.39-1.el7.x86_64.rpm
-rw-r--r--. 1 root root 20323040 Jan 15 16:38 MysqL-client-5.6.39-1.el7.x86_64.rpm

开始安装MysqL server

[root@centos11 MysqL5.6]# rpm -ivh MysqL-server-5.6.39-1.el7.x86_64.rpm
warning: MysqL-server-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
file /usr/share/MysqL/charsets/README from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/czech/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/danish/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/dutch/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/english/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/estonian/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/french/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/german/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/greek/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/hungarian/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/italian/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/japanese/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/korean/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/norwegian-ny/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/norwegian/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/polish/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/portuguese/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/romanian/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/russian/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/serbian/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/slovak/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/spanish/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/swedish/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/ukrainian/errmsg.sys from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/Index.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/armscii8.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/ascii.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/cp1250.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/cp1251.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/cp1256.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/cp1257.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/cp850.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/cp852.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/cp866.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/dec8.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/geostd8.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/greek.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/hebrew.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/hp8.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/keybcs2.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/koi8r.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/koi8u.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/latin1.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/latin2.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/latin5.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/latin7.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/macce.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/macroman.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/MysqL/charsets/swe7.xml from install of MysqL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
有报错

强制卸载mariadb-libs-5.5.56-2.el7.x86_64 包可以解决
[root@centos11 MysqL5.6]# rpm -qa | grep mariadb
mariadb-libs-5.5.56-2.el7.x86_64
[root@centos11 MysqL5.6]# rpm -e mariadb-libs-5.5.56-2.el7.x86_64
error: Failed dependencies:
libMysqLclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-6.el7.x86_64
libMysqLclient.so.18()(64bit) is needed by (installed) PHP-MysqL-5.4.16-43.el7_4.x86_64
libMysqLclient.so.18()(64bit) is needed by (installed) zabbix-proxy-MysqL-3.4.5-1.el7.x86_64
libMysqLclient.so.18()(64bit) is needed by (installed) zabbix-server-MysqL-3.4.5-1.el7.x86_64
libMysqLclient.so.18(libMysqLclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-6.el7.x86_64
libMysqLclient.so.18(libMysqLclient_18)(64bit) is needed by (installed) PHP-MysqL-5.4.16-43.el7_4.x86_64
libMysqLclient.so.18(libMysqLclient_18)(64bit) is needed by (installed) zabbix-proxy-MysqL-3.4.5-1.el7.x86_64
libMysqLclient.so.18(libMysqLclient_18)(64bit) is needed by (installed) zabbix-server-MysqL-3.4.5-1.el7.x86_64
[root@centos11 MysqL5.6]# rpm -e mariadb-libs-5.5.56-2.el7.x86_64 --nodeps
[root@centos11 MysqL5.6]# rpm -qa | grep mariadb

正式安装MysqL server

[root@centos11 MysqL5.6]# rpm -ivh MysqL-server-5.6.39-1.el7.x86_64.rpm
warning: MysqL-server-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:MysqL-server-5.6.39-1.el7 ################################# [100%]
warning: user MysqL does not exist - using root
warning: group MysqL does not exist - using root
warning: user MysqL does not exist - using root
warning: group MysqL does not exist - using root
2018-01-15 17:32:03 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-15 17:32:03 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-01-15 17:32:03 0 [Note] /usr/sbin/MysqLd (MysqLd 5.6.39) starting as process 4171 ...
2018-01-15 17:32:03 4171 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-01-15 17:32:03 4171 [Note] InnoDB: The InnoDB memory heap is disabled
2018-01-15 17:32:03 4171 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-15 17:32:03 4171 [Note] InnoDB: Memory barrier is not used
2018-01-15 17:32:03 4171 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-01-15 17:32:03 4171 [Note] InnoDB: Using Linux native AIO
2018-01-15 17:32:03 4171 [Note] InnoDB: Not using cpu crc32 instructions
2018-01-15 17:32:03 4171 [Note] InnoDB: Initializing buffer pool,size = 128.0M
2018-01-15 17:32:03 4171 [Note] InnoDB: Completed initialization of buffer pool
2018-01-15 17:32:04 4171 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2018-01-15 17:32:04 4171 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2018-01-15 17:32:04 4171 [Note] InnoDB: Database physically writes the file full: wait...
2018-01-15 17:32:04 4171 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2018-01-15 17:32:06 4171 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2018-01-15 17:32:07 4171 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2018-01-15 17:32:07 4171 [Warning] InnoDB: New log files created,LSN=45781
2018-01-15 17:32:07 4171 [Note] InnoDB: Doublewrite buffer not found: creating new
2018-01-15 17:32:07 4171 [Note] InnoDB: Doublewrite buffer created
2018-01-15 17:32:07 4171 [Note] InnoDB: 128 rollback segment(s) are active.
2018-01-15 17:32:07 4171 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-01-15 17:32:07 4171 [Note] InnoDB: Foreign key constraint system tables created
2018-01-15 17:32:07 4171 [Note] InnoDB: Creating tablespace and datafile system tables.
2018-01-15 17:32:07 4171 [Note] InnoDB: Tablespace and datafile system tables created.
2018-01-15 17:32:07 4171 [Note] InnoDB: Waiting for purge to start
2018-01-15 17:32:07 4171 [Note] InnoDB: 5.6.39 started; log sequence number 0
A random root password has been set. You will find it in '/root/.MysqL_secret'.
2018-01-15 17:32:07 4171 [Note] binlog end
2018-01-15 17:32:07 4171 [Note] InnoDB: FTS optimize thread exiting.
2018-01-15 17:32:07 4171 [Note] InnoDB: Starting shutdown...
2018-01-15 17:32:09 4171 [Note] InnoDB: Shutdown completed; log sequence number 1625977

2018-01-15 17:32:09 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-15 17:32:09 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-01-15 17:32:09 0 [Note] /usr/sbin/MysqLd (MysqLd 5.6.39) starting as process 4193 ...
2018-01-15 17:32:09 4193 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-01-15 17:32:09 4193 [Note] InnoDB: The InnoDB memory heap is disabled
2018-01-15 17:32:09 4193 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-15 17:32:09 4193 [Note] InnoDB: Memory barrier is not used
2018-01-15 17:32:09 4193 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-01-15 17:32:09 4193 [Note] InnoDB: Using Linux native AIO
2018-01-15 17:32:09 4193 [Note] InnoDB: Not using cpu crc32 instructions
2018-01-15 17:32:09 4193 [Note] InnoDB: Initializing buffer pool,size = 128.0M
2018-01-15 17:32:09 4193 [Note] InnoDB: Completed initialization of buffer pool
2018-01-15 17:32:09 4193 [Note] InnoDB: Highest supported file format is Barracuda.
2018-01-15 17:32:09 4193 [Note] InnoDB: 128 rollback segment(s) are active.
2018-01-15 17:32:09 4193 [Note] InnoDB: Waiting for purge to start
2018-01-15 17:32:09 4193 [Note] InnoDB: 5.6.39 started; log sequence number 1625977
2018-01-15 17:32:10 4193 [Note] binlog end
2018-01-15 17:32:10 4193 [Note] InnoDB: FTS optimize thread exiting.
2018-01-15 17:32:10 4193 [Note] InnoDB: Starting shutdown...
2018-01-15 17:32:11 4193 [Note] InnoDB: Shutdown completed; log sequence number 1625987

A RANDOM PASSWORD HAS BEEN SET FOR THE MysqL root USER !
You will find that password in '/root/.MysqL_secret'.

You must change that password on your first connect,
no other statement but 'SET PASSWORD' will be accepted.
See the manual for the semantics of the 'password expired' flag.

Also,the account for the anonymous user has been removed.

In addition,you can run:

/usr/bin/MysqL_secure_installation

which will also give you the option of removing the test database.
This is strongly recommended for production servers.

See the manual for more instructions.

Please report any problems at http://bugs.mysql.com/

The latest information about MysqL is available on the web at

http://www.mysql.com

Support MysqL by buying support/licenses at http://shop.mysql.com

New default config file was created as /usr/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings

[root@centos11 MysqL5.6]# id MysqL
uid=995(MysqL) gid=992(MysqL) groups=992(MysqL)

[root@centos11 MysqL5.6]# rpm -ivh MysqL-devel-5.6.39-1.el7.x86_64.rpm MysqL-client-5.6.39-1.el7.x86_64.rpm
warning: MysqL-devel-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:MysqL-client-5.6.39-1.el7 ################################# [ 50%]
2:MysqL-devel-5.6.39-1.el7 ################################# [100%]
[root@centos11 MysqL5.6]#

检查安装结果
[root@centos11 MysqL5.6]# rpm -qa | grep MysqL
MysqL-client-5.6.39-1.el7.x86_64
MysqL-server-5.6.39-1.el7.x86_64
MysqL-devel-5.6.39-1.el7.x86_64

以上表明MysqL 安装成功

[root@centos11 MysqL5.6]# which MysqL_install_db
/usr/bin/MysqL_install_db
[root@centos11 MysqL5.6]# rpm -ql MysqL-server-5.6.39-1.el7.x86_64
/etc/init.d/MysqL
/etc/logrotate.d/MysqL
/etc/my.cnf
/etc/my.cnf.d
/usr/bin/innochecksum
/usr/bin/my_print_defaults
/usr/bin/myisam_ftdump
/usr/bin/myisamchk
/usr/bin/myisamlog
/usr/bin/myisampack
/usr/bin/MysqL_convert_table_format
/usr/bin/MysqL_fix_extensions
/usr/bin/MysqL_install_db
/usr/bin/MysqL_plugin
/usr/bin/MysqL_secure_installation
/usr/bin/MysqL_setpermission
/usr/bin/MysqL_tzinfo_to_sql
/usr/bin/MysqL_upgrade
/usr/bin/MysqL_zap
/usr/bin/MysqLbug
/usr/bin/MysqLd_multi
/usr/bin/MysqLd_safe
/usr/bin/MysqLdumpslow
/usr/bin/MysqLhotcopy
/usr/bin/MysqLtest
/usr/bin/perror
/usr/bin/replace
/usr/bin/resolve_stack_dump
/usr/bin/resolveip
/usr/lib64/MysqL/plugin/adt_null.so
/usr/lib64/MysqL/plugin/auth.so
/usr/lib64/MysqL/plugin/auth_socket.so
/usr/lib64/MysqL/plugin/auth_test_plugin.so
/usr/lib64/MysqL/plugin/connection_control.so
/usr/lib64/MysqL/plugin/daemon_example.ini
/usr/lib64/MysqL/plugin/debug/adt_null.so
/usr/lib64/MysqL/plugin/debug/auth.so
/usr/lib64/MysqL/plugin/debug/auth_socket.so
/usr/lib64/MysqL/plugin/debug/auth_test_plugin.so
/usr/lib64/MysqL/plugin/debug/connection_control.so
/usr/lib64/MysqL/plugin/debug/innodb_engine.so
/usr/lib64/MysqL/plugin/debug/libdaemon_example.so
/usr/lib64/MysqL/plugin/debug/libmemcached.so
/usr/lib64/MysqL/plugin/debug/mypluglib.so
/usr/lib64/MysqL/plugin/debug/MysqL_no_login.so
/usr/lib64/MysqL/plugin/debug/qa_auth_client.so
/usr/lib64/MysqL/plugin/debug/qa_auth_interface.so
/usr/lib64/MysqL/plugin/debug/qa_auth_server.so
/usr/lib64/MysqL/plugin/debug/semisync_master.so
/usr/lib64/MysqL/plugin/debug/semisync_slave.so
/usr/lib64/MysqL/plugin/debug/test_udf_services.so
/usr/lib64/MysqL/plugin/debug/validate_password.so
/usr/lib64/MysqL/plugin/innodb_engine.so
/usr/lib64/MysqL/plugin/libdaemon_example.so
/usr/lib64/MysqL/plugin/libmemcached.so
/usr/lib64/MysqL/plugin/mypluglib.so
/usr/lib64/MysqL/plugin/MysqL_no_login.so
/usr/lib64/MysqL/plugin/qa_auth_client.so
/usr/lib64/MysqL/plugin/qa_auth_interface.so
/usr/lib64/MysqL/plugin/qa_auth_server.so
/usr/lib64/MysqL/plugin/semisync_master.so
/usr/lib64/MysqL/plugin/semisync_slave.so
/usr/lib64/MysqL/plugin/test_udf_services.so
/usr/lib64/MysqL/plugin/validate_password.so
/usr/sbin/MysqLd
/usr/sbin/MysqLd-debug
/usr/sbin/rcMysqL
/usr/share/doc/MysqL-server-5.6.39
/usr/share/doc/MysqL-server-5.6.39/copYING
/usr/share/doc/MysqL-server-5.6.39/ChangeLog
/usr/share/doc/MysqL-server-5.6.39/INFO_BIN
/usr/share/doc/MysqL-server-5.6.39/INFO_SRC
/usr/share/doc/MysqL-server-5.6.39/README
/usr/share/doc/MysqL-server-5.6.39/my-default.cnf
/usr/share/man/man1/innochecksum.1.gz
/usr/share/man/man1/my_print_defaults.1.gz
/usr/share/man/man1/myisam_ftdump.1.gz
/usr/share/man/man1/myisamchk.1.gz
/usr/share/man/man1/myisamlog.1.gz
/usr/share/man/man1/myisampack.1.gz
/usr/share/man/man1/MysqL.server.1.gz
/usr/share/man/man1/MysqL_convert_table_format.1.gz
/usr/share/man/man1/MysqL_fix_extensions.1.gz
/usr/share/man/man1/MysqL_install_db.1.gz
/usr/share/man/man1/MysqL_plugin.1.gz
/usr/share/man/man1/MysqL_secure_installation.1.gz
/usr/share/man/man1/MysqL_setpermission.1.gz
/usr/share/man/man1/MysqL_tzinfo_to_sql.1.gz
/usr/share/man/man1/MysqL_upgrade.1.gz
/usr/share/man/man1/MysqL_zap.1.gz
/usr/share/man/man1/MysqLbug.1.gz
/usr/share/man/man1/MysqLd_multi.1.gz
/usr/share/man/man1/MysqLd_safe.1.gz
/usr/share/man/man1/MysqLdumpslow.1.gz
/usr/share/man/man1/MysqLhotcopy.1.gz
/usr/share/man/man1/MysqLman.1.gz
/usr/share/man/man1/perror.1.gz
/usr/share/man/man1/replace.1.gz
/usr/share/man/man1/resolve_stack_dump.1.gz
/usr/share/man/man1/resolveip.1.gz
/usr/share/man/man8/MysqLd.8.gz
/usr/share/MysqL
/usr/share/MysqL/SELinux
/usr/share/MysqL/SELinux/RHEL4
/usr/share/MysqL/SELinux/RHEL4/MysqL.fc
/usr/share/MysqL/SELinux/RHEL4/MysqL.te
/usr/share/MysqL/binary-configure
/usr/share/MysqL/bulgarian
/usr/share/MysqL/bulgarian/errmsg.sys
/usr/share/MysqL/charsets
/usr/share/MysqL/charsets/Index.xml
/usr/share/MysqL/charsets/README
/usr/share/MysqL/charsets/armscii8.xml
/usr/share/MysqL/charsets/ascii.xml
/usr/share/MysqL/charsets/cp1250.xml
/usr/share/MysqL/charsets/cp1251.xml
/usr/share/MysqL/charsets/cp1256.xml
/usr/share/MysqL/charsets/cp1257.xml
/usr/share/MysqL/charsets/cp850.xml
/usr/share/MysqL/charsets/cp852.xml
/usr/share/MysqL/charsets/cp866.xml
/usr/share/MysqL/charsets/dec8.xml
/usr/share/MysqL/charsets/geostd8.xml
/usr/share/MysqL/charsets/greek.xml
/usr/share/MysqL/charsets/hebrew.xml
/usr/share/MysqL/charsets/hp8.xml
/usr/share/MysqL/charsets/keybcs2.xml
/usr/share/MysqL/charsets/koi8r.xml
/usr/share/MysqL/charsets/koi8u.xml
/usr/share/MysqL/charsets/latin1.xml
/usr/share/MysqL/charsets/latin2.xml
/usr/share/MysqL/charsets/latin5.xml
/usr/share/MysqL/charsets/latin7.xml
/usr/share/MysqL/charsets/macce.xml
/usr/share/MysqL/charsets/macroman.xml
/usr/share/MysqL/charsets/swe7.xml
/usr/share/MysqL/czech
/usr/share/MysqL/czech/errmsg.sys
/usr/share/MysqL/danish
/usr/share/MysqL/danish/errmsg.sys
/usr/share/MysqL/dictionary.txt
/usr/share/MysqL/dutch
/usr/share/MysqL/dutch/errmsg.sys
/usr/share/MysqL/english
/usr/share/MysqL/english/errmsg.sys
/usr/share/MysqL/errmsg-utf8.txt
/usr/share/MysqL/estonian
/usr/share/MysqL/estonian/errmsg.sys
/usr/share/MysqL/fill_help_tables.sql
/usr/share/MysqL/french
/usr/share/MysqL/french/errmsg.sys
/usr/share/MysqL/german
/usr/share/MysqL/german/errmsg.sys
/usr/share/MysqL/greek
/usr/share/MysqL/greek/errmsg.sys
/usr/share/MysqL/hungarian
/usr/share/MysqL/hungarian/errmsg.sys
/usr/share/MysqL/innodb_memcached_config.sql
/usr/share/MysqL/italian
/usr/share/MysqL/italian/errmsg.sys
/usr/share/MysqL/japanese
/usr/share/MysqL/japanese/errmsg.sys
/usr/share/MysqL/korean
/usr/share/MysqL/korean/errmsg.sys
/usr/share/MysqL/magic
/usr/share/MysqL/my-default.cnf
/usr/share/MysqL/MysqL-log-rotate
/usr/share/MysqL/MysqL.server
/usr/share/MysqL/MysqL_security_commands.sql
/usr/share/MysqL/MysqL_system_tables.sql
/usr/share/MysqL/MysqL_system_tables_data.sql
/usr/share/MysqL/MysqL_test_data_timezone.sql
/usr/share/MysqL/MysqLd_multi.server
/usr/share/MysqL/norwegian
/usr/share/MysqL/norwegian-ny
/usr/share/MysqL/norwegian-ny/errmsg.sys
/usr/share/MysqL/norwegian/errmsg.sys
/usr/share/MysqL/polish
/usr/share/MysqL/polish/errmsg.sys
/usr/share/MysqL/portuguese
/usr/share/MysqL/portuguese/errmsg.sys
/usr/share/MysqL/romanian
/usr/share/MysqL/romanian/errmsg.sys
/usr/share/MysqL/russian
/usr/share/MysqL/russian/errmsg.sys
/usr/share/MysqL/serbian
/usr/share/MysqL/serbian/errmsg.sys
/usr/share/MysqL/slovak
/usr/share/MysqL/slovak/errmsg.sys
/usr/share/MysqL/spanish
/usr/share/MysqL/spanish/errmsg.sys
/usr/share/MysqL/swedish
/usr/share/MysqL/swedish/errmsg.sys
/usr/share/MysqL/ukrainian
/usr/share/MysqL/ukrainian/errmsg.sys
/var/lib/MysqL
/var/lib/MysqL-files
[root@centos11 MysqL5.6]# ls -ltr /var/lib/MysqL
total 110608
drwxr-xr-x. 2 MysqL MysqL 6 Jan 15 17:32 test
-rw-rw----. 1 MysqL MysqL 50331648 Jan 15 17:32 ib_logfile1
drwx------. 2 MysqL MysqL 4096 Jan 15 17:32 performance_schema
drwx--x--x. 2 MysqL MysqL 4096 Jan 15 17:32 MysqL
-rw-rw----. 1 MysqL MysqL 50331648 Jan 15 17:32 ib_logfile0
-rw-rw----. 1 MysqL MysqL 12582912 Jan 15 17:32 ibdata1
-rw-r--r--. 1 MysqL MysqL 111 Jan 15 17:32 RPM_UPGRADE_MARKER-LAST
-rw-r--r--. 1 root root 111 Jan 15 17:32 RPM_UPGRADE_HISTORY

开始配置,修改MysqL用户
[root@centos11~]# grep MysqL /etc/passwd
MysqL:x:995:992:MysqL server:/var/lib/MysqL:/bin/bash
[root@centos11~]# usermod -s /sbin/nologin MysqL
[root@centos11 ~]# grep MysqL /etc/passwd
MysqL:x:995:992:MysqL server:/var/lib/MysqL:/sbin/nologin
[root@centos11 ~]# grep MysqL /etc/group
MysqL:x:992:

创建数据安装目录
[root@centos11 ~]# mkdir /zabbix_data/MysqL -p
[root@centos11 ~]# chown MysqL.MysqL /zabbix_data/MysqL
[root@centos11 ~]# ls -ld /zabbix_data/MysqL
drwxr-xr-x. 2 MysqL MysqL 6 Jan 15 17:52 /zabbix_data/MysqL

初始化数据库
[root@centos11 ~]# /usr/bin/MysqL_install_db --user=MysqL --datadir=/zabbix_data/MysqL
Installing MysqL system tables...2018-01-15 17:54:31 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-15 17:54:31 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-01-15 17:54:31 0 [Note] /usr/sbin/MysqLd (MysqLd 5.6.39) starting as process 4329 ...
2018-01-15 17:54:31 4329 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-01-15 17:54:31 4329 [Note] InnoDB: The InnoDB memory heap is disabled
2018-01-15 17:54:31 4329 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-15 17:54:31 4329 [Note] InnoDB: Memory barrier is not used
2018-01-15 17:54:31 4329 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-01-15 17:54:31 4329 [Note] InnoDB: Using Linux native AIO
2018-01-15 17:54:31 4329 [Note] InnoDB: Not using cpu crc32 instructions
2018-01-15 17:54:31 4329 [Note] InnoDB: Initializing buffer pool,size = 128.0M
2018-01-15 17:54:31 4329 [Note] InnoDB: Completed initialization of buffer pool
2018-01-15 17:54:31 4329 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2018-01-15 17:54:31 4329 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2018-01-15 17:54:31 4329 [Note] InnoDB: Database physically writes the file full: wait...
2018-01-15 17:54:31 4329 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2018-01-15 17:54:33 4329 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2018-01-15 17:54:35 4329 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2018-01-15 17:54:35 4329 [Warning] InnoDB: New log files created,LSN=45781
2018-01-15 17:54:35 4329 [Note] InnoDB: Doublewrite buffer not found: creating new
2018-01-15 17:54:35 4329 [Note] InnoDB: Doublewrite buffer created
2018-01-15 17:54:35 4329 [Note] InnoDB: 128 rollback segment(s) are active.
2018-01-15 17:54:35 4329 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-01-15 17:54:35 4329 [Note] InnoDB: Foreign key constraint system tables created
2018-01-15 17:54:35 4329 [Note] InnoDB: Creating tablespace and datafile system tables.
2018-01-15 17:54:35 4329 [Note] InnoDB: Tablespace and datafile system tables created.
2018-01-15 17:54:35 4329 [Note] InnoDB: Waiting for purge to start
2018-01-15 17:54:35 4329 [Note] InnoDB: 5.6.39 started; log sequence number 0
2018-01-15 17:54:35 4329 [Note] binlog end
2018-01-15 17:54:35 4329 [Note] InnoDB: FTS optimize thread exiting.
2018-01-15 17:54:35 4329 [Note] InnoDB: Starting shutdown...
2018-01-15 17:54:37 4329 [Note] InnoDB: Shutdown completed; log sequence number 1625977
OK

Filling help tables...2018-01-15 17:54:37 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-15 17:54:37 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-01-15 17:54:37 0 [Note] /usr/sbin/MysqLd (MysqLd 5.6.39) starting as process 4352 ...
2018-01-15 17:54:37 4352 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-01-15 17:54:37 4352 [Note] InnoDB: The InnoDB memory heap is disabled
2018-01-15 17:54:37 4352 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-15 17:54:37 4352 [Note] InnoDB: Memory barrier is not used
2018-01-15 17:54:37 4352 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-01-15 17:54:37 4352 [Note] InnoDB: Using Linux native AIO
2018-01-15 17:54:37 4352 [Note] InnoDB: Not using cpu crc32 instructions
2018-01-15 17:54:37 4352 [Note] InnoDB: Initializing buffer pool,size = 128.0M
2018-01-15 17:54:37 4352 [Note] InnoDB: Completed initialization of buffer pool
2018-01-15 17:54:37 4352 [Note] InnoDB: Highest supported file format is Barracuda.
2018-01-15 17:54:37 4352 [Note] InnoDB: 128 rollback segment(s) are active.
2018-01-15 17:54:37 4352 [Note] InnoDB: Waiting for purge to start
2018-01-15 17:54:37 4352 [Note] InnoDB: 5.6.39 started; log sequence number 1625977
2018-01-15 17:54:37 4352 [Note] binlog end
2018-01-15 17:54:37 4352 [Note] InnoDB: FTS optimize thread exiting.
2018-01-15 17:54:37 4352 [Note] InnoDB: Starting shutdown...
2018-01-15 17:54:39 4352 [Note] InnoDB: Shutdown completed; log sequence number 1625987
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 centos11 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 MysqL-test ; perl MysqL-test-run.pl

Please report any problems at http://bugs.mysql.com/

The latest information about MysqL is available on the web at

http://www.mysql.com

Support MysqL by buying support/licenses at http://shop.mysql.com

WARNING: Found existing config file /usr/my.cnf on the system.
Because this file might be in use,it was not replaced,
but was used in bootstrap (unless you used --defaults-file)
and when you later start the server.
The new default config file was created as /usr/my-new.cnf,
please compare it with your file and take the changes you need.

启动MysqL 并设置其密码
[root@centos11 ~]# systemctl start MysqL

[root@centos11 ~]# ps -ef | grep MysqL
root 4394 1 0 17:56 ? 00:00:00 /bin/sh /usr/bin/MysqLd_safe --datadir=/var/lib/MysqL --pid-file=/var/lib/MysqL/centos11.pid
MysqL 4490 4394 7 17:56 ? 00:00:04 /usr/sbin/MysqLd --basedir=/usr --datadir=/var/lib/MysqL --plugin-dir=/usr/lib64/MysqL/plugin --user=MysqL --log-error=centos11.err --pid-file=/var/lib/MysqL/centos11.pid
root 4544 940 0 17:57 pts/0 00:00:00 grep --color=auto MysqL

[root@centos11 ~]# /usr/bin/MysqLadmin -u root password 'icilszx01'
/usr/bin/MysqLadmin: connect to server at 'localhost' Failed

[root@centos11 ~]# cat /root/.MysqL_secret
#The random password set for the root user at Mon Jan 15 17:32:07 2018 (local time): frx5zKMoQMuV8d4W

[root@centos11 ~]# MysqL -u root -p
Enter password:
Welcome to the MysqL monitor. Commands end with ; or \g.

Your MysqL connection id is 3
Server version: 5.6.39

copyright (c) 2000,2018,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>
MysqL> quit
Bye

MysqL> select user,hosts from MysqL.user;
ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
MysqL> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('icilszx01');
Query OK,0 rows affected (0.20 sec)

MysqL> select user,host from MysqL.user;
+------+-----------+
| user | host |
+------+-----------+
| root | 127.0.0.1 |
| root | ::1 |
| root | centos11 |
| root | localhost |
+------+-----------+
4 rows in set (0.00 sec)

MysqL> FLUSH PRIVILEGES;
Query OK,0 rows affected (0.02 sec)

删除无用的用户
MysqL> drop user 'root'@'127.0.0.1';
Query OK,0 rows affected (0.00 sec)

MysqL> drop user 'root'@'::1';
Query OK,0 rows affected (0.00 sec)

MysqL> drop user 'root'@'centos11';
Query OK,0 rows affected (0.02 sec)

MysqL> select user,host from MysqL.user;
+------+-----------+
| user | host |
+------+-----------+
| root | localhost |
+------+-----------+
1 row in set (0.00 sec)

初始化zabbix数据库
参考链接: https://www.zabbix.com/documentation/3.4/manual/appendix/install/db_scripts

[root@centos11 ~]# MysqL -uroot -p
Enter password:
Welcome to the MysqL monitor. Commands end with ; or \g.
Your MysqL connection id is 1
Server version: 5.6.39 MysqL Community Server (GPL)

copyright (c) 2000,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 collate utf8_bin;
Query OK,1 row affected (0.24 sec)

MysqL> grant all privileges on zabbix.* to zabbix@localhost identified by 'icilszx01';
Query OK,0 rows affected (0.09 sec)

MysqL> flush privileges
-> ;
Query OK,0 rows affected (0.04 sec)

导入zabbix数据
[root@centos11 zabbix-server-MysqL-3.4.5]# pwd
/usr/share/doc/zabbix-server-MysqL-3.4.5

[root@centos11 zabbix-server-MysqL-3.4.5]# ls -ltr
total 2076
-rw-r--r--. 1 root root 98 Dec 27 22:04 AUTHORS
-rw-r--r--. 1 root root 188 Dec 27 22:04 README
-rw-r--r--. 1 root root 821731 Dec 27 22:04 ChangeLog
-rw-r--r--. 1 root root 52 Dec 27 22:04 NEWS
-rw-r--r--. 1 root root 17990 Dec 27 22:04 copYING
-rw-r--r--. 1 root root 1266917 Dec 27 22:08 create.sql.gz

[root@centos11 zabbix-server-MysqL-3.4.5]# gunzip create.sql.gz

[root@centos11 zabbix-server-MysqL-3.4.5]# ls -ltr
total 5708
-rw-r--r--. 1 root root 98 Dec 27 22:04 AUTHORS
-rw-r--r--. 1 root root 188 Dec 27 22:04 README
-rw-r--r--. 1 root root 821731 Dec 27 22:04 ChangeLog
-rw-r--r--. 1 root root 52 Dec 27 22:04 NEWS
-rw-r--r--. 1 root root 17990 Dec 27 22:04 copYING
-rw-r--r--. 1 root root 4988036 Dec 27 22:08 create.sql

[root@centos11 zabbix-server-MysqL-3.4.5]# MysqL -uzabbix -P**** zabbix < create.sql
Warning: Using a password on the command line interface can be insecure.

[root@centos11 zabbix-server-MysqL-3.4.5]# ls -ltr create.sql
-rw-r--r--. 1 root root 4988036 Dec 27 22:08 create.sql
[root@centos11 zabbix-server-MysqL-3.4.5]#

检查zabbix数据库
[root@centos11 ~]# MysqL -u zabbix -p
Enter password:
Welcome to the MysqL monitor. Commands end with ; or \g.
Your MysqL connection id is 4
Server version: 5.6.39 MysqL Community Server (GPL)

copyright (c) 2000,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> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
| zabbix |
+--------------------+
3 rows in set (0.11 sec)

MysqL> use zabbix;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MysqL> show tables;
+----------------------------+
| Tables_in_zabbix |
+----------------------------+
| ackNowledges |
| actions |
| alerts |
| application_discovery |
| application_prototype |
| application_template |
| applications |
| auditlog |
| auditlog_details |
| autoreg_host |
| conditions |
| config |
| corr_condition |
| corr_condition_group |
| corr_condition_tag |
| corr_condition_tagpair |
| corr_condition_tagvalue |
| corr_operation |
| correlation |
| dashboard |
| dashboard_user |
| dashboard_usrgrp |
| dbversion |
| dchecks |
| dhosts |
| drules |
| dservices |
| escalations |
| event_recovery |
| event_tag |
| events |
| expressions |
| functions |
| globalmacro |
| globalvars |
| graph_discovery |
| graph_theme |
| graphs |
| graphs_items |
| group_discovery |
| group_prototype |
| groups |
| history |
| history_log |
| history_str |
| history_text |
| history_uint |
| host_discovery |
| host_inventory |
| hostmacro |
| hosts |
| hosts_groups |
| hosts_templates |
| housekeeper |
| httpstep |
| httpstep_field |
| httpstepitem |
| httptest |
| httptest_field |
| httptestitem |
| icon_map |
| icon_mapping |
| ids |
| images |
| interface |
| interface_discovery |
| item_application_prototype |
| item_condition |
| item_discovery |
| item_preproc |
| items |
| items_applications |
| maintenances |
| maintenances_groups |
| maintenances_hosts |
| maintenances_windows |
| mappings |
| media |
| media_type |
| opcommand |
| opcommand_grp |
| opcommand_hst |
| opconditions |
| operations |
| opgroup |
| opinventory |
| opmessage |
| opmessage_grp |
| opmessage_usr |
| optemplate |
| problem |
| problem_tag |
| profiles |
| proxy_autoreg_host |
| proxy_dhistory |
| proxy_history |
| regexps |
| rights |
| screen_user |
| screen_usrgrp |
| screens |
| screens_items |
| scripts |
| service_alarms |
| services |
| services_links |
| services_times |
| sessions |
| slides |
| slideshow_user |
| slideshow_usrgrp |
| slideshows |
| sysmap_element_trigger |
| sysmap_element_url |
| sysmap_shape |
| sysmap_url |
| sysmap_user |
| sysmap_usrgrp |
| sysmaps |
| sysmaps_elements |
| sysmaps_link_triggers |
| sysmaps_links |
| task |
| task_ackNowledge |
| task_close_problem |
| task_remote_command |
| task_remote_command_result |
| timeperiods |
| trends |
| trends_uint |
| trigger_depends |
| trigger_discovery |
| trigger_tag |
| triggers |
| users |
| users_groups |
| usrgrp |
| valuemaps |
| widget |
| widget_field |
+----------------------------+
140 rows in set (0.00 sec)

MysqL>

以上表明zabbix数据库初始化成功

[root@centos11 ~]# diff /etc/zabbix/zabbix_server.conf /etc/zabbix/zabbix_server.conf.bk.20170116

[root@centos11 ~]# egrep -v '#|^$' /etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
SocketDir=/var/run/zabbix
DBHost=localhost
dbname=zabbix
DBUser=zabbix
DBPassword=icilszx01
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000

[root@centos11 ~]# systemctl start zabbix-server
Job for zabbix-server.service Failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.

[root@centos11 ~]# tail -2 /var/log/zabbix/zabbix_server.log
zabbix_server [12216]: cannot open log: cannot create semaphore set: [28] No space left on device
zabbix_server [12221]: cannot open log: cannot create semaphore set: [28] No space left on device
[root@centos11 ~]#

[root@centos11 ~]# ipcs -lm

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 18014398509465599
max total shared memory (kbytes) = 18014398442373116
min seg size (bytes) = 1

[root@centos11 ~]# free -m
total used free shared buff/cache available
Mem: 228 127 7 10 93 53
Swap: 2047 438 1609
[root@centos11 ~]# cat /proc/sys/kernel/sem
250 32000 32 128
[root@centos11 ~]# ls -ltr /proc/sys/kernel/sem
-rw-r--r--. 1 root root 0 Jan 16 15:19 /proc/sys/kernel/sem
[root@centos11 ~]# cp -p /etc/sysctl.conf /etc/sysctl.conf.bk20180116
[root@centos11 ~]# vi /etc/sysctl.conf
[root@centos11 ~]# sysctl -p /etc/sysctl.conf
kernel.sem = 5010 641280 5010 128
[root@centos11 ~]# ipcs -lm

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 18014398509465599
max total shared memory (kbytes) = 18014398442373116
min seg size (bytes) = 1

[root@centos11 ~]# cat /proc/sys/kernel/sem
5010 641280 5010 128

[root@centos11 ~]# systemctl start zabbix-server
Job for zabbix-server.service Failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.

[root@centos11 ~]# tail -2 /var/log/zabbix/zabbix_server.log
zabbix_server [12299]: cannot open log: cannot create semaphore set: [28] No space left on device
zabbix_server [12309]: cannot open log: cannot create semaphore set: [28] No space left on device
[root@centos11 ~]#
还是无法fix

加大系统内存到2G
[root@centos11 ~]# free -m
total used free shared buff/cache available
Mem: 1831 540 1118 8 172 1127
Swap: 2047 0 2047
[root@centos11 ~]# systemctl status zabbix-server
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2018-01-16 15:28:39 CST; 57s ago
Process: 4061 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited,status=0/SUCCESS)
Main PID: 4138 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
└─4138 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server...

Jan 16 15:28:37 centos11 systemd[1]: Starting Zabbix Server...
Jan 16 15:28:39 centos11 systemd[1]: PID file /run/zabbix/zabbix_serv....
Jan 16 15:28:39 centos11 systemd[1]: zabbix-server.service: Supervisi....
Jan 16 15:28:39 centos11 systemd[1]: Started Zabbix Server.
Hint: Some lines were ellipsized,use -l to show in full.
[root@centos11 ~]#
[root@centos11 ~]# systemctl enable zabbix-server
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.service.
[root@centos11 ~]#

[root@centos11 ~]# ps -ef | grep -i zabbix
zabbix 4138 1 0 15:28 ? 00:00:00 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
root 9885 2867 0 15:30 pts/0 00:00:00 grep --color=auto -i zabbix

[root@centos11 ~]# egrep -v '#|;|^$' /etc/PHP.ini
[PHP]
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
disable_functions =
disable_classes =
zend.enable_gc = On
expose_PHP = On
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
enable_dl = Off
file_uploads = On
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
[CLI Server]
cli_server.color = On
[Date]
[filter]
[iconv]
[intl]
[sqlite]
[sqlite3]
[Pcre]
[Pdo]
[Pdo_MysqL]
pdo_MysqL.cache_size = 2000
pdo_MysqL.default_socket=
[Phar]
[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
mail.add_x_header = On
[sql]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%s"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%s"
[MysqL]
MysqL.allow_local_infile = On
MysqL.allow_persistent = On
MysqL.cache_size = 2000
MysqL.max_persistent = -1
MysqL.max_links = -1
MysqL.default_port =
MysqL.default_socket =
MysqL.default_host =
MysqL.default_user =
MysqL.default_password =
MysqL.connect_timeout = 60
MysqL.trace_mode = Off
[MysqLi]
MysqLi.max_persistent = -1
MysqLi.allow_persistent = On
MysqLi.max_links = -1
MysqLi.cache_size = 2000
MysqLi.default_port = 3306
MysqLi.default_socket =
MysqLi.default_host =
MysqLi.default_user =
MysqLi.default_pw =
MysqLi.reconnect = Off
[MysqLnd]
MysqLnd.collect_statistics = On
MysqLnd.collect_memory_statistics = Off
[OCI8]
[Postgresql]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[bcmath]
bcmath.scale = 0
[browscap]
[Session]
session.save_handler = files
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = PHP
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = Off
session.bug_compat_warn = Off
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSsql]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
[Assertion]
[mbstring]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[mcrypt]
[dba]
[root@centos11 ~]#

编辑zabbix前段PHP配置
[root@centos11 ~]# ls -ltr /etc/httpd/conf.d/zabbix.conf
-rw-r--r--. 1 root root 831 Oct 2 16:55 /etc/httpd/conf.d/zabbix.conf
[root@centos11 ~]# cp -p /etc/httpd/conf.d/zabbix.conf /etc/httpd/conf.d/zabbix.conf.bk.20180116
[root@centos11 ~]# less /etc/httpd/conf.d/zabbix.conf
[root@centos11 ~]# cat /etc/httpd/conf.d/zabbix.conf
#
#Zabbix monitoring system PHP web frontend
#

Alias /zabbix /usr/share/zabbix

<Directory "/usr/share/zabbix">
Options FollowSymLinks
AllowOverride None
Require all granted

<IfModule mod_PHP5.c>
    PHP_value max_execution_time 300
    PHP_value memory_limit 128M
    PHP_value post_max_size 16M
    PHP_value upload_max_filesize 2M
    PHP_value max_input_time 300
    PHP_value always_populate_raw_post_data -1
    # PHP_value date.timezone Europe/Riga
</IfModule>

</Directory>

<Directory "/usr/share/zabbix/conf">
Require all denied
</Directory>

<Directory "/usr/share/zabbix/app">
Require all denied
</Directory>

<Directory "/usr/share/zabbix/include">
Require all denied
</Directory>

<Directory "/usr/share/zabbix/local">
Require all denied
</Directory>
[root@centos11 ~]#

[root@centos11 ~]# diff /etc/httpd/conf.d/zabbix.conf /etc/httpd/conf.d/zabbix.conf.bk.20180116
19c19
< PHP_value date.timezone Asia/Shanghai

PHP_value date.timezone Europe/Riga

改为对应的时区,其它的先保持默认配置

启动apache

[root@centos11 ~]# systemctl start httpd
[root@centos11 ~]# ps -ef | grep http
root 10529 1 8 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 10530 10529 2 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 10531 10529 2 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 10532 10529 2 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 10533 10529 2 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 10534 10529 2 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
root 10536 2867 0 15:42 pts/0 00:00:00 grep --color=auto http
[root@centos11 ~]#

在浏览器访问zabbix的前端
http://192.168.2.171/zabbix/setup.php

zabbix PHP databases support居然是Postgresql,而不是想要的MysqL

[root@centos11 ~]# ls -ltr /etc/PHP.d/MysqL.ini
-rw-r--r--. 1 root root 51 Nov 16 00:36 /etc/PHP.d/MysqL.ini
[root@centos11 ~]# cat /etc/PHP.d/MysqL.ini
; Enable MysqL extension module
extension=MysqL.so

[root@centos11 ~]# find / -name MysqL.so
/usr/lib64/PHP/modules/MysqL.so

[root@centos11 ~]# PHP-fpm
[16-Jan-2018 16:12:50] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/PHP/modules/MysqL.so' - libMysqLclient.so.18: cannot open shared object file: No such file or directory in UnkNown on line 0
[16-Jan-2018 16:12:50] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/PHP/modules/MysqLi.so' - libMysqLclient.so.18: cannot open shared object file: No such file or directory in UnkNown on line 0
[16-Jan-2018 16:12:50] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/PHP/modules/pdo_MysqL.so' - libMysqLclient.so.18: cannot open shared object file: No such file or directory in UnkNown on line 0
[16-Jan-2018 16:12:50] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
[16-Jan-2018 16:12:50] ERROR: FPM initialization Failed

[root@centos11 ~]# ps -ef | grep PHP
root 10796 1 0 16:01 ? 00:00:00 PHP-fpm: master process (/etc/PHP-fpm.conf)
apache 10797 10796 0 16:01 ? 00:00:00 PHP-fpm: pool www
apache 10798 10796 0 16:01 ? 00:00:00 PHP-fpm: pool www
apache 10799 10796 0 16:01 ? 00:00:00 PHP-fpm: pool www
apache 10800 10796 0 16:01 ? 00:00:00 PHP-fpm: pool www
apache 10801 10796 0 16:01 ? 00:00:00 PHP-fpm: pool www
root 10906 2867 0 16:12 pts/0 00:00:00 grep --color=auto PHP
[root@centos11 ~]#

[root@centos11 ~]# ls -ltr /etc/ld.so.conf.d
total 8
-r--r--r--. 1 root root 63 Nov 23 2016 kernel-3.10.0-514.el7.x86_64.conf
-r--r--r--. 1 root root 63 Dec 5 08:07 kernel-3.10.0-693.11.1.el7.x86_64.conf
[root@centos11 ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
[root@centos11 ~]# ls -ltr /usr/lib64/PHP/modules/MysqL.so
-rwxr-xr-x. 1 root root 57936 Nov 16 00:36 /usr/lib64/PHP/modules/MysqL.so
[root@centos11 ~]# ldd /usr/lib64/PHP/modules/MysqL.so
linux-vdso.so.1 => (0x00007ffd1457a000)
libMysqLclient.so.18 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007fcc614bc000)
/lib64/ld-linux-x86-64.so.2 (0x000056418827b000)
[root@centos11 ~]# find / -name libMysqLclient.so.18
[root@centos11 ~]# find / -name libMysqLclient.so
[root@centos11 ~]#

[root@centos11 ~]# rpm -ivh /cbmsoftware/zabbix/MysqL5.6/MysqL-embedded-5.6.39-1.el7.x86_64.rpm
warning: /cbmsoftware/zabbix/MysqL5.6/MysqL-embedded-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:MysqL-embedded-5.6.39-1.el7 ################################# [100%]
[root@centos11 ~]# systemctl restart MysqL
[root@centos11 ~]# ls -ltr /usr/local/MysqL/lib/libMysqLclient.so.18
ls: cannot access /usr/local/MysqL/lib/libMysqLclient.so.18: No such file or directory
[root@centos11 ~]# ldd /usr/lib64/PHP/modules/MysqL.so
linux-vdso.so.1 => (0x00007ffe73dfb000)
libMysqLclient.so.18 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007f18c2177000)
/lib64/ld-linux-x86-64.so.2 (0x0000558e2edb1000)

[root@centos11 ~]# find / -name libMysqLclient.so.18
[root@centos11 MysqL5.6]# rpm -ivh MysqL-shared-5.6.39-1.el7.x86_64.rpm MysqL-shared-compat-5.6.39-1.el7.x86_64.rpm
warning: MysqL-shared-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:MysqL-shared-compat-5.6.39-1.el7 ################################# [ 50%]
2:MysqL-shared-5.6.39-1.el7 ################################# [100%]
[root@centos11 MysqL5.6]# ldd /usr/lib64/PHP/modules/MysqL.so
linux-vdso.so.1 => (0x00007fff99ffb000)
libMysqLclient.so.18 => /lib64/libMysqLclient.so.18 (0x00007f497683c000)
libc.so.6 => /lib64/libc.so.6 (0x00007f4976479000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f497625c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f4976058000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f4975d50000)
libm.so.6 => /lib64/libm.so.6 (0x00007f4975a4d000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4975837000)
/lib64/ld-linux-x86-64.so.2 (0x000055fd6c744000)
以上fix 无法找到libMysqLclient.so.18问题
重新配置zabbix前端,可以看到PHP database support 有了MysqL项

配置所连接数据库的相关信息

[root@centos11 ~]# ls -ltr /etc/zabbix/web/
total 8
-rw-r--r--. 1 root root 1036 Dec 27 22:04 maintenance.inc.PHP
-rw-r--r-- 1 apache apache 438 Jan 16 16:39 zabbix.conf.PHP
[root@centos11 ~]# ls -ltr /etc/zabbix/web/zabbix.conf.PHP
-rw-r--r-- 1 apache apache 438 Jan 16 16:39 /etc/zabbix/web/zabbix.conf.PHP
[root@centos11 ~]# cat /etc/zabbix/web/zabbix.conf.PHP
<?PHP
// Zabbix GUI configuration file.
global $DB;

$DB['TYPE'] = 'MysqL';
$DB['SERVER'] = 'localhost';
$DB['PORT'] = '3306';
$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = '****';

// Schema name. Used for IBM DB2 and Postgresql.
$DB['SCHEMA'] = '';

$ZBX_SERVER = '192.168.2.171';
$ZBX_SERVER_PORT = '10051';
$ZBX_SERVER_NAME = 'Zabbix_server';

$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
[root@centos11 ~]#

成功安装Zabbix frontend.

登录zabbix前端

以上表明zabbix server和前端配置基本完成

关闭防火墙

[root@centos11 ~]# ps -ef | grep firewall
root 528 1 0 09:09 ? 00:00:01 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
root 11638 1028 0 14:59 pts/0 00:00:00 grep --color=auto firewall
[root@centos11 ~]# systemctl stop firewalld
[root@centos11 ~]# ps -ef | grep firewall
root 11700 1028 0 15:00 pts/0 00:00:00 grep --color=auto firewall
[root@centos11 ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@centos11 ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
Jan 16 09:09:05 centos11 systemd[1]: Starting firewalld - dynamic fir....
Jan 16 09:09:08 centos11 systemd[1]: Started firewalld - dynamic fire....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: ICMP type 'beyond-s....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: beyond-scope: INVAL....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: ICMP type 'Failed-p....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: Failed-policy: INVA....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: ICMP type 'reject-r....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: reject-route: INVAL....
Jan 16 15:00:11 centos11 systemd[1]: Stopping firewalld - dynamic fir....
Jan 16 15:00:17 centos11 systemd[1]: Stopped firewalld - dynamic fire....
Hint: Some lines were ellipsized,use -l to show in full.
[root@centos11 ~]#

[root@centos11 ~]# getenforce
Enforcing
[root@centos11 ~]# vi /etc/selinux/config
[root@centos11 ~]# grep -v '#' /etc/selinux/config

SELINUX=disabled
SELINUXTYPE=targeted

[root@centos11 ~]# setenforce 0[root@centos11 ~]# getenforcePermissive

在CentOS 7.4 搭建zabbix 3.4 监控系统的更多相关文章

  1. ios – Xcode找不到Alamofire,错误:没有这样的模块’Alamofire’

    我正在尝试按照github(https://github.com/Alamofire/Alamofire#cocoapods)指令将Alamofire包含在我的Swift项目中.我创建了一个新项目,导航到项目目录并运行此命令sudogeminstallcocoapods.然后我面临以下错误:搜索后我设法通过运行此命令安装cocoapodssudogeminstall-n/usr/local/bin

  2. ios – 如何使用Objective C类中的多个参数调用Swift函数?

    本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请发送邮件至dio@foxmail.com举报,一经查实,本站将立刻删除。

  3. ios – Swift 4添加手势:覆盖vs @objc

    我想在我的视图中添加一个手势,如下所示:但是,在Swift4中,我的编译器给出了以下错误:建议添加@objc以将此实例方法公开给Objective-C.实现此目的的另一个选项将覆盖touchesBegan()函数并使用它来处理点击.我试图以“Swift”的方式做到这一点,而不必带入Obj-C.有没有纯粹的Swift方式来添加这个轻击手势而不使用@objc?

  4. ios – 将视频分享到Facebook

    我正在编写一个简单的测试应用程序,用于将视频从iOS上传到Facebook.由于FacebookSDK的所有文档都在Objective-C中,因此我发现很难在线找到有关如何使用Swift执行此操作的示例/教程.到目前为止我有这个在我的UI上放置一个共享按钮,但它看起来已禁用,从我读到的这是因为没有内容设置,但我看不出这是怎么可能的.我的getVideoURL()函数返回一个NSURL,它肯定包含视

  5. ios – 以编程方式在Swift中添加联系人

    我想在Swift中以编程方式添加联系人.我发现了一些Objective-C示例,但我没有让它们工作,甚至在Objective-C中也没有.我不希望这涉及到AddressBookUI,因为我想从我自己的UI中获取值.解决方法这是在Swift中添加联系人的快速方法.我在我的iPhone5iOS7.1上验证了它,因为我发现模拟器并不总是与我的手机对AB的东西相同.您可以添加一个按钮并指向此方法:顺便说一下–它假设你已经分配了一个地址簿var,你可以通过覆盖viewDidAppear来打开视图.它也会执行安全提示

  6. ios – 1天后firebase crashlytics报告中没有数据

    解决方法对于那些仍然有问题的人.检查您的podfile中是否还有pod’Firebase/Crash’.当我删除旧的Firebase崩溃报告时,我的问题已修复.

  7. ios – 当我在xCode 5中验证我的应用程序时,获取错误的广告标识符[IDFA]错误

    在验证我的应用程序时,我收到错误消息“广告标识符使用不当.您的应用包含广告标识符[IDFA]API,但您尚未遵守iOS中的限制广告跟踪设置.”我在广告标识符的准备上传页面上检查了“是”.我在我的应用程序中使用revmob广告和flurry分析(COCOS2D-X项目).如何解决这个问题,我已经尝试了很多但没有成功.我使用下面的代码进入appdelegate但没有运气.解决方法这个IDFA问题今天仍

  8. ios – 为目标c中的方法传递未知类型的参数,可能吗?

    是否可以将未知类型的参数传递给objective-C方法?在C#中你可以写实现这一点,但我知道Objective-C没有泛型,所以有没有其他方法可以在Objective-C中实现这一点?我需要这个,因为我想创建一个方法来改变不同对象的文本颜色,如UITextField和UIButton的占位符文本.所以我的计划是创建一个名为textWhite的方法,然后在此方法中检查对象的类型,然后运行匹配的代码以使文本颜色变为白色.解决方法是的,可以传递未知类型的参数.见下面的例子.请参考使用id对象的链接作为参数Us

  9. ios – Swift指针算术和解除引用;将一些类似C的地图代码转换为Swift

    我有一点似乎没有工作的Swift代码……解决方法您正在指定locationPointer指向新位置,但仍在下一行中使用ptr,并且ptr的值尚未更改.将您的最后一行更改为:或者你可以改变指向var的指针并推进它:

  10. 将POD规范属性与其Xcode配置中的不同构建设置相关联(例如,发布,调试)

    我正在尝试为现有的库项目创建POD规范.在Xcode项目中,构建设置为不同的构建配置定义了不同的预处理器宏例如:对于“调试”配置:对于“发布”配置:如何将这些设置映射到相应的POD规范?

随机推荐

  1. 在airgapped(离线)CentOS 6系统上安装yum软件包

    我有一个CentOS6系统,出于安全考虑,它已经被空气泄漏.它可能从未连接到互联网,如果有,它很长时间没有更新.我想将所有.rpm软件包放在一个驱动器上,这样它们就可以脱机安装而无需查询互联网.但是,我在测试VM上遇到的问题是,即使指定了本地路径,yum仍然会挂起并尝试从在线存储库进行更新.另外,有没有办法使用yum-utils/yumdownloader轻松获取该包的所有依赖项和所有依赖项?目前

  2. centos – 命名在日志旋转后停止记录到rsyslog

    CentOS6.2,绑定9.7.3,rsyslog4.6.2我最近设置了一个服务器,我注意到在日志轮换后,named已停止记录到/var/log/messages.我认为这很奇怪,因为所有日志记录都是通过rsyslog进行的,并且named不会直接写入日志文件.这更奇怪,因为我在更新区域文件后命名了HUPed,但它仍然没有记录.在我停止并重新启动命名后,记录恢复.这里发生了什么?

  3. centos – 显示错误的磁盘大小

    对于其中一个磁盘,Df-h在我的服务器上显示错误的空白区域:Cpanel表明它只有34GB免费,但还有更多.几分钟前,我删除了超过80GB的日志文件.所以,我确信它完全错了.fdisk-l/dev/sda2也显示错误:如果没有格式化,我该怎么做才能解决这个问题?并且打开文件描述符就是它需要使用才能做到这一点.所以…使用“lsof”并查找已删除的文件.重新启动写入日志文件的服务,你很可能会看到空间可用.

  4. 如何在centos 6.9上安装docker-ce 17?

    我目前正在尝试在centOS6.9服务器上安装docker-ce17,但是,当运行yuminstalldocker-ce时,我收到以下错误:如果我用跳过的标志运行它我仍然得到相同的消息,有没有人知道这方面的方法?

  5. centos – 闲置工作站的异常负载平均值

    我有一个新的工作站,具有不寻常的高负载平均值.机器规格是:>至强cpu>256GB的RAM>4x512GBSSD连接到LSI2108RAID控制器我从livecd安装了CentOS6.564位,配置了分区,网络,用户/组,并安装了一些软件,如开发工具和MATLAB.在启动几分钟后,工作站负载平均值的值介于0.5到0.9之间.但它没有做任何事情.因此我无法理解为什么负载平均值如此之高.你能帮我诊断一下这个问题吗?

  6. centos – Cryptsetup luks – 检查内核是否支持aes-xts-plain64密码

    我在CentOS5上使用cryptsetupluks加密加密了一堆硬盘.一切都很好,直到我将系统升级到CentOS6.现在我再也无法安装磁盘了.使用我的关键短语装载:我收到此错误:在/var/log/messages中:有关如何装载的任何想法?找到解决方案问题是驱动器使用大约512个字符长的交互式关键短语加密.出于某种原因,CentOS6中的新内核模块在由旧版本创建时无法正确读取512个字符的加密密钥.似乎只会影响内核或cryptsetup的不同版本,因为在同一系统上创建和打开时,512字符的密钥将起作用

  7. centos – 大量ssh登录尝试

    22个我今天登录CentOS盒找到以下内容这是过去3天内的11次登录尝试.WTF?请注意,这是我从我的提供商处获得的全新IP,该盒子是全新的.我还没有发布任何关于此框的内容.为什么我会进行如此大量的登录尝试?是某种IP/端口扫描?基本上有4名匪徒,其中2名来自中国,1名来自香港,1名来自Verizon.这只发生在SSH上.HTTP上没有问题.我应该将罪魁祸首子网路由吗?你们有什么建议?

  8. centos – kswap使用100%的CPU,即使有100GB的RAM也可用

    >Linux内核是否应该足够智能,只需从内存中清除旧缓存页而不是启动kswap?

  9. centos – Azure将VM从A2 / 3调整为DS2 v2

    我正在尝试调整前一段时间创建的几个AzureVM,从基本的A3和标准A3到标准的DS2v2.我似乎没有能力调整到这个大小的VM.必须从头开始重建服务器会有点痛苦.如果它有所不同我在VM中运行CentOS,每个都有一个带有应用程序和操作系统的磁盘.任何人都可以告诉我是否可以在不删除磁盘的情况下删除VM,创建新VM然后将磁盘附加到新VM?

  10. centos – 广泛使用RAM时服务器计算速度减慢

    我在非常具体的情况下遇到服务器速度下降的问题.事实是:>1)我使用计算应用WRF>2)我使用双XeonE5-2620v3和128GBRAM(NUMA架构–可能与问题有关!

返回
顶部