在CentOS 7.4 搭建zabbix 3.4 监控系统

前端之家收集整理的这篇文章主要介绍了在CentOS 7.4 搭建zabbix 3.4 监控系统前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

[root@centos11 ~]# uname -r@H_502_1@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@H_502_1@-rw-r--r--. 1 root root 12900 Aug 22 17:48 zabbix-release-3.4-1.el7.centos.noarch.rpm

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

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

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

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

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

Dependencies Resolved

=======================================================================================================@H_502_1@Package Arch Version Repository Size

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

Transaction Summary

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

Total size: 82 M@H_502_1@Total download size: 45 M@H_502_1@Installed size: 187 M@H_502_1@Is this ok [y/d/N]: y@H_502_1@Downloading packages:@H_502_1@(1/36): apr-1.4.8-3.el7_4.1.x86_64.rpm | 103 kB 00:00:04@H_502_1@(2/36): OpenIPMI-libs-2.0.19-15.el7.x86_64.rpm | 502 kB 00:00:07@H_502_1@(3/36): copy-jdk-configs-2.2-5.el7_4.noarch.rpm | 19 kB 00:00:06@H_502_1@(4/36): OpenIPMI-modalias-2.0.19-15.el7.x86_64.rpm | 15 kB 00:00:06@H_502_1@(5/36): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:02@H_502_1@(6/36): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:05@H_502_1@(7/36): httpd-tools-2.4.6-67.el7.centos.6.x86_64.rpm | 88 kB 00:00:02@H_502_1@(8/36): httpd-2.4.6-67.el7.centos.6.x86_64.rpm | 2.7 MB 00:00:07@H_502_1@(9/36): javapackages-tools-3.4.1-11.el7.noarch.rpm | 73 kB 00:00:00@H_502_1@(10/36): libXpm-3.5.12-1.el7.x86_64.rpm | 55 kB 00:00:00@H_502_1@(11/36): libevent-2.0.21-4.el7.x86_64.rpm | 214 kB 00:00:00@H_502_1@(12/36): libzip-0.10.1-8.el7.x86_64.rpm | 48 kB 00:00:00@H_502_1@(13/36): lksctp-tools-1.0.17-2.el7.x86_64.rpm | 88 kB 00:00:00@H_502_1@(14/36): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:00@H_502_1@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@H_502_1@Public key for fping-3.10-1.el7.x86_64.rpm is not installed@H_502_1@(15/36): fping-3.10-1.el7.x86_64.rpm | 40 kB 00:00:09@H_502_1@(16/36): net-snmp-libs-5.7.2-28.el7.x86_64.rpm | 748 kB 00:00:01@H_502_1@(17/36): iksemel-1.4-2.el7.centos.x86_64.rpm | 49 kB 00:00:07@H_502_1@(18/36): PHP-bcmath-5.4.16-43.el7_4.x86_64.rpm | 57 kB 00:00:03@H_502_1@(19/36): PHP-5.4.16-43.el7_4.x86_64.rpm | 1.4 MB 00:00:07@H_502_1@(20/36): PHP-gd-5.4.16-43.el7_4.x86_64.rpm | 127 kB 00:00:00@H_502_1@(21/36): PHP-ldap-5.4.16-43.el7_4.x86_64.rpm | 52 kB 00:00:00@H_502_1@(22/36): PHP-mbstring-5.4.16-43.el7_4.x86_64.rpm | 505 kB 00:00:02@H_502_1@(23/36): PHP-common-5.4.16-43.el7_4.x86_64.rpm | 565 kB 00:00:05@H_502_1@(24/36): PHP-MysqL-5.4.16-43.el7_4.x86_64.rpm | 101 kB 00:00:00@H_502_1@(25/36): PHP-pgsql-5.4.16-43.el7_4.x86_64.rpm | 86 kB 00:00:00@H_502_1@(26/36): PHP-xml-5.4.16-43.el7_4.x86_64.rpm | 125 kB 00:00:00@H_502_1@(27/36): postgresql-libs-9.2.23-3.el7_4.x86_64.rpm | 234 kB 00:00:00@H_502_1@(28/36): python-javapackages-3.4.1-11.el7.noarch.rpm | 31 kB 00:00:00@H_502_1@(29/36): PHP-cli-5.4.16-43.el7_4.x86_64.rpm | 2.7 MB 00:00:11@H_502_1@(30/36): python-lxml-3.2.1-4.el7.x86_64.rpm | 758 kB 00:00:02@H_502_1@(31/36): tzdata-java-2017c-1.el7.noarch.rpm | 183 kB 00:00:00@H_502_1@(32/36): unixODBC-2.3.1-11.el7.x86_64.rpm | 413 kB 00:00:00@H_502_1@(33/36): PHP-pdo-5.4.16-43.el7_4.x86_64.rpm | 98 kB 00:00:06@H_502_1@(34/36): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00:02@H_502_1@apr-util-1.5.2-6.el7.x86_64.rp Failed | 28 MB 00:00:19 ETA@H_502_1@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')@H_502_1@Trying other mirror.@H_502_1@(35/36): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:00:00@H_502_1@(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@H_502_1@Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX@H_502_1@Importing GPG key 0x79EA5ED4:@H_502_1@Userid : "Zabbix SIA <packager@zabbix.com>"@H_502_1@Fingerprint: fbab d5fb 2025 5eca b22e e194 d13d 58e4 79ea 5ed4@H_502_1@Package : zabbix-release-3.4-1.el7.centos.noarch (installed)@H_502_1@From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX@H_502_1@Is this ok [y/N]: y@H_502_1@Running transaction check@H_502_1@Running transaction test@H_502_1@Transaction test succeeded@H_502_1@Running transaction@H_502_1@Warning: RPMDB altered outside of yum.@H_502_1@Installing : 1:net-snmp-libs-5.7.2-28.el7.x86_64 1/48@H_502_1@Installing : libevent-2.0.21-4.el7.x86_64 2/48@H_502_1@Installing : unixODBC-2.3.1-11.el7.x86_64 3/48@H_502_1@Installing : fping-3.10-1.el7.x86_64 4/48@H_502_1@Installing : apr-1.4.8-3.el7_4.1.x86_64 5/48@H_502_1@Installing : postgresql-libs-9.2.23-3.el7_4.x86_64 6/48@H_502_1@Installing : apr-util-1.5.2-6.el7.x86_64 7/48@H_502_1@Installing : iksemel-1.4-2.el7.centos.x86_64 8/48@H_502_1@Installing : httpd-tools-2.4.6-67.el7.centos.6.x86_64 9/48@H_502_1@Installing : lksctp-tools-1.0.17-2.el7.x86_64 10/48@H_502_1@Installing : libzip-0.10.1-8.el7.x86_64 11/48@H_502_1@Installing : PHP-common-5.4.16-43.el7_4.x86_64 12/48@H_502_1@Installing : PHP-pdo-5.4.16-43.el7_4.x86_64 13/48@H_502_1@Installing : PHP-pgsql-5.4.16-43.el7_4.x86_64 14/48@H_502_1@Installing : PHP-MysqL-5.4.16-43.el7_4.x86_64 15/48@H_502_1@Installing : PHP-xml-5.4.16-43.el7_4.x86_64 16/48@H_502_1@Installing : PHP-ldap-5.4.16-43.el7_4.x86_64 17/48@H_502_1@Installing : PHP-mbstring-5.4.16-43.el7_4.x86_64 18/48@H_502_1@Installing : PHP-bcmath-5.4.16-43.el7_4.x86_64 19/48@H_502_1@Installing : PHP-cli-5.4.16-43.el7_4.x86_64 20/48@H_502_1@Installing : copy-jdk-configs-2.2-5.el7_4.noarch 21/48@H_502_1@Installing : OpenIPMI-modalias-2.0.19-15.el7.x86_64 22/48@H_502_1@Installing : OpenIPMI-libs-2.0.19-15.el7.x86_64 23/48@H_502_1@Installing : tzdata-java-2017c-1.el7.noarch 24/48@H_502_1@Installing : t1lib-5.1.2-14.el7.x86_64 25/48@H_502_1@Installing : libXpm-3.5.12-1.el7.x86_64 26/48@H_502_1@Installing : PHP-gd-5.4.16-43.el7_4.x86_64 27/48@H_502_1@Installing : dejavu-fonts-common-2.33-6.el7.noarch 28/48@H_502_1@Installing : dejavu-sans-fonts-2.33-6.el7.noarch 29/48@H_502_1@Installing : python-lxml-3.2.1-4.el7.x86_64 30/48@H_502_1@Installing : python-javapackages-3.4.1-11.el7.noarch 31/48@H_502_1@Installing : javapackages-tools-3.4.1-11.el7.noarch 32/48@H_502_1@Installing : 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64 33/48@H_502_1@Installing : mailcap-2.1.41-2.el7.noarch 34/48@H_502_1@Installing : httpd-2.4.6-67.el7.centos.6.x86_64 35/48@H_502_1@Installing : PHP-5.4.16-43.el7_4.x86_64 36/48@H_502_1@Installing : zabbix-web-3.4.5-1.el7.noarch 37/48@H_502_1@Installing : zabbix-web-pgsql-3.4.5-1.el7.noarch 38/48@H_502_1@Installing : zabbix-web-MysqL-3.4.5-1.el7.noarch 39/48@H_502_1@Installing : zabbix-java-gateway-3.4.5-1.el7.x86_64 40/48@H_502_1@Installing : zabbix-proxy-MysqL-3.4.5-1.el7.x86_64 41/48@H_502_1@Installing : zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64 42/48@H_502_1@Installing : zabbix-server-pgsql-3.4.5-1.el7.x86_64 43/48@H_502_1@Installing : zabbix-proxy-pgsql-3.4.5-1.el7.x86_64 44/48@H_502_1@Installing : zabbix-server-MysqL-3.4.5-1.el7.x86_64 45/48@H_502_1@Installing : zabbix-agent-3.4.5-1.el7.x86_64 46/48@H_502_1@Installing : zabbix-sender-3.4.5-1.el7.x86_64 47/48@H_502_1@Installing : zabbix-get-3.4.5-1.el7.x86_64 48/48@H_502_1@Verifying : fping-3.10-1.el7.x86_64 1/48@H_502_1@Verifying : PHP-pgsql-5.4.16-43.el7_4.x86_64 2/48@H_502_1@Verifying : mailcap-2.1.41-2.el7.noarch 3/48@H_502_1@Verifying : zabbix-web-3.4.5-1.el7.noarch 4/48@H_502_1@Verifying : PHP-xml-5.4.16-43.el7_4.x86_64 5/48@H_502_1@Verifying : PHP-ldap-5.4.16-43.el7_4.x86_64 6/48@H_502_1@Verifying : python-lxml-3.2.1-4.el7.x86_64 7/48@H_502_1@Verifying : OpenIPMI-libs-2.0.19-15.el7.x86_64 8/48@H_502_1@Verifying : httpd-tools-2.4.6-67.el7.centos.6.x86_64 9/48@H_502_1@Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64 10/48@H_502_1@Verifying : PHP-MysqL-5.4.16-43.el7_4.x86_64 11/48@H_502_1@Verifying : iksemel-1.4-2.el7.centos.x86_64 12/48@H_502_1@Verifying : zabbix-proxy-MysqL-3.4.5-1.el7.x86_64 13/48@H_502_1@Verifying : PHP-pdo-5.4.16-43.el7_4.x86_64 14/48@H_502_1@Verifying : python-javapackages-3.4.1-11.el7.noarch 15/48@H_502_1@Verifying : javapackages-tools-3.4.1-11.el7.noarch 16/48@H_502_1@Verifying : dejavu-fonts-common-2.33-6.el7.noarch 17/48@H_502_1@Verifying : zabbix-get-3.4.5-1.el7.x86_64 18/48@H_502_1@Verifying : PHP-mbstring-5.4.16-43.el7_4.x86_64 19/48@H_502_1@Verifying : zabbix-sender-3.4.5-1.el7.x86_64 20/48@H_502_1@Verifying : postgresql-libs-9.2.23-3.el7_4.x86_64 21/48@H_502_1@Verifying : libXpm-3.5.12-1.el7.x86_64 22/48@H_502_1@Verifying : zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64 23/48@H_502_1@Verifying : zabbix-agent-3.4.5-1.el7.x86_64 24/48@H_502_1@Verifying : PHP-common-5.4.16-43.el7_4.x86_64 25/48@H_502_1@Verifying : t1lib-5.1.2-14.el7.x86_64 26/48@H_502_1@Verifying : unixODBC-2.3.1-11.el7.x86_64 27/48@H_502_1@Verifying : libevent-2.0.21-4.el7.x86_64 28/48@H_502_1@Verifying : apr-util-1.5.2-6.el7.x86_64 29/48@H_502_1@Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 30/48@H_502_1@Verifying : zabbix-server-pgsql-3.4.5-1.el7.x86_64 31/48@H_502_1@Verifying : zabbix-web-pgsql-3.4.5-1.el7.noarch 32/48@H_502_1@Verifying : tzdata-java-2017c-1.el7.noarch 33/48@H_502_1@Verifying : apr-1.4.8-3.el7_4.1.x86_64 34/48@H_502_1@Verifying : PHP-bcmath-5.4.16-43.el7_4.x86_64 35/48@H_502_1@Verifying : PHP-cli-5.4.16-43.el7_4.x86_64 36/48@H_502_1@Verifying : 1:net-snmp-libs-5.7.2-28.el7.x86_64 37/48@H_502_1@Verifying : PHP-5.4.16-43.el7_4.x86_64 38/48@H_502_1@Verifying : zabbix-java-gateway-3.4.5-1.el7.x86_64 39/48@H_502_1@Verifying : OpenIPMI-modalias-2.0.19-15.el7.x86_64 40/48@H_502_1@Verifying : httpd-2.4.6-67.el7.centos.6.x86_64 41/48@H_502_1@Verifying : copy-jdk-configs-2.2-5.el7_4.noarch 42/48@H_502_1@Verifying : PHP-gd-5.4.16-43.el7_4.x86_64 43/48@H_502_1@Verifying : zabbix-web-MysqL-3.4.5-1.el7.noarch 44/48@H_502_1@Verifying : libzip-0.10.1-8.el7.x86_64 45/48@H_502_1@Verifying : zabbix-proxy-pgsql-3.4.5-1.el7.x86_64 46/48@H_502_1@Verifying : zabbix-server-MysqL-3.4.5-1.el7.x86_64 47/48@H_502_1@Verifying : lksctp-tools-1.0.17-2.el7.x86_64 48/48@H_502_1@@H_502_1@Installed:@H_502_1@zabbix-agent.x86_64 0:3.4.5-1.el7 zabbix-get.x86_64 0:3.4.5-1.el7@H_502_1@zabbix-java-gateway.x86_64 0:3.4.5-1.el7 zabbix-proxy-MysqL.x86_64 0:3.4.5-1.el7@H_502_1@zabbix-proxy-pgsql.x86_64 0:3.4.5-1.el7 zabbix-proxy-sqlite3.x86_64 0:3.4.5-1.el7@H_502_1@zabbix-sender.x86_64 0:3.4.5-1.el7 zabbix-server-MysqL.x86_64 0:3.4.5-1.el7@H_502_1@zabbix-server-pgsql.x86_64 0:3.4.5-1.el7 zabbix-web.noarch 0:3.4.5-1.el7@H_502_1@zabbix-web-MysqL.noarch 0:3.4.5-1.el7 zabbix-web-pgsql.noarch 0:3.4.5-1.el7

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

Complete!@H_502_1@[root@centos11 packages]#

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

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

查看所安装对应版本zabbix3.4的文档@H_502_1@[root@centos11 ~]# ls -ltr /usr/share/doc | grep zabbix@H_502_1@drwxr-xr-x. 2 root root 17 Jan 4 12:00 zabbix-release-3.4@H_502_1@drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-web-3.4.5@H_502_1@drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-java-gateway-3.4.5@H_502_1@drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-proxy-MysqL-3.4.5@H_502_1@drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-proxy-sqlite3-3.4.5@H_502_1@drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-server-pgsql-3.4.5@H_502_1@drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-proxy-pgsql-3.4.5@H_502_1@drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-server-MysqL-3.4.5@H_502_1@drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-agent-3.4.5@H_502_1@drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-sender-3.4.5@H_502_1@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@H_502_1@Loaded plugins: fastestmirror@H_502_1@Loading mirror speeds from cached hostfile

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

Dependencies Resolved

================================================================================@H_502_1@Package Arch Version Repository@H_502_1@Size

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

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

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

Transaction Summary

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

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

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

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

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

Complete!@H_502_1@[root@centos11 ~]#

检查是否安装成功

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

以上httpd 已安装

安装PHPPHP相应模块

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

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

Dependencies Resolved

==================================================================================@H_502_1@Package Arch Version Repository Size

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

Transaction Summary

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

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


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

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

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

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

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

Dependencies Resolved

==================================================================================@H_502_1@Package Arch Version Repository Size

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

Transaction Summary

==================================================================================@H_502_1@Install 1 Package

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

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

Complete!@H_502_1@[root@centos11 ~]#

检查是否已经安装PHP

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

以上已安装PHP成功

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

查看所下载的安装包@H_502_1@[root@centos11 MysqL5.6]# ls -ltr@H_502_1@total 84264@H_502_1@-rw-r--r--. 1 root root 62426388 Jan 15 16:32 MysqL-server-5.6.39-1.el7.x86_64.rpm@H_502_1@-rw-r--r--. 1 root root 3533032 Jan 15 16:35 MysqL-devel-5.6.39-1.el7.x86_64.rpm@H_502_1@-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@H_502_1@warning: MysqL-server-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY@H_502_1@Preparing... ################################# [100%]@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@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@H_502_1@有报错

强制卸载mariadb-libs-5.5.56-2.el7.x86_64 包可以解决@H_502_1@[root@centos11 MysqL5.6]# rpm -qa | grep mariadb@H_502_1@mariadb-libs-5.5.56-2.el7.x86_64@H_502_1@[root@centos11 MysqL5.6]# rpm -e mariadb-libs-5.5.56-2.el7.x86_64@H_502_1@error: Failed dependencies:@H_502_1@libMysqLclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-6.el7.x86_64@H_502_1@libMysqLclient.so.18()(64bit) is needed by (installed) PHP-MysqL-5.4.16-43.el7_4.x86_64@H_502_1@libMysqLclient.so.18()(64bit) is needed by (installed) zabbix-proxy-MysqL-3.4.5-1.el7.x86_64@H_502_1@libMysqLclient.so.18()(64bit) is needed by (installed) zabbix-server-MysqL-3.4.5-1.el7.x86_64@H_502_1@libMysqLclient.so.18(libMysqLclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-6.el7.x86_64@H_502_1@libMysqLclient.so.18(libMysqLclient_18)(64bit) is needed by (installed) PHP-MysqL-5.4.16-43.el7_4.x86_64@H_502_1@libMysqLclient.so.18(libMysqLclient_18)(64bit) is needed by (installed) zabbix-proxy-MysqL-3.4.5-1.el7.x86_64@H_502_1@libMysqLclient.so.18(libMysqLclient_18)(64bit) is needed by (installed) zabbix-server-MysqL-3.4.5-1.el7.x86_64@H_502_1@[root@centos11 MysqL5.6]# rpm -e mariadb-libs-5.5.56-2.el7.x86_64 --nodeps@H_502_1@[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@H_502_1@warning: MysqL-server-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY@H_502_1@Preparing... ################################# [100%]@H_502_1@Updating / installing...@H_502_1@1:MysqL-server-5.6.39-1.el7 ################################# [100%]@H_502_1@warning: user MysqL does not exist - using root@H_502_1@warning: group MysqL does not exist - using root@H_502_1@warning: user MysqL does not exist - using root@H_502_1@warning: group MysqL does not exist - using root@H_502_1@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).@H_502_1@2018-01-15 17:32:03 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.@H_502_1@2018-01-15 17:32:03 0 [Note] /usr/sbin/MysqLd (MysqLd 5.6.39) starting as process 4171 ...@H_502_1@2018-01-15 17:32:03 4171 [Note] InnoDB: Using atomics to ref count buffer pool pages@H_502_1@2018-01-15 17:32:03 4171 [Note] InnoDB: The InnoDB memory heap is disabled@H_502_1@2018-01-15 17:32:03 4171 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins@H_502_1@2018-01-15 17:32:03 4171 [Note] InnoDB: Memory barrier is not used@H_502_1@2018-01-15 17:32:03 4171 [Note] InnoDB: Compressed tables use zlib 1.2.3@H_502_1@2018-01-15 17:32:03 4171 [Note] InnoDB: Using Linux native AIO@H_502_1@2018-01-15 17:32:03 4171 [Note] InnoDB: Not using cpu crc32 instructions@H_502_1@2018-01-15 17:32:03 4171 [Note] InnoDB: Initializing buffer pool,size = 128.0M@H_502_1@2018-01-15 17:32:03 4171 [Note] InnoDB: Completed initialization of buffer pool@H_502_1@2018-01-15 17:32:04 4171 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!@H_502_1@2018-01-15 17:32:04 4171 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB@H_502_1@2018-01-15 17:32:04 4171 [Note] InnoDB: Database physically writes the file full: wait...@H_502_1@2018-01-15 17:32:04 4171 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB@H_502_1@2018-01-15 17:32:06 4171 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0@H_502_1@2018-01-15 17:32:07 4171 [Warning] InnoDB: New log files created,LSN=45781@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: Doublewrite buffer not found: creating new@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: Doublewrite buffer created@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: 128 rollback segment(s) are active.@H_502_1@2018-01-15 17:32:07 4171 [Warning] InnoDB: Creating foreign key constraint system tables.@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: Foreign key constraint system tables created@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: Creating tablespace and datafile system tables.@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: Tablespace and datafile system tables created.@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: Waiting for purge to start@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: 5.6.39 started; log sequence number 0@H_502_1@A random root password has been set. You will find it in '/root/.MysqL_secret'.@H_502_1@2018-01-15 17:32:07 4171 [Note] Binlog end@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: FTS optimize thread exiting.@H_502_1@2018-01-15 17:32:07 4171 [Note] InnoDB: Starting shutdown...@H_502_1@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).@H_502_1@2018-01-15 17:32:09 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.@H_502_1@2018-01-15 17:32:09 0 [Note] /usr/sbin/MysqLd (MysqLd 5.6.39) starting as process 4193 ...@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: Using atomics to ref count buffer pool pages@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: The InnoDB memory heap is disabled@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: Memory barrier is not used@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: Compressed tables use zlib 1.2.3@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: Using Linux native AIO@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: Not using cpu crc32 instructions@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: Initializing buffer pool,size = 128.0M@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: Completed initialization of buffer pool@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: Highest supported file format is Barracuda.@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: 128 rollback segment(s) are active.@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: Waiting for purge to start@H_502_1@2018-01-15 17:32:09 4193 [Note] InnoDB: 5.6.39 started; log sequence number 1625977@H_502_1@2018-01-15 17:32:10 4193 [Note] Binlog end@H_502_1@2018-01-15 17:32:10 4193 [Note] InnoDB: FTS optimize thread exiting.@H_502_1@2018-01-15 17:32:10 4193 [Note] InnoDB: Starting shutdown...@H_502_1@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 !@H_502_1@You will find that password in '/root/.MysqL_secret'.

You must change that password on your first connect,@H_502_1@no other statement but 'SET PASSWORD' will be accepted.@H_502_1@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.@H_502_1@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@H_502_1@will be used by default by the server when you start it.@H_502_1@You may edit this file to change server settings

[root@centos11 MysqL5.6]# id MysqL@H_502_1@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@H_502_1@warning: MysqL-devel-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY@H_502_1@Preparing... ################################# [100%]@H_502_1@Updating / installing...@H_502_1@1:MysqL-client-5.6.39-1.el7 ################################# [ 50%]@H_502_1@2:MysqL-devel-5.6.39-1.el7 ################################# [100%]@H_502_1@[root@centos11 MysqL5.6]#

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

以上表明MysqL 安装成功

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

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

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

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

To start MysqLd at boot time you have to copy@H_502_1@support-files/MysqL.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MysqL root USER !@H_502_1@To do so,start the server,then issue the following commands:

/usr/bin/MysqLadmin -u root password 'new-password'@H_502_1@/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@H_502_1@databases and anonymous user created by default. This is@H_502_1@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.@H_502_1@Because this file might be in use,it was not replaced,@H_502_1@but was used in bootstrap (unless you used --defaults-file)@H_502_1@and when you later start the server.@H_502_1@The new default config file was created as /usr/my-new.cnf,@H_502_1@please compare it with your file and take the changes you need.

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

[root@centos11 ~]# ps -ef | grep MysqL@H_502_1@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@H_502_1@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@H_502_1@root 4544 940 0 17:57 pts/0 00:00:00 grep --color=auto MysqL

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

[root@centos11 ~]# cat /root/.MysqL_secret @H_502_1@#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@H_502_1@Enter password:@H_502_1@Welcome to the MysqL monitor. Commands end with ; or \g.

Your MysqL connection id is 3@H_502_1@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@H_502_1@affiliates. Other names may be trademarks of their respective@H_502_1@owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MysqL>@H_502_1@MysqL> quit@H_502_1@Bye

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

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

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

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

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

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

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

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

[root@centos11 ~]# MysqL -uroot -p@H_502_1@Enter password:@H_502_1@Welcome to the MysqL monitor. Commands end with ; or \g.@H_502_1@Your MysqL connection id is 1@H_502_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@H_502_1@affiliates. Other names may be trademarks of their respective@H_502_1@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;@H_502_1@Query OK,1 row affected (0.24 sec)

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

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

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

[root@centos11 zabbix-server-MysqL-3.4.5]# ls -ltr@H_502_1@total 2076@H_502_1@-rw-r--r--. 1 root root 98 Dec 27 22:04 AUTHORS@H_502_1@-rw-r--r--. 1 root root 188 Dec 27 22:04 README@H_502_1@-rw-r--r--. 1 root root 821731 Dec 27 22:04 ChangeLog@H_502_1@-rw-r--r--. 1 root root 52 Dec 27 22:04 NEWS@H_502_1@-rw-r--r--. 1 root root 17990 Dec 27 22:04 COPYING@H_502_1@-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@H_502_1@total 5708@H_502_1@-rw-r--r--. 1 root root 98 Dec 27 22:04 AUTHORS@H_502_1@-rw-r--r--. 1 root root 188 Dec 27 22:04 README@H_502_1@-rw-r--r--. 1 root root 821731 Dec 27 22:04 ChangeLog@H_502_1@-rw-r--r--. 1 root root 52 Dec 27 22:04 NEWS@H_502_1@-rw-r--r--. 1 root root 17990 Dec 27 22:04 COPYING@H_502_1@-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@H_502_1@Warning: Using a password on the command line interface can be insecure.

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

检查zabbix数据库@H_502_1@[root@centos11 ~]# MysqL -u zabbix -p@H_502_1@Enter password:@H_502_1@Welcome to the MysqL monitor. Commands end with ; or \g.@H_502_1@Your MysqL connection id is 4@H_502_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@H_502_1@affiliates. Other names may be trademarks of their respective@H_502_1@owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MysqL> show databases;@H_502_1@+--------------------+@H_502_1@| Database |@H_502_1@+--------------------+@H_502_1@| information_schema |@H_502_1@| test |@H_502_1@| zabbix |@H_502_1@+--------------------+@H_502_1@3 rows in set (0.11 sec)

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

Database changed@H_502_1@MysqL> show tables;@H_502_1@+----------------------------+@H_502_1@| Tables_in_zabbix |@H_502_1@+----------------------------+@H_502_1@| acknowledges |@H_502_1@| actions |@H_502_1@| alerts |@H_502_1@| application_discovery |@H_502_1@| application_prototype |@H_502_1@| application_template |@H_502_1@| applications |@H_502_1@| auditlog |@H_502_1@| auditlog_details |@H_502_1@| autoreg_host |@H_502_1@| conditions |@H_502_1@| config |@H_502_1@| corr_condition |@H_502_1@| corr_condition_group |@H_502_1@| corr_condition_tag |@H_502_1@| corr_condition_tagpair |@H_502_1@| corr_condition_tagvalue |@H_502_1@| corr_operation |@H_502_1@| correlation |@H_502_1@| dashboard |@H_502_1@| dashboard_user |@H_502_1@| dashboard_usrgrp |@H_502_1@| dbversion |@H_502_1@| dchecks |@H_502_1@| dhosts |@H_502_1@| drules |@H_502_1@| dservices |@H_502_1@| escalations |@H_502_1@| event_recovery |@H_502_1@| event_tag |@H_502_1@| events |@H_502_1@| expressions |@H_502_1@| functions |@H_502_1@| globalmacro |@H_502_1@| globalvars |@H_502_1@| graph_discovery |@H_502_1@| graph_theme |@H_502_1@| graphs |@H_502_1@| graphs_items |@H_502_1@| group_discovery |@H_502_1@| group_prototype |@H_502_1@| groups |@H_502_1@| history |@H_502_1@| history_log |@H_502_1@| history_str |@H_502_1@| history_text |@H_502_1@| history_uint |@H_502_1@| host_discovery |@H_502_1@| host_inventory |@H_502_1@| hostmacro |@H_502_1@| hosts |@H_502_1@| hosts_groups |@H_502_1@| hosts_templates |@H_502_1@| housekeeper |@H_502_1@| httpstep |@H_502_1@| httpstep_field |@H_502_1@| httpstepitem |@H_502_1@| httptest |@H_502_1@| httptest_field |@H_502_1@| httptestitem |@H_502_1@| icon_map |@H_502_1@| icon_mapping |@H_502_1@| ids |@H_502_1@| images |@H_502_1@| interface |@H_502_1@| interface_discovery |@H_502_1@| item_application_prototype |@H_502_1@| item_condition |@H_502_1@| item_discovery |@H_502_1@| item_preproc |@H_502_1@| items |@H_502_1@| items_applications |@H_502_1@| maintenances |@H_502_1@| maintenances_groups |@H_502_1@| maintenances_hosts |@H_502_1@| maintenances_windows |@H_502_1@| mappings |@H_502_1@| media |@H_502_1@| media_type |@H_502_1@| opcommand |@H_502_1@| opcommand_grp |@H_502_1@| opcommand_hst |@H_502_1@| opconditions |@H_502_1@| operations |@H_502_1@| opgroup |@H_502_1@| opinventory |@H_502_1@| opmessage |@H_502_1@| opmessage_grp |@H_502_1@| opmessage_usr |@H_502_1@| optemplate |@H_502_1@| problem |@H_502_1@| problem_tag |@H_502_1@| profiles |@H_502_1@| proxy_autoreg_host |@H_502_1@| proxy_dhistory |@H_502_1@| proxy_history |@H_502_1@| regexps |@H_502_1@| rights |@H_502_1@| screen_user |@H_502_1@| screen_usrgrp |@H_502_1@| screens |@H_502_1@| screens_items |@H_502_1@| scripts |@H_502_1@| service_alarms |@H_502_1@| services |@H_502_1@| services_links |@H_502_1@| services_times |@H_502_1@| sessions |@H_502_1@| slides |@H_502_1@| slideshow_user |@H_502_1@| slideshow_usrgrp |@H_502_1@| slideshows |@H_502_1@| sysmap_element_trigger |@H_502_1@| sysmap_element_url |@H_502_1@| sysmap_shape |@H_502_1@| sysmap_url |@H_502_1@| sysmap_user |@H_502_1@| sysmap_usrgrp |@H_502_1@| sysmaps |@H_502_1@| sysmaps_elements |@H_502_1@| sysmaps_link_triggers |@H_502_1@| sysmaps_links |@H_502_1@| task |@H_502_1@| task_acknowledge |@H_502_1@| task_close_problem |@H_502_1@| task_remote_command |@H_502_1@| task_remote_command_result |@H_502_1@| timeperiods |@H_502_1@| trends |@H_502_1@| trends_uint |@H_502_1@| trigger_depends |@H_502_1@| trigger_discovery |@H_502_1@| trigger_tag |@H_502_1@| triggers |@H_502_1@| users |@H_502_1@| users_groups |@H_502_1@| usrgrp |@H_502_1@| valuemaps |@H_502_1@| widget |@H_502_1@| widget_field |@H_502_1@+----------------------------+@H_502_1@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@H_502_1@LogFile=/var/log/zabbix/zabbix_server.log@H_502_1@LogFileSize=0@H_502_1@PidFile=/var/run/zabbix/zabbix_server.pid@H_502_1@SocketDir=/var/run/zabbix@H_502_1@DBHost=localhost@H_502_1@DBName=zabbix@H_502_1@DBUser=zabbix@H_502_1@DBPassword=icilszx01@H_502_1@SNMPTrapperFile=/var/log/snmptrap/snmptrap.log@H_502_1@Timeout=4@H_502_1@AlertScriptsPath=/usr/lib/zabbix/alertscripts@H_502_1@ExternalScripts=/usr/lib/zabbix/externalscripts@H_502_1@LogSlowQueries=3000

[root@centos11 ~]# systemctl start zabbix-server@H_502_1@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@H_502_1@zabbix_server [12216]: cannot open log: cannot create semaphore set: [28] No space left on device@H_502_1@zabbix_server [12221]: cannot open log: cannot create semaphore set: [28] No space left on device@H_502_1@[root@centos11 ~]#

[root@centos11 ~]# ipcs -lm

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

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

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

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

[root@centos11 ~]# systemctl start zabbix-server@H_502_1@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@H_502_1@zabbix_server [12299]: cannot open log: cannot create semaphore set: [28] No space left on device@H_502_1@zabbix_server [12309]: cannot open log: cannot create semaphore set: [28] No space left on device@H_502_1@[root@centos11 ~]#@H_502_1@还是无法fix

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

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

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

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

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

Alias /zabbix /usr/share/zabbix

<Directory "/usr/share/zabbix">@H_502_1@Options FollowSymLinks@H_502_1@AllowOverride None@H_502_1@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">@H_502_1@Require all denied@H_502_1@</Directory>

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

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

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

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


PHP_value date.timezone Europe/Riga

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

启动apache

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

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

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

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

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

[root@centos11 ~]# PHP-fpm@H_502_1@[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@H_502_1@[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@H_502_1@[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@H_502_1@[16-Jan-2018 16:12:50] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)@H_502_1@[16-Jan-2018 16:12:50] ERROR: FPM initialization Failed

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

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

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

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

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

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

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

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

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

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

成功安装Zabbix frontend.

登录zabbix前端

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

关闭防火墙

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

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

SELINUX=disabled@H_502_1@SELINUXTYPE=targeted

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

猜你在找的CentOS相关文章