[[email protected] ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[[email protected] ~]# uname -r
3.10.0-693.11.1.el7.x86_64
下载zabbix3.4版本的 yum源安装包
[[email protected] zabbix]# wget http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm
--2018-01-04 11:59:57-- http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm
Resolving repo.zabbix.com (repo.zabbix.com)... 162.243.159.138
Connecting to repo.zabbix.com (repo.zabbix.com)|162.243.159.138|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12900 (13K) [application/x-redhat-package-manager]
Saving to: ‘zabbix-release-3.4-1.el7.centos.noarch.rpm’
100%[===========================>] 12,900 --.-K/s in 0.006s
2018-01-04 11:59:58 (2.15 MB/s) - ‘zabbix-release-3.4-1.el7.centos.noarch.rpm’ saved [12900/12900]
[[email protected] zabbix]# ls -lt zabbix-release-3.4-1.el7.centos.noarch.rpm
-rw-r--r--. 1 root root 12900 Aug 22 17:48 zabbix-release-3.4-1.el7.centos.noarch.rpm
安装zabbix3.4版本的 yum源安装包
[[email protected] zabbix]# rpm -ivh zabbix-release-3.4-1.el7.centos.noarch.rpm
Preparing... ################################# [100%]
Updating / installing...
1:zabbix-release-3.4-1.el7.centos ################################# [100%]
更新yum源
[[email protected] zabbix]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base extras updates zabbix zabbix-non-supported
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
检查yum源安装状态
[[email protected] packages]# rpm -qa | grep -i zabbix
zabbix-release-3.4-1.el7.centos.noarch
用yum安装zabbix
[[email protected] packages]# yum install zabbix*
Loaded plugins: fastestmirror
Examining zabbix-agent-3.4.5-1.el7.x86_64.rpm: zabbix-agent-3.4.5-1.el7.x86_64
Marking zabbix-agent-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-get-3.4.5-1.el7.x86_64.rpm: zabbix-get-3.4.5-1.el7.x86_64
Marking zabbix-get-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-java-gateway-3.4.5-1.el7.x86_64.rpm: zabbix-java-gateway-3.4.5-1.el7.x86_64
Marking zabbix-java-gateway-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-proxy-mysql-3.4.5-1.el7.x86_64.rpm: zabbix-proxy-mysql-3.4.5-1.el7.x86_64
Marking zabbix-proxy-mysql-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-proxy-pgsql-3.4.5-1.el7.x86_64.rpm: zabbix-proxy-pgsql-3.4.5-1.el7.x86_64
Marking zabbix-proxy-pgsql-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64.rpm: zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64
Marking zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-sender-3.4.5-1.el7.x86_64.rpm: zabbix-sender-3.4.5-1.el7.x86_64
Marking zabbix-sender-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-server-mysql-3.4.5-1.el7.x86_64.rpm: zabbix-server-mysql-3.4.5-1.el7.x86_64
Marking zabbix-server-mysql-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-server-pgsql-3.4.5-1.el7.x86_64.rpm: zabbix-server-pgsql-3.4.5-1.el7.x86_64
Marking zabbix-server-pgsql-3.4.5-1.el7.x86_64.rpm to be installed
Examining zabbix-web-3.4.5-1.el7.noarch.rpm: zabbix-web-3.4.5-1.el7.noarch
Marking zabbix-web-3.4.5-1.el7.noarch.rpm to be installed
Examining zabbix-web-mysql-3.4.5-1.el7.noarch.rpm: zabbix-web-mysql-3.4.5-1.el7.noarch
Marking zabbix-web-mysql-3.4.5-1.el7.noarch.rpm to be installed
Examining zabbix-web-pgsql-3.4.5-1.el7.noarch.rpm: zabbix-web-pgsql-3.4.5-1.el7.noarch
Marking zabbix-web-pgsql-3.4.5-1.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:3.4.5-1.el7 will be installed
---> Package zabbix-get.x86_64 0:3.4.5-1.el7 will be installed
---> Package zabbix-java-gateway.x86_64 0:3.4.5-1.el7 will be installed
--> Processing Dependency: java-headless >= 1.6.0 for package: zabbix-java-gateway-3.4.5-1.el7.x86_64
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
zabbix | 2.9 kB 00:00:00
zabbix-non-supported | 951 B 00:00:00
(1/5): extras/7/x86_64/primary_db | 145 kB 00:00:02
(2/5): base/7/x86_64/group_gz | 156 kB 00:00:04
(3/5): zabbix/x86_64/primary_db | 50 kB 00:00:03
(4/5): updates/7/x86_64/primary_db | 4.6 MB 00:00:13
(5/5): base/7/x86_64/primary_db | 5.7 MB 00:00:14
zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:02
Determining fastest mirrors
- base: mirrors.aliyun.com
- extras: mirrors.aliyun.com
- updates: mirrors.aliyun.com
zabbix-non-supported 4/4
---> Package zabbix-proxy-mysql.x86_64 0:3.4.5-1.el7 will be installed
--> Processing Dependency: fping for package: zabbix-proxy-mysql-3.4.5-1.el7.x86_64
--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: zabbix-proxy-mysql-3.4.5-1.el7.x86_64
--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: zabbix-proxy-mysql-3.4.5-1.el7.x86_64
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: zabbix-proxy-mysql-3.4.5-1.el7.x86_64
--> Processing Dependency: libnetsnmp.so.31()(64bit) for package: zabbix-proxy-mysql-3.4.5-1.el7.x86_64
--> Processing Dependency: libodbc.so.2()(64bit) for package: zabbix-proxy-mysql-3.4.5-1.el7.x86_64
---> Package zabbix-proxy-pgsql.x86_64 0:3.4.5-1.el7 will be installed
--> Processing Dependency: libpq.so.5()(64bit) for package: zabbix-proxy-pgsql-3.4.5-1.el7.x86_64
---> Package zabbix-proxy-sqlite3.x86_64 0:3.4.5-1.el7 will be installed
---> Package zabbix-sender.x86_64 0:3.4.5-1.el7 will be installed
---> Package zabbix-server-mysql.x86_64 0:3.4.5-1.el7 will be installed
--> Processing Dependency: libiksemel.so.3()(64bit) for package: zabbix-server-mysql-3.4.5-1.el7.x86_64
---> Package zabbix-server-pgsql.x86_64 0:3.4.5-1.el7 will be installed
---> Package zabbix-web.noarch 0:3.4.5-1.el7 will be installed
--> Processing Dependency: php >= 5.4 for package: zabbix-web-3.4.5-1.el7.noarch
--> Processing Dependency: dejavu-sans-fonts for package: zabbix-web-3.4.5-1.el7.noarch
--> Processing Dependency: httpd for package: zabbix-web-3.4.5-1.el7.noarch
--> Processing Dependency: php-bcmath for package: zabbix-web-3.4.5-1.el7.noarch
--> Processing Dependency: php-gd for package: zabbix-web-3.4.5-1.el7.noarch
--> Processing Dependency: php-ldap for package: zabbix-web-3.4.5-1.el7.noarch
--> Processing Dependency: php-mbstring for package: zabbix-web-3.4.5-1.el7.noarch
--> Processing Dependency: php-xml for package: zabbix-web-3.4.5-1.el7.noarch
---> Package zabbix-web-mysql.noarch 0:3.4.5-1.el7 will be installed
--> Processing Dependency: php-mysql for package: zabbix-web-mysql-3.4.5-1.el7.noarch
---> Package zabbix-web-pgsql.noarch 0:3.4.5-1.el7 will be installed
--> Processing Dependency: php-pgsql for package: zabbix-web-pgsql-3.4.5-1.el7.noarch
--> Running transaction check
---> Package OpenIPMI-libs.x86_64 0:2.0.19-15.el7 will be installed
--> Processing Dependency: OpenIPMI-modalias = 2.0.19-15.el7 for package: OpenIPMI-libs-2.0.19-15.el7.x86_64
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package fping.x86_64 0:3.10-1.el7 will be installed
---> Package httpd.x86_64 0:2.4.6-67.el7.centos.6 will be installed
--> Processing Dependency: httpd-tools = 2.4.6-67.el7.centos.6 for package: httpd-2.4.6-67.el7.centos.6.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-67.el7.centos.6.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-67.el7.centos.6.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-67.el7.centos.6.x86_64
---> Package iksemel.x86_64 0:1.4-2.el7.centos will be installed
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.151-5.b12.el7_4 will be installed
--> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
--> Processing Dependency: copy-jdk-configs >= 2.2 for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
--> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
--> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64
---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed
---> Package net-snmp-libs.x86_64 1:5.7.2-28.el7 will be installed
---> Package php.x86_64 0:5.4.16-43.el7_4 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-43.el7_4 for package: php-5.4.16-43.el7_4.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.4.16-43.el7_4 for package: php-5.4.16-43.el7_4.x86_64
---> Package php-bcmath.x86_64 0:5.4.16-43.el7_4 will be installed
---> Package php-gd.x86_64 0:5.4.16-43.el7_4 will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.4.16-43.el7_4.x86_64
--> Processing Dependency: libXpm.so.4()(64bit) for package: php-gd-5.4.16-43.el7_4.x86_64
---> Package php-ldap.x86_64 0:5.4.16-43.el7_4 will be installed
---> Package php-mbstring.x86_64 0:5.4.16-43.el7_4 will be installed
---> Package php-mysql.x86_64 0:5.4.16-43.el7_4 will be installed
--> Processing Dependency: php-pdo(x86-64) = 5.4.16-43.el7_4 for package: php-mysql-5.4.16-43.el7_4.x86_64
---> Package php-pgsql.x86_64 0:5.4.16-43.el7_4 will be installed
---> Package php-xml.x86_64 0:5.4.16-43.el7_4 will be installed
---> Package postgresql-libs.x86_64 0:9.2.23-3.el7_4 will be installed
---> Package unixODBC.x86_64 0:2.3.1-11.el7 will be installed
--> Running transaction check
---> Package OpenIPMI-modalias.x86_64 0:2.0.19-15.el7 will be installed
---> Package apr.x86_64 0:1.4.8-3.el7_4.1 will be installed
---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
---> Package copy-jdk-configs.noarch 0:2.2-5.el7_4 will be installed
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
---> Package httpd-tools.x86_64 0:2.4.6-67.el7.centos.6 will be installed
---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch
---> Package libXpm.x86_64 0:3.5.12-1.el7 will be installed
---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed
---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed
---> Package php-cli.x86_64 0:5.4.16-43.el7_4 will be installed
---> Package php-common.x86_64 0:5.4.16-43.el7_4 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-43.el7_4.x86_64
---> Package php-pdo.x86_64 0:5.4.16-43.el7_4 will be installed
---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed
---> Package tzdata-java.noarch 0:2017c-1.el7 will be installed
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch
--> Running transaction check
---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================
Package Arch Version Repository Size
=======================================================================================================
Installing:
zabbix-agent x86_64 3.4.5-1.el7 /zabbix-agent-3.4.5-1.el7.x86_64 1.4 M
zabbix-get x86_64 3.4.5-1.el7 /zabbix-get-3.4.5-1.el7.x86_64 1.0 M
zabbix-java-gateway x86_64 3.4.5-1.el7 /zabbix-java-gateway-3.4.5-1.el7.x86_64 1.4 M
zabbix-proxy-mysql x86_64 3.4.5-1.el7 /zabbix-proxy-mysql-3.4.5-1.el7.x86_64 2.9 M
zabbix-proxy-pgsql x86_64 3.4.5-1.el7 /zabbix-proxy-pgsql-3.4.5-1.el7.x86_64 2.9 M
zabbix-proxy-sqlite3 x86_64 3.4.5-1.el7 /zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64 2.8 M
zabbix-sender x86_64 3.4.5-1.el7 /zabbix-sender-3.4.5-1.el7.x86_64 1.0 M
zabbix-server-mysql x86_64 3.4.5-1.el7 /zabbix-server-mysql-3.4.5-1.el7.x86_64 4.5 M
zabbix-server-pgsql x86_64 3.4.5-1.el7 /zabbix-server-pgsql-3.4.5-1.el7.x86_64 4.5 M
zabbix-web noarch 3.4.5-1.el7 /zabbix-web-3.4.5-1.el7.noarch 15 M
zabbix-web-mysql noarch 3.4.5-1.el7 /zabbix-web-mysql-3.4.5-1.el7.noarch 0.0
zabbix-web-pgsql noarch 3.4.5-1.el7 /zabbix-web-pgsql-3.4.5-1.el7.noarch 0.0
Installing for dependencies:
OpenIPMI-libs x86_64 2.0.19-15.el7 base 502 k
OpenIPMI-modalias x86_64 2.0.19-15.el7 base 15 k
apr x86_64 1.4.8-3.el7_4.1 updates 103 k
apr-util x86_64 1.5.2-6.el7 base 92 k
copy-jdk-configs noarch 2.2-5.el7_4 updates 19 k
dejavu-fonts-common noarch 2.33-6.el7 base 64 k
dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M
fping x86_64 3.10-1.el7 zabbix-non-supported 40 k
httpd x86_64 2.4.6-67.el7.centos.6 updates 2.7 M
httpd-tools x86_64 2.4.6-67.el7.centos.6 updates 88 k
iksemel x86_64 1.4-2.el7.centos zabbix-non-supported 49 k
java-1.8.0-openjdk-headless
x86_64 1:1.8.0.151-5.b12.el7_4 updates 32 M
javapackages-tools noarch 3.4.1-11.el7 base 73 k
libXpm x86_64 3.5.12-1.el7 base 55 k
libevent x86_64 2.0.21-4.el7 base 214 k
libzip x86_64 0.10.1-8.el7 base 48 k
lksctp-tools x86_64 1.0.17-2.el7 base 88 k
mailcap noarch 2.1.41-2.el7 base 31 k
net-snmp-libs x86_64 1:5.7.2-28.el7 base 748 k
php x86_64 5.4.16-43.el7_4 updates 1.4 M
php-bcmath x86_64 5.4.16-43.el7_4 updates 57 k
php-cli x86_64 5.4.16-43.el7_4 updates 2.7 M
php-common x86_64 5.4.16-43.el7_4 updates 565 k
php-gd x86_64 5.4.16-43.el7_4 updates 127 k
php-ldap x86_64 5.4.16-43.el7_4 updates 52 k
php-mbstring x86_64 5.4.16-43.el7_4 updates 505 k
php-mysql x86_64 5.4.16-43.el7_4 updates 101 k
php-pdo x86_64 5.4.16-43.el7_4 updates 98 k
php-pgsql x86_64 5.4.16-43.el7_4 updates 86 k
php-xml x86_64 5.4.16-43.el7_4 updates 125 k
postgresql-libs x86_64 9.2.23-3.el7_4 updates 234 k
python-javapackages noarch 3.4.1-11.el7 base 31 k
python-lxml x86_64 3.2.1-4.el7 base 758 k
t1lib x86_64 5.1.2-14.el7 base 166 k
tzdata-java noarch 2017c-1.el7 updates 183 k
unixODBC x86_64 2.3.1-11.el7 base 413 k
Transaction Summary
=======================================================================================================
Install 12 Packages (+36 Dependent packages)
Total size: 82 M
Total download size: 45 M
Installed size: 187 M
Is this ok [y/d/N]: y
Downloading packages:
(1/36): apr-1.4.8-3.el7_4.1.x86_64.rpm | 103 kB 00:00:04
(2/36): OpenIPMI-libs-2.0.19-15.el7.x86_64.rpm | 502 kB 00:00:07
(3/36): copy-jdk-configs-2.2-5.el7_4.noarch.rpm | 19 kB 00:00:06
(4/36): OpenIPMI-modalias-2.0.19-15.el7.x86_64.rpm | 15 kB 00:00:06
(5/36): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:02
(6/36): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:05
(7/36): httpd-tools-2.4.6-67.el7.centos.6.x86_64.rpm | 88 kB 00:00:02
(8/36): httpd-2.4.6-67.el7.centos.6.x86_64.rpm | 2.7 MB 00:00:07
(9/36): javapackages-tools-3.4.1-11.el7.noarch.rpm | 73 kB 00:00:00
(10/36): libXpm-3.5.12-1.el7.x86_64.rpm | 55 kB 00:00:00
(11/36): libevent-2.0.21-4.el7.x86_64.rpm | 214 kB 00:00:00
(12/36): libzip-0.10.1-8.el7.x86_64.rpm | 48 kB 00:00:00
(13/36): lksctp-tools-1.0.17-2.el7.x86_64.rpm | 88 kB 00:00:00
(14/36): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:00
warning: /var/cache/yum/x86_64/7/zabbix-non-supported/packages/fping-3.10-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
Public key for fping-3.10-1.el7.x86_64.rpm is not installed
(15/36): fping-3.10-1.el7.x86_64.rpm | 40 kB 00:00:09
(16/36): net-snmp-libs-5.7.2-28.el7.x86_64.rpm | 748 kB 00:00:01
(17/36): iksemel-1.4-2.el7.centos.x86_64.rpm | 49 kB 00:00:07
(18/36): php-bcmath-5.4.16-43.el7_4.x86_64.rpm | 57 kB 00:00:03
(19/36): php-5.4.16-43.el7_4.x86_64.rpm | 1.4 MB 00:00:07
(20/36): php-gd-5.4.16-43.el7_4.x86_64.rpm | 127 kB 00:00:00
(21/36): php-ldap-5.4.16-43.el7_4.x86_64.rpm | 52 kB 00:00:00
(22/36): php-mbstring-5.4.16-43.el7_4.x86_64.rpm | 505 kB 00:00:02
(23/36): php-common-5.4.16-43.el7_4.x86_64.rpm | 565 kB 00:00:05
(24/36): php-mysql-5.4.16-43.el7_4.x86_64.rpm | 101 kB 00:00:00
(25/36): php-pgsql-5.4.16-43.el7_4.x86_64.rpm | 86 kB 00:00:00
(26/36): php-xml-5.4.16-43.el7_4.x86_64.rpm | 125 kB 00:00:00
(27/36): postgresql-libs-9.2.23-3.el7_4.x86_64.rpm | 234 kB 00:00:00
(28/36): python-javapackages-3.4.1-11.el7.noarch.rpm | 31 kB 00:00:00
(29/36): php-cli-5.4.16-43.el7_4.x86_64.rpm | 2.7 MB 00:00:11
(30/36): python-lxml-3.2.1-4.el7.x86_64.rpm | 758 kB 00:00:02
(31/36): tzdata-java-2017c-1.el7.noarch.rpm | 183 kB 00:00:00
(32/36): unixODBC-2.3.1-11.el7.x86_64.rpm | 413 kB 00:00:00
(33/36): php-pdo-5.4.16-43.el7_4.x86_64.rpm | 98 kB 00:00:06
(34/36): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00:02
apr-util-1.5.2-6.el7.x86_64.rp FAILED | 28 MB 00:00:19 ETA
http://mirror.lzu.edu.cn/centos/7.4.1708/os/x86_64/Packages/apr-util-1.5.2-6.el7.x86_64.rpm: [Errno 12] Timeout on http://mirror.lzu.edu.cn/centos/7.4.1708/os/x86_64/Packages/apr-util-1.5.2-6.el7.x86_64.rpm: (28, ‘Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds‘)
Trying other mirror.
(35/36): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:00:00
(36/36): java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64.rpm | 32 MB 00:00:50
Total 703 kB/s | 45 MB 00:01:06
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
Importing GPG key 0x79EA5ED4:
Userid : "Zabbix SIA <[email protected]>"
Fingerprint: fbab d5fb 2025 5eca b22e e194 d13d 58e4 79ea 5ed4
Package : zabbix-release-3.4-1.el7.centos.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : 1:net-snmp-libs-5.7.2-28.el7.x86_64 1/48
Installing : libevent-2.0.21-4.el7.x86_64 2/48
Installing : unixODBC-2.3.1-11.el7.x86_64 3/48
Installing : fping-3.10-1.el7.x86_64 4/48
Installing : apr-1.4.8-3.el7_4.1.x86_64 5/48
Installing : postgresql-libs-9.2.23-3.el7_4.x86_64 6/48
Installing : apr-util-1.5.2-6.el7.x86_64 7/48
Installing : iksemel-1.4-2.el7.centos.x86_64 8/48
Installing : httpd-tools-2.4.6-67.el7.centos.6.x86_64 9/48
Installing : lksctp-tools-1.0.17-2.el7.x86_64 10/48
Installing : libzip-0.10.1-8.el7.x86_64 11/48
Installing : php-common-5.4.16-43.el7_4.x86_64 12/48
Installing : php-pdo-5.4.16-43.el7_4.x86_64 13/48
Installing : php-pgsql-5.4.16-43.el7_4.x86_64 14/48
Installing : php-mysql-5.4.16-43.el7_4.x86_64 15/48
Installing : php-xml-5.4.16-43.el7_4.x86_64 16/48
Installing : php-ldap-5.4.16-43.el7_4.x86_64 17/48
Installing : php-mbstring-5.4.16-43.el7_4.x86_64 18/48
Installing : php-bcmath-5.4.16-43.el7_4.x86_64 19/48
Installing : php-cli-5.4.16-43.el7_4.x86_64 20/48
Installing : copy-jdk-configs-2.2-5.el7_4.noarch 21/48
Installing : OpenIPMI-modalias-2.0.19-15.el7.x86_64 22/48
Installing : OpenIPMI-libs-2.0.19-15.el7.x86_64 23/48
Installing : tzdata-java-2017c-1.el7.noarch 24/48
Installing : t1lib-5.1.2-14.el7.x86_64 25/48
Installing : libXpm-3.5.12-1.el7.x86_64 26/48
Installing : php-gd-5.4.16-43.el7_4.x86_64 27/48
Installing : dejavu-fonts-common-2.33-6.el7.noarch 28/48
Installing : dejavu-sans-fonts-2.33-6.el7.noarch 29/48
Installing : python-lxml-3.2.1-4.el7.x86_64 30/48
Installing : python-javapackages-3.4.1-11.el7.noarch 31/48
Installing : javapackages-tools-3.4.1-11.el7.noarch 32/48
Installing : 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64 33/48
Installing : mailcap-2.1.41-2.el7.noarch 34/48
Installing : httpd-2.4.6-67.el7.centos.6.x86_64 35/48
Installing : php-5.4.16-43.el7_4.x86_64 36/48
Installing : zabbix-web-3.4.5-1.el7.noarch 37/48
Installing : zabbix-web-pgsql-3.4.5-1.el7.noarch 38/48
Installing : zabbix-web-mysql-3.4.5-1.el7.noarch 39/48
Installing : zabbix-java-gateway-3.4.5-1.el7.x86_64 40/48
Installing : zabbix-proxy-mysql-3.4.5-1.el7.x86_64 41/48
Installing : zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64 42/48
Installing : zabbix-server-pgsql-3.4.5-1.el7.x86_64 43/48
Installing : zabbix-proxy-pgsql-3.4.5-1.el7.x86_64 44/48
Installing : zabbix-server-mysql-3.4.5-1.el7.x86_64 45/48
Installing : zabbix-agent-3.4.5-1.el7.x86_64 46/48
Installing : zabbix-sender-3.4.5-1.el7.x86_64 47/48
Installing : zabbix-get-3.4.5-1.el7.x86_64 48/48
Verifying : fping-3.10-1.el7.x86_64 1/48
Verifying : php-pgsql-5.4.16-43.el7_4.x86_64 2/48
Verifying : mailcap-2.1.41-2.el7.noarch 3/48
Verifying : zabbix-web-3.4.5-1.el7.noarch 4/48
Verifying : php-xml-5.4.16-43.el7_4.x86_64 5/48
Verifying : php-ldap-5.4.16-43.el7_4.x86_64 6/48
Verifying : python-lxml-3.2.1-4.el7.x86_64 7/48
Verifying : OpenIPMI-libs-2.0.19-15.el7.x86_64 8/48
Verifying : httpd-tools-2.4.6-67.el7.centos.6.x86_64 9/48
Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.151-5.b12.el7_4.x86_64 10/48
Verifying : php-mysql-5.4.16-43.el7_4.x86_64 11/48
Verifying : iksemel-1.4-2.el7.centos.x86_64 12/48
Verifying : zabbix-proxy-mysql-3.4.5-1.el7.x86_64 13/48
Verifying : php-pdo-5.4.16-43.el7_4.x86_64 14/48
Verifying : python-javapackages-3.4.1-11.el7.noarch 15/48
Verifying : javapackages-tools-3.4.1-11.el7.noarch 16/48
Verifying : dejavu-fonts-common-2.33-6.el7.noarch 17/48
Verifying : zabbix-get-3.4.5-1.el7.x86_64 18/48
Verifying : php-mbstring-5.4.16-43.el7_4.x86_64 19/48
Verifying : zabbix-sender-3.4.5-1.el7.x86_64 20/48
Verifying : postgresql-libs-9.2.23-3.el7_4.x86_64 21/48
Verifying : libXpm-3.5.12-1.el7.x86_64 22/48
Verifying : zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64 23/48
Verifying : zabbix-agent-3.4.5-1.el7.x86_64 24/48
Verifying : php-common-5.4.16-43.el7_4.x86_64 25/48
Verifying : t1lib-5.1.2-14.el7.x86_64 26/48
Verifying : unixODBC-2.3.1-11.el7.x86_64 27/48
Verifying : libevent-2.0.21-4.el7.x86_64 28/48
Verifying : apr-util-1.5.2-6.el7.x86_64 29/48
Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 30/48
Verifying : zabbix-server-pgsql-3.4.5-1.el7.x86_64 31/48
Verifying : zabbix-web-pgsql-3.4.5-1.el7.noarch 32/48
Verifying : tzdata-java-2017c-1.el7.noarch 33/48
Verifying : apr-1.4.8-3.el7_4.1.x86_64 34/48
Verifying : php-bcmath-5.4.16-43.el7_4.x86_64 35/48
Verifying : php-cli-5.4.16-43.el7_4.x86_64 36/48
Verifying : 1:net-snmp-libs-5.7.2-28.el7.x86_64 37/48
Verifying : php-5.4.16-43.el7_4.x86_64 38/48
Verifying : zabbix-java-gateway-3.4.5-1.el7.x86_64 39/48
Verifying : OpenIPMI-modalias-2.0.19-15.el7.x86_64 40/48
Verifying : httpd-2.4.6-67.el7.centos.6.x86_64 41/48
Verifying : copy-jdk-configs-2.2-5.el7_4.noarch 42/48
Verifying : php-gd-5.4.16-43.el7_4.x86_64 43/48
Verifying : zabbix-web-mysql-3.4.5-1.el7.noarch 44/48
Verifying : libzip-0.10.1-8.el7.x86_64 45/48
Verifying : zabbix-proxy-pgsql-3.4.5-1.el7.x86_64 46/48
Verifying : zabbix-server-mysql-3.4.5-1.el7.x86_64 47/48
Verifying : lksctp-tools-1.0.17-2.el7.x86_64 48/48
Installed:
zabbix-agent.x86_64 0:3.4.5-1.el7 zabbix-get.x86_64 0:3.4.5-1.el7
zabbix-java-gateway.x86_64 0:3.4.5-1.el7 zabbix-proxy-mysql.x86_64 0:3.4.5-1.el7
zabbix-proxy-pgsql.x86_64 0:3.4.5-1.el7 zabbix-proxy-sqlite3.x86_64 0:3.4.5-1.el7
zabbix-sender.x86_64 0:3.4.5-1.el7 zabbix-server-mysql.x86_64 0:3.4.5-1.el7
zabbix-server-pgsql.x86_64 0:3.4.5-1.el7 zabbix-web.noarch 0:3.4.5-1.el7
zabbix-web-mysql.noarch 0:3.4.5-1.el7 zabbix-web-pgsql.noarch 0:3.4.5-1.el7
Dependency Installed:
OpenIPMI-libs.x86_64 0:2.0.19-15.el7 OpenIPMI-modalias.x86_64 0:2.0.19-15.el7
apr.x86_64 0:1.4.8-3.el7_4.1 apr-util.x86_64 0:1.5.2-6.el7
copy-jdk-configs.noarch 0:2.2-5.el7_4 dejavu-fonts-common.noarch 0:2.33-6.el7
dejavu-sans-fonts.noarch 0:2.33-6.el7 fping.x86_64 0:3.10-1.el7
httpd.x86_64 0:2.4.6-67.el7.centos.6 httpd-tools.x86_64 0:2.4.6-67.el7.centos.6
iksemel.x86_64 0:1.4-2.el7.centos java-1.8.0-openjdk-headless.x86_64 1:1.8.0.151-5.b12.el7_4
javapackages-tools.noarch 0:3.4.1-11.el7 libXpm.x86_64 0:3.5.12-1.el7
libevent.x86_64 0:2.0.21-4.el7 libzip.x86_64 0:0.10.1-8.el7
lksctp-tools.x86_64 0:1.0.17-2.el7 mailcap.noarch 0:2.1.41-2.el7
net-snmp-libs.x86_64 1:5.7.2-28.el7 php.x86_64 0:5.4.16-43.el7_4
php-bcmath.x86_64 0:5.4.16-43.el7_4 php-cli.x86_64 0:5.4.16-43.el7_4
php-common.x86_64 0:5.4.16-43.el7_4 php-gd.x86_64 0:5.4.16-43.el7_4
php-ldap.x86_64 0:5.4.16-43.el7_4 php-mbstring.x86_64 0:5.4.16-43.el7_4
php-mysql.x86_64 0:5.4.16-43.el7_4 php-pdo.x86_64 0:5.4.16-43.el7_4
php-pgsql.x86_64 0:5.4.16-43.el7_4 php-xml.x86_64 0:5.4.16-43.el7_4
postgresql-libs.x86_64 0:9.2.23-3.el7_4 python-javapackages.noarch 0:3.4.1-11.el7
python-lxml.x86_64 0:3.2.1-4.el7 t1lib.x86_64 0:5.1.2-14.el7
tzdata-java.noarch 0:2017c-1.el7 unixODBC.x86_64 0:2.3.1-11.el7
Complete!
[[email protected] packages]#
[[email protected] packages]# rpm -qa | grep -i zabbix
zabbix-java-gateway-3.4.5-1.el7.x86_64
zabbix-proxy-pgsql-3.4.5-1.el7.x86_64
zabbix-get-3.4.5-1.el7.x86_64
zabbix-release-3.4-1.el7.centos.noarch
zabbix-web-3.4.5-1.el7.noarch
zabbix-web-mysql-3.4.5-1.el7.noarch
zabbix-proxy-mysql-3.4.5-1.el7.x86_64
zabbix-server-pgsql-3.4.5-1.el7.x86_64
zabbix-server-mysql-3.4.5-1.el7.x86_64
zabbix-sender-3.4.5-1.el7.x86_64
zabbix-web-pgsql-3.4.5-1.el7.noarch
zabbix-proxy-sqlite3-3.4.5-1.el7.x86_64
zabbix-agent-3.4.5-1.el7.x86_64
[[email protected] packages]# rpm -qa | grep -i zabbix | wc -l
13
查看所安装对应版本zabbix3.4的文档
[[email protected] ~]# ls -ltr /usr/share/doc | grep zabbix
drwxr-xr-x. 2 root root 17 Jan 4 12:00 zabbix-release-3.4
drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-web-3.4.5
drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-java-gateway-3.4.5
drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-proxy-mysql-3.4.5
drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-proxy-sqlite3-3.4.5
drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-server-pgsql-3.4.5
drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-proxy-pgsql-3.4.5
drwxr-xr-x. 2 root root 100 Jan 4 14:34 zabbix-server-mysql-3.4.5
drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-agent-3.4.5
drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-sender-3.4.5
drwxr-xr-x. 2 root root 79 Jan 4 14:34 zabbix-get-3.4.5
以上是Zabbix安装成功
安装apache
[[email protected] ~]# yum install httpd libxml2-devel net-snmp-devel libcurl-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
- base: mirrors.cn99.com
- extras: mirrors.aliyun.com
- updates: mirrors.aliyun.com
Package httpd-2.4.6-67.el7.centos.6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libcurl-devel.x86_64 0:7.29.0-42.el7_4.1 will be installed
base/7/x86_64/filelists_db | 6.7 MB 00:13
updates/7/x86_64/filelists_db | 3.0 MB 00:03
---> Package libxml2-devel.x86_64 0:2.9.1-6.el7_2.3 will be installed
--> Processing Dependency: zlib-devel for package: libxml2-devel-2.9.1-6.el7_2.3 .x86_64
--> Processing Dependency: xz-devel for package: libxml2-devel-2.9.1-6.el7_2.3.x 86_64
---> Package net-snmp-devel.x86_64 1:5.7.2-28.el7 will be installed
--> Processing Dependency: net-snmp-agent-libs = 1:5.7.2-28.el7 for package: 1:n et-snmp-devel-5.7.2-28.el7.x86_64
--> Processing Dependency: tcp_wrappers-devel for package: 1:net-snmp-devel-5.7. 2-28.el7.x86_64
--> Processing Dependency: rpm-devel for package: 1:net-snmp-devel-5.7.2-28.el7. x86_64
--> Processing Dependency: perl-devel(x86-64) for package: 1:net-snmp-devel-5.7. 2-28.el7.x86_64
--> Processing Dependency: openssl-devel for package: 1:net-snmp-devel-5.7.2-28. el7.x86_64
--> Processing Dependency: lm_sensors-devel for package: 1:net-snmp-devel-5.7.2- 28.el7.x86_64
--> Processing Dependency: elfutils-libelf-devel for package: 1:net-snmp-devel-5 .7.2-28.el7.x86_64
--> Processing Dependency: elfutils-devel for package: 1:net-snmp-devel-5.7.2-28 .el7.x86_64
--> Processing Dependency: libnetsnmptrapd.so.31()(64bit) for package: 1:net-snm p-devel-5.7.2-28.el7.x86_64
--> Processing Dependency: libnetsnmpmibs.so.31()(64bit) for package: 1:net-snmp -devel-5.7.2-28.el7.x86_64
--> Processing Dependency: libnetsnmphelpers.so.31()(64bit) for package: 1:net-s nmp-devel-5.7.2-28.el7.x86_64
--> Processing Dependency: libnetsnmpagent.so.31()(64bit) for package: 1:net-snm p-devel-5.7.2-28.el7.x86_64
--> Running transaction check
---> Package elfutils-devel.x86_64 0:0.168-8.el7 will be installed
---> Package elfutils-libelf-devel.x86_64 0:0.168-8.el7 will be installed
---> Package lm_sensors-devel.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 will be in stalled
--> Processing Dependency: lm_sensors-libs = 3.4.0-4.20160601gitf9185e5.el7 for package: lm_sensors-devel-3.4.0-4.20160601gitf9185e5.el7.x86_64
--> Processing Dependency: libsensors.so.4()(64bit) for package: lm_sensors-deve l-3.4.0-4.20160601gitf9185e5.el7.x86_64
---> Package net-snmp-agent-libs.x86_64 1:5.7.2-28.el7 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: 1:net-snmp-a gent-libs-5.7.2-28.el7.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 1:net-snmp-agent-lib s-5.7.2-28.el7.x86_64
---> Package openssl-devel.x86_64 1:1.0.2k-8.el7 will be installed
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2 k-8.el7.x86_64
---> Package perl-devel.x86_64 4:5.16.3-292.el7 will be installed
--> Processing Dependency: systemtap-sdt-devel for package: 4:perl-devel-5.16.3- 292.el7.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: 4:perl-devel-5.16.3-2 92.el7.x86_64
--> Processing Dependency: perl(File::Spec) for package: 4:perl-devel-5.16.3-292 .el7.x86_64
--> Processing Dependency: perl(File::Path) for package: 4:perl-devel-5.16.3-292 .el7.x86_64
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.1 6.3-292.el7.x86_64
--> Processing Dependency: perl(ExtUtils::MakeMaker) for package: 4:perl-devel-5 .16.3-292.el7.x86_64
--> Processing Dependency: perl(ExtUtils::Installed) for package: 4:perl-devel-5 .16.3-292.el7.x86_64
--> Processing Dependency: libdb-devel for package: 4:perl-devel-5.16.3-292.el7. x86_64
--> Processing Dependency: glibc-devel for package: 4:perl-devel-5.16.3-292.el7. x86_64
--> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.16.3-292.el7.x 86_64
---> Package rpm-devel.x86_64 0:4.11.3-25.el7 will be installed
--> Processing Dependency: popt-devel(x86-64) for package: rpm-devel-4.11.3-25.e l7.x86_64
---> Package tcp_wrappers-devel.x86_64 0:7.6-77.el7 will be installed
---> Package xz-devel.x86_64 0:5.2.2-1.el7 will be installed
---> Package zlib-devel.x86_64 0:1.2.7-17.el7 will be installed
--> Running transaction check
---> Package gdbm-devel.x86_64 0:1.10-8.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-196.el7_4.2 will be installed
--> Processing Dependency: glibc-headers = 2.17-196.el7_4.2 for package: glibc-d evel-2.17-196.el7_4.2.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-196.el7_4 .2.x86_64
---> Package krb5-devel.x86_64 0:1.15.1-8.el7 will be installed
--> Processing Dependency: libkadm5(x86-64) = 1.15.1-8.el7 for package: krb5-dev el-1.15.1-8.el7.x86_64
--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-8.el7.x 86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-8.el7 .x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-8.el7 .x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-8. el7.x86_64
---> Package libdb-devel.x86_64 0:5.3.21-20.el7 will be installed
---> Package lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 will be ins talled
---> Package perl.x86_64 4:5.16.3-292.el7 will be installed
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-292.el 7.x86_64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3 -292.el7.x86_64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-292. el7.x8664
--> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-292.el7.x86 64
--> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-292.el7.x86 _64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-292.el7. x86_64
--> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-292.el7. x86_64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-292.el7.x86 _64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-292.el7.x86_6 4
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-292.el7 .x86_64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-2 92.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3- 292.el7.x86_64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-2 92.el7.x86_64
--> Processing Dependency: perl(File::Temp) for package: 4:perl-5.16.3-292.el7.x 86_64
--> Processing Dependency: perl(Exporter) for package: 4:perl-5.16.3-292.el7.x86 _64
--> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-292.el7.x86_64
---> Package perl-ExtUtils-Install.noarch 0:1.58-292.el7 will be installed
---> Package perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 will be installed
--> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-MakeMa ker-6.68-3.el7.noarch
--> Processing Dependency: perl(Pod::Man) for package: perl-ExtUtils-MakeMaker-6 .68-3.el7.noarch
--> Processing Dependency: perl(ExtUtils::Manifest) for package: perl-ExtUtils-M akeMaker-6.68-3.el7.noarch
---> Package perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-Getopt-Long.noarch 0:2.40-2.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Lon g-2.40-2.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long- 2.40-2.el7.noarch
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-libs.x86_64 4:5.16.3-292.el7 will be installed
---> Package popt-devel.x86_64 0:1.13-16.el7 will be installed
---> Package systemtap-sdt-devel.x86_64 0:3.1-4.el74 will be installed
--> Processing Dependency: pyparsing for package: systemtap-sdt-devel-3.1-4.el7 4.x86_64
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-196.el7_4.2 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2. 17-196.el7_4.2.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-196.el 7_4.2.x86_64
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package libcom_err-devel.x86_64 0:1.42.9-10.el7 will be installed
---> Package libkadm5.x86_64 0:1.15.1-8.el7 will be installed
---> Package libselinux-devel.x86_64 0:2.5-11.el7 will be installed
--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-6 for package: libselin ux-devel-2.5-11.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5 -11.el7.x86_64
--> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.5- 11.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-ExtUtils-Manifest.noarch 0:1.61-244.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Si mple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el 7.noarch
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.e l7.noarch
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed
---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-macros.x86_64 4:5.16.3-292.el7 will be installed
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
---> Package pyparsing.noarch 0:1.5.6-9.el7 will be installed
--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-693.11.6.el7 will be installed
---> Package libsepol-devel.x86_64 0:2.5-6.el7 will be installed
---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-292.el7 will be installed
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7 .noarch
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4 .el7.noarch
--> Running transaction check
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
Installing:
libcurl-devel x86_64 7.29.0-42.el7_4.1 updates 300 k
libxml2-devel x86_64 2.9.1-6.el7_2.3 base 1.0 M
net-snmp-devel x86_64 1:5.7.2-28.el7 base 257 k
Installing for dependencies:
elfutils-devel x86_64 0.168-8.el7 base 82 k
elfutils-libelf-devel x86_64 0.168-8.el7 base 37 k
gdbm-devel x86_64 1.10-8.el7 base 47 k
glibc-devel x86_64 2.17-196.el7_4.2 updates 1.1 M
glibc-headers x86_64 2.17-196.el7_4.2 updates 676 k
kernel-headers x86_64 3.10.0-693.11.6.el7 updates 6.0 M
keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k
krb5-devel x86_64 1.15.1-8.el7 base 266 k
libcom_err-devel x86_64 1.42.9-10.el7 base 31 k
libdb-devel x86_64 5.3.21-20.el7 base 38 k
libkadm5 x86_64 1.15.1-8.el7 base 174 k
libselinux-devel x86_64 2.5-11.el7 base 186 k
libsepol-devel x86_64 2.5-6.el7 base 74 k
libverto-devel x86_64 0.2.5-4.el7 base 12 k
lm_sensors-devel x86_64 3.4.0-4.20160601gitf9185e5.el7 base 26 k
lm_sensors-libs x86_64 3.4.0-4.20160601gitf9185e5.el7 base 41 k
net-snmp-agent-libs x86_64 1:5.7.2-28.el7 base 704 k
openssl-devel x86_64 1:1.0.2k-8.el7 base 1.5 M
pcre-devel x86_64 8.32-17.el7 base 480 k
perl x86_64 4:5.16.3-292.el7 base 8.0 M
perl-Carp noarch 1.26-244.el7 base 19 k
perl-Encode x86_64 2.51-7.el7 base 1.5 M
perl-Exporter noarch 5.68-3.el7 base 28 k
perl-ExtUtils-Install noarch 1.58-292.el7 base 74 k
perl-ExtUtils-MakeMaker noarch 6.68-3.el7 base 275 k
perl-ExtUtils-Manifest noarch 1.61-244.el7 base 31 k
perl-ExtUtils-ParseXS noarch 1:3.18-3.el7 base 77 k
perl-File-Path noarch 2.09-2.el7 base 26 k
perl-File-Temp noarch 0.23.01-3.el7 base 56 k
perl-Filter x86_64 1.49-3.el7 base 76 k
perl-Getopt-Long noarch 2.40-2.el7 base 56 k
perl-HTTP-Tiny noarch 0.033-3.el7 base 38 k
perl-PathTools x86_64 3.40-5.el7 base 82 k
perl-Pod-Escapes noarch 1:1.04-292.el7 base 51 k
perl-Pod-Perldoc noarch 3.20-4.el7 base 87 k
perl-Pod-Simple noarch 1:3.28-4.el7 base 216 k
perl-Pod-Usage noarch 1.63-3.el7 base 27 k
perl-Scalar-List-Utils x86_64 1.27-248.el7 base 36 k
perl-Socket x86_64 2.010-4.el7 base 49 k
perl-Storable x86_64 2.45-3.el7 base 77 k
perl-Test-Harness noarch 3.28-3.el7 base 302 k
perl-Text-ParseWords noarch 3.29-4.el7 base 14 k
perl-Time-HiRes x86_64 4:1.9725-3.el7 base 45 k
perl-Time-Local noarch 1.2300-2.el7 base 24 k
perl-constant noarch 1.27-2.el7 base 19 k
perl-devel x86_64 4:5.16.3-292.el7 base 453 k
perl-libs x86_64 4:5.16.3-292.el7 base 688 k
perl-macros x86_64 4:5.16.3-292.el7 base 43 k
perl-parent noarch 1:0.225-244.el7 base 12 k
perl-podlators noarch 2.5.1-3.el7 base 112 k
perl-threads x86_64 1.87-4.el7 base 49 k
perl-threads-shared x86_64 1.43-6.el7 base 39 k
popt-devel x86_64 1.13-16.el7 base 22 k
pyparsing noarch 1.5.6-9.el7 base 94 k
rpm-devel x86_64 4.11.3-25.el7 base 105 k
systemtap-sdt-devel x86_64 3.1-4.el7_4 updates 71 k
tcp_wrappers-devel x86_64 7.6-77.el7 base 17 k
xz-devel x86_64 5.2.2-1.el7 base 46 k
zlib-devel x86_64 1.2.7-17.el7 base 50 k
Transaction Summary
Install 3 Packages (+59 Dependent packages)
Total download size: 26 M
Installed size: 66 M
Is this ok [y/d/N]: y
Downloading packages:
(1/62): gdbm-devel-1.10-8.el7.x86_64.rpm | 47 kB 00:06
(2/62): elfutils-libelf-devel-0.168-8.el7.x86_64.rpm | 37 kB 00:05
(3/62): glibc-devel-2.17-196.el7_4.2.x86_64.rpm | 1.1 MB 00:07
(4/62): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00
(5/62): elfutils-devel-0.168-8.el7.x86_64.rpm | 82 kB 00:08
(6/62): glibc-headers-2.17-196.el7_4.2.x86_64.rpm | 676 kB 00:10
(7/62): krb5-devel-1.15.1-8.el7.x86_64.rpm | 266 kB 00:02
(8/62): libcurl-devel-7.29.0-42.el7_4.1.x86_64.rpm | 300 kB 00:01
(9/62): libdb-devel-5.3.21-20.el7.x86_64.rpm | 38 kB 00:00
(10/62): libcom_err-devel-1.42.9-10.el7.x86_64.rpm | 31 kB 00:03
(11/62): libsepol-devel-2.5-6.el7.x86_64.rpm | 74 kB 00:00
(12/62): libverto-devel-0.2.5-4.el7.x86_64.rpm | 12 kB 00:05
(13/62): libkadm5-1.15.1-8.el7.x86_64.rpm | 174 kB 00:06
(14/62): lm_sensors-devel-3.4.0-4.20160601gitf9185e5.el7.x | 26 kB 00:00
(15/62): libselinux-devel-2.5-11.el7.x86_64.rpm | 186 kB 00:07
(16/62): libxml2-devel-2.9.1-6.el7_2.3.x86_64.rpm | 1.0 MB 00:08
(17/62): net-snmp-devel-5.7.2-28.el7.x86_64.rpm | 257 kB 00:01
(18/62): kernel-headers-3.10.0-693.11.6.el7.x86_64.rpm | 6.0 MB 00:13
(19/62): lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x8 | 41 kB 00:03
(20/62): pcre-devel-8.32-17.el7.x86_64.rpm | 480 kB 00:01
(21/62): net-snmp-agent-libs-5.7.2-28.el7.x86_64.rpm | 704 kB 00:05
(22/62): perl-Exporter-5.68-3.el7.noarch.rpm | 28 kB 00:00
(23/62): perl-ExtUtils-Install-1.58-292.el7.noarch.rpm | 74 kB 00:00
(24/62): perl-Carp-1.26-244.el7.noarch.rpm | 19 kB 00:03
(25/62): perl-Encode-2.51-7.el7.x86_64.rpm | 1.5 MB 00:02
(26/62): perl-ExtUtils-Manifest-1.61-244.el7.noarch.rpm | 31 kB 00:00
(27/62): perl-File-Path-2.09-2.el7.noarch.rpm | 26 kB 00:00
(28/62): perl-ExtUtils-ParseXS-3.18-3.el7.noarch.rpm | 77 kB 00:00
(29/62): perl-File-Temp-0.23.01-3.el7.noarch.rpm | 56 kB 00:00
(30/62): perl-Getopt-Long-2.40-2.el7.noarch.rpm | 56 kB 00:00
(31/62): perl-Filter-1.49-3.el7.x86_64.rpm | 76 kB 00:00
(32/62): perl-PathTools-3.40-5.el7.x86_64.rpm | 82 kB 00:00
(33/62): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm | 38 kB 00:00
(34/62): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm | 87 kB 00:00
(35/62): perl-Pod-Escapes-1.04-292.el7.noarch.rpm | 51 kB 00:00
(36/62): perl-ExtUtils-MakeMaker-6.68-3.el7.noarch.rpm | 275 kB 00:02
(37/62): perl-Pod-Usage-1.63-3.el7.noarch.rpm | 27 kB 00:00
(38/62): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm | 36 kB 00:00
(39/62): perl-Socket-2.010-4.el7.x86_64.rpm | 49 kB 00:00
(40/62): perl-Storable-2.45-3.el7.x86_64.rpm | 77 kB 00:00
(41/62): perl-Text-ParseWords-3.29-4.el7.noarch.rpm | 14 kB 00:00
(42/62): perl-Test-Harness-3.28-3.el7.noarch.rpm | 302 kB 00:01
(43/62): perl-Pod-Simple-3.28-4.el7.noarch.rpm | 216 kB 00:01
(44/62): perl-Time-Local-1.2300-2.el7.noarch.rpm | 24 kB 00:00
(45/62): perl-constant-1.27-2.el7.noarch.rpm | 19 kB 00:00
(46/62): perl-devel-5.16.3-292.el7.x86_64.rpm | 453 kB 00:01
(47/62): perl-macros-5.16.3-292.el7.x86_64.rpm | 43 kB 00:00
(48/62): perl-parent-0.225-244.el7.noarch.rpm | 12 kB 00:00
(49/62): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm | 45 kB 00:02
(50/62): perl-podlators-2.5.1-3.el7.noarch.rpm | 112 kB 00:00
(51/62): perl-threads-shared-1.43-6.el7.x86_64.rpm | 39 kB 00:00
(52/62): popt-devel-1.13-16.el7.x86_64.rpm | 22 kB 00:00
(53/62): perl-threads-1.87-4.el7.x86_64.rpm | 49 kB 00:00
(54/62): pyparsing-1.5.6-9.el7.noarch.rpm | 94 kB 00:00
(55/62): rpm-devel-4.11.3-25.el7.x86_64.rpm | 105 kB 00:00
(56/62): systemtap-sdt-devel-3.1-4.el7_4.x86_64.rpm | 71 kB 00:00
(57/62): tcp_wrappers-devel-7.6-77.el7.x86_64.rpm | 17 kB 00:00
(58/62): xz-devel-5.2.2-1.el7.x86_64.rpm | 46 kB 00:00
(59/62): perl-libs-5.16.3-292.el7.x86_64.rpm | 688 kB 00:03
(60/62): zlib-devel-1.2.7-17.el7.x86_64.rpm | 50 kB 00:00
(61/62): perl-5.16.3-292.el7.x86_64.rpm | 8.0 MB 00:20
(62/62): openssl-devel-1.0.2k-8.el7.x86_64.rpm | 1.5 MB 00:26
Total 561 kB/s | 26 MB 00:47
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : zlib-devel-1.2.7-17.el7.x86_64 1/62
Installing : elfutils-libelf-devel-0.168-8.el7.x86_64 2/62
Installing : xz-devel-5.2.2-1.el7.x86_64 3/62
Installing : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64 4/62
Installing : lm_sensors-devel-3.4.0-4.20160601gitf9185e5.el7.x86_64 5/62
Installing : elfutils-devel-0.168-8.el7.x86_64 6/62
Installing : 1:perl-parent-0.225-244.el7.noarch 7/62
Installing : perl-HTTP-Tiny-0.033-3.el7.noarch 8/62
Installing : perl-podlators-2.5.1-3.el7.noarch 9/62
Installing : perl-Pod-Perldoc-3.20-4.el7.noarch 10/62
Installing : 1:perl-Pod-Escapes-1.04-292.el7.noarch 11/62
Installing : perl-Text-ParseWords-3.29-4.el7.noarch 12/62
Installing : perl-Encode-2.51-7.el7.x86_64 13/62
Installing : perl-Pod-Usage-1.63-3.el7.noarch 14/62
Installing : 4:perl-macros-5.16.3-292.el7.x86_64 15/62
Installing : 4:perl-libs-5.16.3-292.el7.x86_64 16/62
Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 17/62
Installing : perl-Exporter-5.68-3.el7.noarch 18/62
Installing : perl-constant-1.27-2.el7.noarch 19/62
Installing : perl-Filter-1.49-3.el7.x86_64 20/62
Installing : perl-Time-Local-1.2300-2.el7.noarch 21/62
Installing : perl-Socket-2.010-4.el7.x86_64 22/62
Installing : perl-Storable-2.45-3.el7.x86_64 23/62
Installing : perl-PathTools-3.40-5.el7.x86_64 24/62
Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64 25/62
Installing : perl-threads-shared-1.43-6.el7.x86_64 26/62
Installing : perl-threads-1.87-4.el7.x86_64 27/62
Installing : perl-File-Temp-0.23.01-3.el7.noarch 28/62
Installing : perl-File-Path-2.09-2.el7.noarch 29/62
Installing : perl-Carp-1.26-244.el7.noarch 30/62
Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch 31/62
Installing : perl-Getopt-Long-2.40-2.el7.noarch 32/62
Installing : 4:perl-5.16.3-292.el7.x86_64 33/62
Installing : perl-Test-Harness-3.28-3.el7.noarch 34/62
Installing : perl-ExtUtils-Manifest-1.61-244.el7.noarch 35/62
Installing : 1:net-snmp-agent-libs-5.7.2-28.el7.x86_64 36/62
Installing : tcp_wrappers-devel-7.6-77.el7.x86_64 37/62
Installing : libsepol-devel-2.5-6.el7.x86_64 38/62
Installing : libdb-devel-5.3.21-20.el7.x86_64 39/62
Installing : kernel-headers-3.10.0-693.11.6.el7.x86_64 40/62
Installing : glibc-headers-2.17-196.el7_4.2.x86_64 41/62
Installing : glibc-devel-2.17-196.el7_4.2.x86_64 42/62
Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 43/62
Installing : pcre-devel-8.32-17.el7.x86_64 44/62
Installing : libselinux-devel-2.5-11.el7.x86_64 45/62
Installing : libcom_err-devel-1.42.9-10.el7.x86_64 46/62
Installing : popt-devel-1.13-16.el7.x86_64 47/62
Installing : rpm-devel-4.11.3-25.el7.x86_64 48/62
Installing : libverto-devel-0.2.5-4.el7.x86_64 49/62
Installing : libkadm5-1.15.1-8.el7.x86_64 50/62
Installing : krb5-devel-1.15.1-8.el7.x86_64 51/62
Installing : 1:openssl-devel-1.0.2k-8.el7.x86_64 52/62
Installing : gdbm-devel-1.10-8.el7.x86_64 53/62
Installing : pyparsing-1.5.6-9.el7.noarch 54/62
Installing : systemtap-sdt-devel-3.1-4.el7_4.x86_64 55/62
Installing : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch 56/62
Installing : 4:perl-devel-5.16.3-292.el7.x86_64 57/62
Installing : perl-ExtUtils-Install-1.58-292.el7.noarch 58/62
Installing : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch 59/62
Installing : 1:net-snmp-devel-5.7.2-28.el7.x86_64 60/62
Installing : libxml2-devel-2.9.1-6.el7_2.3.x86_64 61/62
Installing : libcurl-devel-7.29.0-42.el7_4.1.x86_64 62/62
Verifying : perl-HTTP-Tiny-0.033-3.el7.noarch 1/62
Verifying : zlib-devel-1.2.7-17.el7.x86_64 2/62
Verifying : libxml2-devel-2.9.1-6.el7_2.3.x86_64 3/62
Verifying : perl-threads-shared-1.43-6.el7.x86_64 4/62
Verifying : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 5/62
Verifying : perl-Exporter-5.68-3.el7.noarch 6/62
Verifying : perl-constant-1.27-2.el7.noarch 7/62
Verifying : perl-PathTools-3.40-5.el7.x86_64 8/62
Verifying : 1:net-snmp-devel-5.7.2-28.el7.x86_64 9/62
Verifying : 4:perl-macros-5.16.3-292.el7.x86_64 10/62
Verifying : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch 11/62
Verifying : pyparsing-1.5.6-9.el7.noarch 12/62
Verifying : gdbm-devel-1.10-8.el7.x86_64 13/62
Verifying : libcurl-devel-7.29.0-42.el7_4.1.x86_64 14/62
Verifying : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch 15/62
Verifying : 1:perl-parent-0.225-244.el7.noarch 16/62
Verifying : libkadm5-1.15.1-8.el7.x86_64 17/62
Verifying : glibc-devel-2.17-196.el7_4.2.x86_64 18/62
Verifying : 4:perl-5.16.3-292.el7.x86_64 19/62
Verifying : libverto-devel-0.2.5-4.el7.x86_64 20/62
Verifying : popt-devel-1.13-16.el7.x86_64 21/62
Verifying : perl-Test-Harness-3.28-3.el7.noarch 22/62
Verifying : libcom_err-devel-1.42.9-10.el7.x86_64 23/62
Verifying : pcre-devel-8.32-17.el7.x86_64 24/62
Verifying : perl-Filter-1.49-3.el7.x86_64 25/62
Verifying : perl-File-Temp-0.23.01-3.el7.noarch 26/62
Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 27/62
Verifying : 1:perl-Pod-Simple-3.28-4.el7.noarch 28/62
Verifying : 4:perl-devel-5.16.3-292.el7.x86_64 29/62
Verifying : perl-Time-Local-1.2300-2.el7.noarch 30/62
Verifying : 4:perl-libs-5.16.3-292.el7.x86_64 31/62
Verifying : perl-Pod-Perldoc-3.20-4.el7.noarch 32/62
Verifying : 1:openssl-devel-1.0.2k-8.el7.x86_64 33/62
Verifying : glibc-headers-2.17-196.el7_4.2.x86_64 34/62
Verifying : perl-Socket-2.010-4.el7.x86_64 35/62
Verifying : kernel-headers-3.10.0-693.11.6.el7.x86_64 36/62
Verifying : rpm-devel-4.11.3-25.el7.x86_64 37/62
Verifying : libselinux-devel-2.5-11.el7.x86_64 38/62
Verifying : perl-podlators-2.5.1-3.el7.noarch 39/62
Verifying : perl-ExtUtils-Install-1.58-292.el7.noarch 40/62
Verifying : perl-Storable-2.45-3.el7.x86_64 41/62
Verifying : perl-Scalar-List-Utils-1.27-248.el7.x86_64 42/62
Verifying : systemtap-sdt-devel-3.1-4.el7_4.x86_64 43/62
Verifying : 1:perl-Pod-Escapes-1.04-292.el7.noarch 44/62
Verifying : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64 45/62
Verifying : libdb-devel-5.3.21-20.el7.x86_64 46/62
Verifying : perl-Pod-Usage-1.63-3.el7.noarch 47/62
Verifying : perl-Encode-2.51-7.el7.x86_64 48/62
Verifying : perl-ExtUtils-Manifest-1.61-244.el7.noarch 49/62
Verifying : xz-devel-5.2.2-1.el7.x86_64 50/62
Verifying : elfutils-devel-0.168-8.el7.x86_64 51/62
Verifying : perl-Getopt-Long-2.40-2.el7.noarch 52/62
Verifying : libsepol-devel-2.5-6.el7.x86_64 53/62
Verifying : krb5-devel-1.15.1-8.el7.x86_64 54/62
Verifying : perl-threads-1.87-4.el7.x86_64 55/62
Verifying : lm_sensors-devel-3.4.0-4.20160601gitf9185e5.el7.x86_64 56/62
Verifying : perl-Text-ParseWords-3.29-4.el7.noarch 57/62
Verifying : tcp_wrappers-devel-7.6-77.el7.x86_64 58/62
Verifying : perl-File-Path-2.09-2.el7.noarch 59/62
Verifying : perl-Carp-1.26-244.el7.noarch 60/62
Verifying : elfutils-libelf-devel-0.168-8.el7.x86_64 61/62
Verifying : 1:net-snmp-agent-libs-5.7.2-28.el7.x86_64 62/62
Installed:
libcurl-devel.x86_64 0:7.29.0-42.el7_4.1
libxml2-devel.x86_64 0:2.9.1-6.el7_2.3
net-snmp-devel.x86_64 1:5.7.2-28.el7
Dependency Installed:
elfutils-devel.x86_64 0:0.168-8.el7
elfutils-libelf-devel.x86_64 0:0.168-8.el7
gdbm-devel.x86_64 0:1.10-8.el7
glibc-devel.x86_64 0:2.17-196.el7_4.2
glibc-headers.x86_64 0:2.17-196.el7_4.2
kernel-headers.x86_64 0:3.10.0-693.11.6.el7
keyutils-libs-devel.x86_64 0:1.5.8-3.el7
krb5-devel.x86_64 0:1.15.1-8.el7
libcom_err-devel.x86_64 0:1.42.9-10.el7
libdb-devel.x86_64 0:5.3.21-20.el7
libkadm5.x86_64 0:1.15.1-8.el7
libselinux-devel.x86_64 0:2.5-11.el7
libsepol-devel.x86_64 0:2.5-6.el7
libverto-devel.x86_64 0:0.2.5-4.el7
lm_sensors-devel.x86_64 0:3.4.0-4.20160601gitf9185e5.el7
lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7
net-snmp-agent-libs.x86_64 1:5.7.2-28.el7
openssl-devel.x86_64 1:1.0.2k-8.el7
pcre-devel.x86_64 0:8.32-17.el7
perl.x86_64 4:5.16.3-292.el7
perl-Carp.noarch 0:1.26-244.el7
perl-Encode.x86_64 0:2.51-7.el7
perl-Exporter.noarch 0:5.68-3.el7
perl-ExtUtils-Install.noarch 0:1.58-292.el7
perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7
perl-ExtUtils-Manifest.noarch 0:1.61-244.el7
perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7
perl-File-Path.noarch 0:2.09-2.el7
perl-File-Temp.noarch 0:0.23.01-3.el7
perl-Filter.x86_64 0:1.49-3.el7
perl-Getopt-Long.noarch 0:2.40-2.el7
perl-HTTP-Tiny.noarch 0:0.033-3.el7
perl-PathTools.x86_64 0:3.40-5.el7
perl-Pod-Escapes.noarch 1:1.04-292.el7
perl-Pod-Perldoc.noarch 0:3.20-4.el7
perl-Pod-Simple.noarch 1:3.28-4.el7
perl-Pod-Usage.noarch 0:1.63-3.el7
perl-Scalar-List-Utils.x86_64 0:1.27-248.el7
perl-Socket.x86_64 0:2.010-4.el7
perl-Storable.x86_64 0:2.45-3.el7
perl-Test-Harness.noarch 0:3.28-3.el7
perl-Text-ParseWords.noarch 0:3.29-4.el7
perl-Time-HiRes.x86_64 4:1.9725-3.el7
perl-Time-Local.noarch 0:1.2300-2.el7
perl-constant.noarch 0:1.27-2.el7
perl-devel.x86_64 4:5.16.3-292.el7
perl-libs.x86_64 4:5.16.3-292.el7
perl-macros.x86_64 4:5.16.3-292.el7
perl-parent.noarch 1:0.225-244.el7
perl-podlators.noarch 0:2.5.1-3.el7
perl-threads.x86_64 0:1.87-4.el7
perl-threads-shared.x86_64 0:1.43-6.el7
popt-devel.x86_64 0:1.13-16.el7
pyparsing.noarch 0:1.5.6-9.el7
rpm-devel.x86_64 0:4.11.3-25.el7
systemtap-sdt-devel.x86_64 0:3.1-4.el7_4
tcp_wrappers-devel.x86_64 0:7.6-77.el7
xz-devel.x86_64 0:5.2.2-1.el7
zlib-devel.x86_64 0:1.2.7-17.el7
Complete!
[[email protected] ~]#
检查是否安装成功
[[email protected] ~]# rpm -qa | grep -i httpd
httpd-tools-2.4.6-67.el7.centos.6.x86_64
httpd-2.4.6-67.el7.centos.6.x86_64
以上httpd 已安装
安装php和php相应模块
[[email protected] ~]# yum install php php-devel -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
- base: mirrors.cn99.com
- extras: mirrors.aliyun.com
- updates: mirrors.aliyun.com
Package php-5.4.16-43.el7_4.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.4.16-43.el7_4 will be installed
--> Processing Dependency: automake for package: php-devel-5.4.16-43.el7_4.x86_64
--> Processing Dependency: autoconf for package: php-devel-5.4.16-43.el7_4.x86_64
--> Running transaction check
---> Package autoconf.noarch 0:2.69-11.el7 will be installed
--> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
--> Processing Dependency: perl(Data::Dumper) for package: autoconf-2.69-11.el7.noarch
---> Package automake.noarch 0:1.13.4-3.el7 will be installed
--> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
--> Running transaction check
---> Package m4.x86_64 0:1.4.16-10.el7 will be installed
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================
Package Arch Version Repository Size
Installing:
php-devel x86_64 5.4.16-43.el7_4 updates 602 k
Installing for dependencies:
autoconf noarch 2.69-11.el7 base 701 k
automake noarch 1.13.4-3.el7 base 679 k
m4 x86_64 1.4.16-10.el7 base 256 k
perl-Data-Dumper x86_64 2.145-3.el7 base 47 k
perl-Thread-Queue noarch 3.02-2.el7 base 17 k
Transaction Summary
Install 1 Package (+5 Dependent packages)
Total download size: 2.2 M
Installed size: 8.4 M
Downloading packages:
(1/6): perl-Thread-Queue-3.02-2.el7.noarch.rpm | 17 kB 00:00:01
(2/6): perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00:01
(3/6): m4-1.4.16-10.el7.x86_64.rpm | 256 kB 00:00:02
(4/6): automake-1.13.4-3.el7.noarch.rpm | 679 kB 00:00:03
(5/6): php-devel-5.4.16-43.el7_4.x86_64.rpm | 602 kB 00:00:01
(6/6): autoconf-2.69-11.el7.noarch.rpm | 701 kB 00:00:04
Total 462 kB/s | 2.2 MB 00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : m4-1.4.16-10.el7.x86_64 1/6
Installing : perl-Thread-Queue-3.02-2.el7.noarch 2/6
Installing : perl-Data-Dumper-2.145-3.el7.x86_64 3/6
Installing : autoconf-2.69-11.el7.noarch 4/6
Installing : automake-1.13.4-3.el7.noarch 5/6
Installing : php-devel-5.4.16-43.el7_4.x86_64 6/6
Verifying : autoconf-2.69-11.el7.noarch 1/6
Verifying : perl-Data-Dumper-2.145-3.el7.x86_64 2/6
Verifying : perl-Thread-Queue-3.02-2.el7.noarch 3/6
Verifying : php-devel-5.4.16-43.el7_4.x86_64 4/6
Verifying : automake-1.13.4-3.el7.noarch 5/6
Verifying : m4-1.4.16-10.el7.x86_64 6/6
Installed:
php-devel.x86_64 0:5.4.16-43.el7_4
Dependency Installed:
autoconf.noarch 0:2.69-11.el7 automake.noarch 0:1.13.4-3.el7
m4.x86_64 0:1.4.16-10.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7
perl-Thread-Queue.noarch 0:3.02-2.el7
Complete!
[[email protected] ~]# yum install php-fpm php-fpm-devel -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
- base: mirrors.cn99.com
- extras: mirrors.aliyun.com
- updates: mirrors.aliyun.com
No package php-fpm-devel available.
Resolving Dependencies
--> Running transaction check
---> Package php-fpm.x86_64 0:5.4.16-43.el7_4 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================
Package Arch Version Repository Size
Installing:
php-fpm x86_64 5.4.16-43.el7_4 updates 1.4 M
Transaction Summary
Install 1 Package
Total download size: 1.4 M
Installed size: 4.5 M
Downloading packages:
php-fpm-5.4.16-43.el7_4.x86_64.rpm | 1.4 MB 00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : php-fpm-5.4.16-43.el7_4.x86_64 1/1
Verifying : php-fpm-5.4.16-43.el7_4.x86_64 1/1
Installed:
php-fpm.x86_64 0:5.4.16-43.el7_4
Complete!
[[email protected] ~]#
检查是否已经安装php
[[email protected] ~]# rpm -qa | grep -i php
php-common-5.4.16-43.el7_4.x86_64
php-xml-5.4.16-43.el7_4.x86_64
php-cli-5.4.16-43.el7_4.x86_64
php-5.4.16-43.el7_4.x86_64
php-devel-5.4.16-43.el7_4.x86_64
php-pdo-5.4.16-43.el7_4.x86_64
php-mysql-5.4.16-43.el7_4.x86_64
php-ldap-5.4.16-43.el7_4.x86_64
php-bcmath-5.4.16-43.el7_4.x86_64
php-gd-5.4.16-43.el7_4.x86_64
php-fpm-5.4.16-43.el7_4.x86_64
php-pgsql-5.4.16-43.el7_4.x86_64
php-mbstring-5.4.16-43.el7_4.x86_64
以上已安装php成功
安装mysql server
因为centos7默认的yum安装的数据库是marridb,所以我们需要手动下载mysql rpm包来安装mysql
下载链接: https://dev.mysql.com/downloads/mysql/
查看所下载的安装包
[[email protected] mysql5.6]# ls -ltr
total 84264
-rw-r--r--. 1 root root 62426388 Jan 15 16:32 MySQL-server-5.6.39-1.el7.x86_64.rpm
-rw-r--r--. 1 root root 3533032 Jan 15 16:35 MySQL-devel-5.6.39-1.el7.x86_64.rpm
-rw-r--r--. 1 root root 20323040 Jan 15 16:38 MySQL-client-5.6.39-1.el7.x86_64.rpm
开始安装mysql server
[[email protected] mysql5.6]# rpm -ivh MySQL-server-5.6.39-1.el7.x86_64.rpm
warning: MySQL-server-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
file /usr/share/mysql/charsets/README from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/cp852.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/cp866.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/dec8.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/geostd8.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/greek.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/hebrew.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/hp8.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/keybcs2.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/koi8r.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/koi8u.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/latin1.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/latin2.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/latin5.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/latin7.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/macroman.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-5.6.39-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
有报错
强制卸载mariadb-libs-5.5.56-2.el7.x86_64 包可以解决
[[email protected] mysql5.6]# rpm -qa | grep mariadb
mariadb-libs-5.5.56-2.el7.x86_64
[[email protected] mysql5.6]# rpm -e mariadb-libs-5.5.56-2.el7.x86_64
error: Failed dependencies:
libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-6.el7.x86_64
libmysqlclient.so.18()(64bit) is needed by (installed) php-mysql-5.4.16-43.el7_4.x86_64
libmysqlclient.so.18()(64bit) is needed by (installed) zabbix-proxy-mysql-3.4.5-1.el7.x86_64
libmysqlclient.so.18()(64bit) is needed by (installed) zabbix-server-mysql-3.4.5-1.el7.x86_64
libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-6.el7.x86_64
libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) php-mysql-5.4.16-43.el7_4.x86_64
libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) zabbix-proxy-mysql-3.4.5-1.el7.x86_64
libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) zabbix-server-mysql-3.4.5-1.el7.x86_64
[[email protected] mysql5.6]# rpm -e mariadb-libs-5.5.56-2.el7.x86_64 --nodeps
[[email protected] mysql5.6]# rpm -qa | grep mariadb
正式安装mysql server
[[email protected] mysql5.6]# rpm -ivh MySQL-server-5.6.39-1.el7.x86_64.rpm
warning: MySQL-server-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:MySQL-server-5.6.39-1.el7 ################################# [100%]
warning: user mysql does not exist - using root
warning: group mysql does not exist - using root
warning: user mysql does not exist - using root
warning: group mysql does not exist - using root
2018-01-15 17:32:03 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-15 17:32:03 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-01-15 17:32:03 0 [Note] /usr/sbin/mysqld (mysqld 5.6.39) starting as process 4171 ...
2018-01-15 17:32:03 4171 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-01-15 17:32:03 4171 [Note] InnoDB: The InnoDB memory heap is disabled
2018-01-15 17:32:03 4171 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-15 17:32:03 4171 [Note] InnoDB: Memory barrier is not used
2018-01-15 17:32:03 4171 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-01-15 17:32:03 4171 [Note] InnoDB: Using Linux native AIO
2018-01-15 17:32:03 4171 [Note] InnoDB: Not using CPU crc32 instructions
2018-01-15 17:32:03 4171 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-01-15 17:32:03 4171 [Note] InnoDB: Completed initialization of buffer pool
2018-01-15 17:32:04 4171 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2018-01-15 17:32:04 4171 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2018-01-15 17:32:04 4171 [Note] InnoDB: Database physically writes the file full: wait...
2018-01-15 17:32:04 4171 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2018-01-15 17:32:06 4171 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2018-01-15 17:32:07 4171 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2018-01-15 17:32:07 4171 [Warning] InnoDB: New log files created, LSN=45781
2018-01-15 17:32:07 4171 [Note] InnoDB: Doublewrite buffer not found: creating new
2018-01-15 17:32:07 4171 [Note] InnoDB: Doublewrite buffer created
2018-01-15 17:32:07 4171 [Note] InnoDB: 128 rollback segment(s) are active.
2018-01-15 17:32:07 4171 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-01-15 17:32:07 4171 [Note] InnoDB: Foreign key constraint system tables created
2018-01-15 17:32:07 4171 [Note] InnoDB: Creating tablespace and datafile system tables.
2018-01-15 17:32:07 4171 [Note] InnoDB: Tablespace and datafile system tables created.
2018-01-15 17:32:07 4171 [Note] InnoDB: Waiting for purge to start
2018-01-15 17:32:07 4171 [Note] InnoDB: 5.6.39 started; log sequence number 0
A random root password has been set. You will find it in ‘/root/.mysql_secret‘.
2018-01-15 17:32:07 4171 [Note] Binlog end
2018-01-15 17:32:07 4171 [Note] InnoDB: FTS optimize thread exiting.
2018-01-15 17:32:07 4171 [Note] InnoDB: Starting shutdown...
2018-01-15 17:32:09 4171 [Note] InnoDB: Shutdown completed; log sequence number 1625977
2018-01-15 17:32:09 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-15 17:32:09 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-01-15 17:32:09 0 [Note] /usr/sbin/mysqld (mysqld 5.6.39) starting as process 4193 ...
2018-01-15 17:32:09 4193 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-01-15 17:32:09 4193 [Note] InnoDB: The InnoDB memory heap is disabled
2018-01-15 17:32:09 4193 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-15 17:32:09 4193 [Note] InnoDB: Memory barrier is not used
2018-01-15 17:32:09 4193 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-01-15 17:32:09 4193 [Note] InnoDB: Using Linux native AIO
2018-01-15 17:32:09 4193 [Note] InnoDB: Not using CPU crc32 instructions
2018-01-15 17:32:09 4193 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-01-15 17:32:09 4193 [Note] InnoDB: Completed initialization of buffer pool
2018-01-15 17:32:09 4193 [Note] InnoDB: Highest supported file format is Barracuda.
2018-01-15 17:32:09 4193 [Note] InnoDB: 128 rollback segment(s) are active.
2018-01-15 17:32:09 4193 [Note] InnoDB: Waiting for purge to start
2018-01-15 17:32:09 4193 [Note] InnoDB: 5.6.39 started; log sequence number 1625977
2018-01-15 17:32:10 4193 [Note] Binlog end
2018-01-15 17:32:10 4193 [Note] InnoDB: FTS optimize thread exiting.
2018-01-15 17:32:10 4193 [Note] InnoDB: Starting shutdown...
2018-01-15 17:32:11 4193 [Note] InnoDB: Shutdown completed; log sequence number 1625987
A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
You will find that password in ‘/root/.mysql_secret‘.
You must change that password on your first connect,
no other statement but ‘SET PASSWORD‘ will be accepted.
See the manual for the semantics of the ‘password expired‘ flag.
Also, the account for the anonymous user has been removed.
In addition, you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test database.
This is strongly recommended for production servers.
See the manual for more instructions.
Please report any problems at http://bugs.mysql.com/
The latest information about MySQL is available on the web at
Support MySQL by buying support/licenses at http://shop.mysql.com
New default config file was created as /usr/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings
[[email protected] mysql5.6]# id mysql
uid=995(mysql) gid=992(mysql) groups=992(mysql)
[[email protected] mysql5.6]# rpm -ivh MySQL-devel-5.6.39-1.el7.x86_64.rpm MySQL-client-5.6.39-1.el7.x86_64.rpm
warning: MySQL-devel-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:MySQL-client-5.6.39-1.el7 ################################# [ 50%]
2:MySQL-devel-5.6.39-1.el7 ################################# [100%]
[[email protected] mysql5.6]#
检查安装结果
[[email protected] mysql5.6]# rpm -qa | grep MySQL
MySQL-client-5.6.39-1.el7.x86_64
MySQL-server-5.6.39-1.el7.x86_64
MySQL-devel-5.6.39-1.el7.x86_64
以上表明mysql 安装成功
[[email protected] mysql5.6]# which mysql_install_db
/usr/bin/mysql_install_db
[[email protected] mysql5.6]# rpm -ql MySQL-server-5.6.39-1.el7.x86_64
/etc/init.d/mysql
/etc/logrotate.d/mysql
/etc/my.cnf
/etc/my.cnf.d
/usr/bin/innochecksum
/usr/bin/my_print_defaults
/usr/bin/myisam_ftdump
/usr/bin/myisamchk
/usr/bin/myisamlog
/usr/bin/myisampack
/usr/bin/mysql_convert_table_format
/usr/bin/mysql_fix_extensions
/usr/bin/mysql_install_db
/usr/bin/mysql_plugin
/usr/bin/mysql_secure_installation
/usr/bin/mysql_setpermission
/usr/bin/mysql_tzinfo_to_sql
/usr/bin/mysql_upgrade
/usr/bin/mysql_zap
/usr/bin/mysqlbug
/usr/bin/mysqld_multi
/usr/bin/mysqld_safe
/usr/bin/mysqldumpslow
/usr/bin/mysqlhotcopy
/usr/bin/mysqltest
/usr/bin/perror
/usr/bin/replace
/usr/bin/resolve_stack_dump
/usr/bin/resolveip
/usr/lib64/mysql/plugin/adt_null.so
/usr/lib64/mysql/plugin/auth.so
/usr/lib64/mysql/plugin/auth_socket.so
/usr/lib64/mysql/plugin/auth_test_plugin.so
/usr/lib64/mysql/plugin/connection_control.so
/usr/lib64/mysql/plugin/daemon_example.ini
/usr/lib64/mysql/plugin/debug/adt_null.so
/usr/lib64/mysql/plugin/debug/auth.so
/usr/lib64/mysql/plugin/debug/auth_socket.so
/usr/lib64/mysql/plugin/debug/auth_test_plugin.so
/usr/lib64/mysql/plugin/debug/connection_control.so
/usr/lib64/mysql/plugin/debug/innodb_engine.so
/usr/lib64/mysql/plugin/debug/libdaemon_example.so
/usr/lib64/mysql/plugin/debug/libmemcached.so
/usr/lib64/mysql/plugin/debug/mypluglib.so
/usr/lib64/mysql/plugin/debug/mysql_no_login.so
/usr/lib64/mysql/plugin/debug/qa_auth_client.so
/usr/lib64/mysql/plugin/debug/qa_auth_interface.so
/usr/lib64/mysql/plugin/debug/qa_auth_server.so
/usr/lib64/mysql/plugin/debug/semisync_master.so
/usr/lib64/mysql/plugin/debug/semisync_slave.so
/usr/lib64/mysql/plugin/debug/test_udf_services.so
/usr/lib64/mysql/plugin/debug/validate_password.so
/usr/lib64/mysql/plugin/innodb_engine.so
/usr/lib64/mysql/plugin/libdaemon_example.so
/usr/lib64/mysql/plugin/libmemcached.so
/usr/lib64/mysql/plugin/mypluglib.so
/usr/lib64/mysql/plugin/mysql_no_login.so
/usr/lib64/mysql/plugin/qa_auth_client.so
/usr/lib64/mysql/plugin/qa_auth_interface.so
/usr/lib64/mysql/plugin/qa_auth_server.so
/usr/lib64/mysql/plugin/semisync_master.so
/usr/lib64/mysql/plugin/semisync_slave.so
/usr/lib64/mysql/plugin/test_udf_services.so
/usr/lib64/mysql/plugin/validate_password.so
/usr/sbin/mysqld
/usr/sbin/mysqld-debug
/usr/sbin/rcmysql
/usr/share/doc/MySQL-server-5.6.39
/usr/share/doc/MySQL-server-5.6.39/COPYING
/usr/share/doc/MySQL-server-5.6.39/ChangeLog
/usr/share/doc/MySQL-server-5.6.39/INFO_BIN
/usr/share/doc/MySQL-server-5.6.39/INFO_SRC
/usr/share/doc/MySQL-server-5.6.39/README
/usr/share/doc/MySQL-server-5.6.39/my-default.cnf
/usr/share/man/man1/innochecksum.1.gz
/usr/share/man/man1/my_print_defaults.1.gz
/usr/share/man/man1/myisam_ftdump.1.gz
/usr/share/man/man1/myisamchk.1.gz
/usr/share/man/man1/myisamlog.1.gz
/usr/share/man/man1/myisampack.1.gz
/usr/share/man/man1/mysql.server.1.gz
/usr/share/man/man1/mysql_convert_table_format.1.gz
/usr/share/man/man1/mysql_fix_extensions.1.gz
/usr/share/man/man1/mysql_install_db.1.gz
/usr/share/man/man1/mysql_plugin.1.gz
/usr/share/man/man1/mysql_secure_installation.1.gz
/usr/share/man/man1/mysql_setpermission.1.gz
/usr/share/man/man1/mysql_tzinfo_to_sql.1.gz
/usr/share/man/man1/mysql_upgrade.1.gz
/usr/share/man/man1/mysql_zap.1.gz
/usr/share/man/man1/mysqlbug.1.gz
/usr/share/man/man1/mysqld_multi.1.gz
/usr/share/man/man1/mysqld_safe.1.gz
/usr/share/man/man1/mysqldumpslow.1.gz
/usr/share/man/man1/mysqlhotcopy.1.gz
/usr/share/man/man1/mysqlman.1.gz
/usr/share/man/man1/perror.1.gz
/usr/share/man/man1/replace.1.gz
/usr/share/man/man1/resolve_stack_dump.1.gz
/usr/share/man/man1/resolveip.1.gz
/usr/share/man/man8/mysqld.8.gz
/usr/share/mysql
/usr/share/mysql/SELinux
/usr/share/mysql/SELinux/RHEL4
/usr/share/mysql/SELinux/RHEL4/mysql.fc
/usr/share/mysql/SELinux/RHEL4/mysql.te
/usr/share/mysql/binary-configure
/usr/share/mysql/bulgarian
/usr/share/mysql/bulgarian/errmsg.sys
/usr/share/mysql/charsets
/usr/share/mysql/charsets/Index.xml
/usr/share/mysql/charsets/README
/usr/share/mysql/charsets/armscii8.xml
/usr/share/mysql/charsets/ascii.xml
/usr/share/mysql/charsets/cp1250.xml
/usr/share/mysql/charsets/cp1251.xml
/usr/share/mysql/charsets/cp1256.xml
/usr/share/mysql/charsets/cp1257.xml
/usr/share/mysql/charsets/cp850.xml
/usr/share/mysql/charsets/cp852.xml
/usr/share/mysql/charsets/cp866.xml
/usr/share/mysql/charsets/dec8.xml
/usr/share/mysql/charsets/geostd8.xml
/usr/share/mysql/charsets/greek.xml
/usr/share/mysql/charsets/hebrew.xml
/usr/share/mysql/charsets/hp8.xml
/usr/share/mysql/charsets/keybcs2.xml
/usr/share/mysql/charsets/koi8r.xml
/usr/share/mysql/charsets/koi8u.xml
/usr/share/mysql/charsets/latin1.xml
/usr/share/mysql/charsets/latin2.xml
/usr/share/mysql/charsets/latin5.xml
/usr/share/mysql/charsets/latin7.xml
/usr/share/mysql/charsets/macce.xml
/usr/share/mysql/charsets/macroman.xml
/usr/share/mysql/charsets/swe7.xml
/usr/share/mysql/czech
/usr/share/mysql/czech/errmsg.sys
/usr/share/mysql/danish
/usr/share/mysql/danish/errmsg.sys
/usr/share/mysql/dictionary.txt
/usr/share/mysql/dutch
/usr/share/mysql/dutch/errmsg.sys
/usr/share/mysql/english
/usr/share/mysql/english/errmsg.sys
/usr/share/mysql/errmsg-utf8.txt
/usr/share/mysql/estonian
/usr/share/mysql/estonian/errmsg.sys
/usr/share/mysql/fill_help_tables.sql
/usr/share/mysql/french
/usr/share/mysql/french/errmsg.sys
/usr/share/mysql/german
/usr/share/mysql/german/errmsg.sys
/usr/share/mysql/greek
/usr/share/mysql/greek/errmsg.sys
/usr/share/mysql/hungarian
/usr/share/mysql/hungarian/errmsg.sys
/usr/share/mysql/innodb_memcached_config.sql
/usr/share/mysql/italian
/usr/share/mysql/italian/errmsg.sys
/usr/share/mysql/japanese
/usr/share/mysql/japanese/errmsg.sys
/usr/share/mysql/korean
/usr/share/mysql/korean/errmsg.sys
/usr/share/mysql/magic
/usr/share/mysql/my-default.cnf
/usr/share/mysql/mysql-log-rotate
/usr/share/mysql/mysql.server
/usr/share/mysql/mysql_security_commands.sql
/usr/share/mysql/mysql_system_tables.sql
/usr/share/mysql/mysql_system_tables_data.sql
/usr/share/mysql/mysql_test_data_timezone.sql
/usr/share/mysql/mysqld_multi.server
/usr/share/mysql/norwegian
/usr/share/mysql/norwegian-ny
/usr/share/mysql/norwegian-ny/errmsg.sys
/usr/share/mysql/norwegian/errmsg.sys
/usr/share/mysql/polish
/usr/share/mysql/polish/errmsg.sys
/usr/share/mysql/portuguese
/usr/share/mysql/portuguese/errmsg.sys
/usr/share/mysql/romanian
/usr/share/mysql/romanian/errmsg.sys
/usr/share/mysql/russian
/usr/share/mysql/russian/errmsg.sys
/usr/share/mysql/serbian
/usr/share/mysql/serbian/errmsg.sys
/usr/share/mysql/slovak
/usr/share/mysql/slovak/errmsg.sys
/usr/share/mysql/spanish
/usr/share/mysql/spanish/errmsg.sys
/usr/share/mysql/swedish
/usr/share/mysql/swedish/errmsg.sys
/usr/share/mysql/ukrainian
/usr/share/mysql/ukrainian/errmsg.sys
/var/lib/mysql
/var/lib/mysql-files
[[email protected] mysql5.6]# ls -ltr /var/lib/mysql
total 110608
drwxr-xr-x. 2 mysql mysql 6 Jan 15 17:32 test
-rw-rw----. 1 mysql mysql 50331648 Jan 15 17:32 ib_logfile1
drwx------. 2 mysql mysql 4096 Jan 15 17:32 performance_schema
drwx--x--x. 2 mysql mysql 4096 Jan 15 17:32 mysql
-rw-rw----. 1 mysql mysql 50331648 Jan 15 17:32 ib_logfile0
-rw-rw----. 1 mysql mysql 12582912 Jan 15 17:32 ibdata1
-rw-r--r--. 1 mysql mysql 111 Jan 15 17:32 RPM_UPGRADE_MARKER-LAST
-rw-r--r--. 1 root root 111 Jan 15 17:32 RPM_UPGRADE_HISTORY
开始配置,修改mysql用户
[[email protected]~]# grep mysql /etc/passwd
mysql:x:995:992:MySQL server:/var/lib/mysql:/bin/bash
[[email protected]~]# usermod -s /sbin/nologin mysql
[[email protected] ~]# grep mysql /etc/passwd
mysql:x:995:992:MySQL server:/var/lib/mysql:/sbin/nologin
[[email protected] ~]# grep mysql /etc/group
mysql:x:992:
创建数据安装目录
[[email protected] ~]# mkdir /zabbix_data/mysql -p
[[email protected] ~]# chown mysql.mysql /zabbix_data/mysql
[[email protected] ~]# ls -ld /zabbix_data/mysql
drwxr-xr-x. 2 mysql mysql 6 Jan 15 17:52 /zabbix_data/mysql
初始化数据库
[[email protected] ~]# /usr/bin/mysql_install_db --user=mysql --datadir=/zabbix_data/mysql
Installing MySQL system tables...2018-01-15 17:54:31 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-15 17:54:31 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-01-15 17:54:31 0 [Note] /usr/sbin/mysqld (mysqld 5.6.39) starting as process 4329 ...
2018-01-15 17:54:31 4329 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-01-15 17:54:31 4329 [Note] InnoDB: The InnoDB memory heap is disabled
2018-01-15 17:54:31 4329 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-15 17:54:31 4329 [Note] InnoDB: Memory barrier is not used
2018-01-15 17:54:31 4329 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-01-15 17:54:31 4329 [Note] InnoDB: Using Linux native AIO
2018-01-15 17:54:31 4329 [Note] InnoDB: Not using CPU crc32 instructions
2018-01-15 17:54:31 4329 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-01-15 17:54:31 4329 [Note] InnoDB: Completed initialization of buffer pool
2018-01-15 17:54:31 4329 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2018-01-15 17:54:31 4329 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2018-01-15 17:54:31 4329 [Note] InnoDB: Database physically writes the file full: wait...
2018-01-15 17:54:31 4329 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2018-01-15 17:54:33 4329 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2018-01-15 17:54:35 4329 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2018-01-15 17:54:35 4329 [Warning] InnoDB: New log files created, LSN=45781
2018-01-15 17:54:35 4329 [Note] InnoDB: Doublewrite buffer not found: creating new
2018-01-15 17:54:35 4329 [Note] InnoDB: Doublewrite buffer created
2018-01-15 17:54:35 4329 [Note] InnoDB: 128 rollback segment(s) are active.
2018-01-15 17:54:35 4329 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-01-15 17:54:35 4329 [Note] InnoDB: Foreign key constraint system tables created
2018-01-15 17:54:35 4329 [Note] InnoDB: Creating tablespace and datafile system tables.
2018-01-15 17:54:35 4329 [Note] InnoDB: Tablespace and datafile system tables created.
2018-01-15 17:54:35 4329 [Note] InnoDB: Waiting for purge to start
2018-01-15 17:54:35 4329 [Note] InnoDB: 5.6.39 started; log sequence number 0
2018-01-15 17:54:35 4329 [Note] Binlog end
2018-01-15 17:54:35 4329 [Note] InnoDB: FTS optimize thread exiting.
2018-01-15 17:54:35 4329 [Note] InnoDB: Starting shutdown...
2018-01-15 17:54:37 4329 [Note] InnoDB: Shutdown completed; log sequence number 1625977
OK
Filling help tables...2018-01-15 17:54:37 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-15 17:54:37 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-01-15 17:54:37 0 [Note] /usr/sbin/mysqld (mysqld 5.6.39) starting as process 4352 ...
2018-01-15 17:54:37 4352 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-01-15 17:54:37 4352 [Note] InnoDB: The InnoDB memory heap is disabled
2018-01-15 17:54:37 4352 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-15 17:54:37 4352 [Note] InnoDB: Memory barrier is not used
2018-01-15 17:54:37 4352 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-01-15 17:54:37 4352 [Note] InnoDB: Using Linux native AIO
2018-01-15 17:54:37 4352 [Note] InnoDB: Not using CPU crc32 instructions
2018-01-15 17:54:37 4352 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-01-15 17:54:37 4352 [Note] InnoDB: Completed initialization of buffer pool
2018-01-15 17:54:37 4352 [Note] InnoDB: Highest supported file format is Barracuda.
2018-01-15 17:54:37 4352 [Note] InnoDB: 128 rollback segment(s) are active.
2018-01-15 17:54:37 4352 [Note] InnoDB: Waiting for purge to start
2018-01-15 17:54:37 4352 [Note] InnoDB: 5.6.39 started; log sequence number 1625977
2018-01-15 17:54:37 4352 [Note] Binlog end
2018-01-15 17:54:37 4352 [Note] InnoDB: FTS optimize thread exiting.
2018-01-15 17:54:37 4352 [Note] InnoDB: Starting shutdown...
2018-01-15 17:54:39 4352 [Note] InnoDB: Shutdown completed; log sequence number 1625987
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password ‘new-password‘
/usr/bin/mysqladmin -u root -h centos11 password ‘new-password‘
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems at http://bugs.mysql.com/
The latest information about MySQL is available on the web at
Support MySQL by buying support/licenses at http://shop.mysql.com
WARNING: Found existing config file /usr/my.cnf on the system.
Because this file might be in use, it was not replaced,
but was used in bootstrap (unless you used --defaults-file)
and when you later start the server.
The new default config file was created as /usr/my-new.cnf,
please compare it with your file and take the changes you need.
启动mysql 并设置其密码
[[email protected] ~]# systemctl start mysql
[[email protected] ~]# ps -ef | grep mysql
root 4394 1 0 17:56 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/centos11.pid
mysql 4490 4394 7 17:56 ? 00:00:04 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=centos11.err --pid-file=/var/lib/mysql/centos11.pid
root 4544 940 0 17:57 pts/0 00:00:00 grep --color=auto mysql
[[email protected] ~]# /usr/bin/mysqladmin -u root password ‘icilszx01‘
/usr/bin/mysqladmin: connect to server at ‘localhost‘ failed
[[email protected] ~]# cat /root/.mysql_secret # The random password set for the root user at Mon Jan 15 17:32:07 2018 (local time): frx5zKMoQMuV8d4W
[[email protected] ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.6.39
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
mysql>
mysql> quit
Bye
mysql> select user,hosts from mysql.user;
ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
mysql> SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘icilszx01‘);
Query OK, 0 rows affected (0.20 sec)
mysql> select user,host from mysql.user;
+------+-----------+
| user | host |
+------+-----------+
| root | 127.0.0.1 |
| root | ::1 |
| root | centos11 |
| root | localhost |
+------+-----------+
4 rows in set (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.02 sec)
删除无用的用户
mysql> drop user ‘root‘@‘127.0.0.1‘;
Query OK, 0 rows affected (0.00 sec)
mysql> drop user ‘root‘@‘::1‘;
Query OK, 0 rows affected (0.00 sec)
mysql> drop user ‘root‘@‘centos11‘;
Query OK, 0 rows affected (0.02 sec)
mysql> select user,host from mysql.user;
+------+-----------+
| user | host |
+------+-----------+
| root | localhost |
+------+-----------+
1 row in set (0.00 sec)
初始化zabbix数据库
参考链接: https://www.zabbix.com/documentation/3.4/manual/appendix/install/db_scripts
[[email protected] ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.39 MySQL Community Server (GPL)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
mysql> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.24 sec)
mysql> grant all privileges on zabbix.* to [email protected] identified by ‘icilszx01‘;
Query OK, 0 rows affected (0.09 sec)
mysql> flush privileges
-> ;
Query OK, 0 rows affected (0.04 sec)
导入zabbix数据
[[email protected] zabbix-server-mysql-3.4.5]# pwd
/usr/share/doc/zabbix-server-mysql-3.4.5
[[email protected] zabbix-server-mysql-3.4.5]# ls -ltr
total 2076
-rw-r--r--. 1 root root 98 Dec 27 22:04 AUTHORS
-rw-r--r--. 1 root root 188 Dec 27 22:04 README
-rw-r--r--. 1 root root 821731 Dec 27 22:04 ChangeLog
-rw-r--r--. 1 root root 52 Dec 27 22:04 NEWS
-rw-r--r--. 1 root root 17990 Dec 27 22:04 COPYING
-rw-r--r--. 1 root root 1266917 Dec 27 22:08 create.sql.gz
[[email protected] zabbix-server-mysql-3.4.5]# gunzip create.sql.gz
[[email protected] zabbix-server-mysql-3.4.5]# ls -ltr
total 5708
-rw-r--r--. 1 root root 98 Dec 27 22:04 AUTHORS
-rw-r--r--. 1 root root 188 Dec 27 22:04 README
-rw-r--r--. 1 root root 821731 Dec 27 22:04 ChangeLog
-rw-r--r--. 1 root root 52 Dec 27 22:04 NEWS
-rw-r--r--. 1 root root 17990 Dec 27 22:04 COPYING
-rw-r--r--. 1 root root 4988036 Dec 27 22:08 create.sql
[[email protected] zabbix-server-mysql-3.4.5]# mysql -uzabbix -p**** zabbix < create.sql
Warning: Using a password on the command line interface can be insecure.
[[email protected] zabbix-server-mysql-3.4.5]# ls -ltr create.sql
-rw-r--r--. 1 root root 4988036 Dec 27 22:08 create.sql
[[email protected] zabbix-server-mysql-3.4.5]#
检查zabbix数据库
[[email protected] ~]# mysql -u zabbix -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.6.39 MySQL Community Server (GPL)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
| zabbix |
+--------------------+
3 rows in set (0.11 sec)
mysql> use zabbix;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+----------------------------+
| Tables_in_zabbix |
+----------------------------+
| acknowledges |
| actions |
| alerts |
| application_discovery |
| application_prototype |
| application_template |
| applications |
| auditlog |
| auditlog_details |
| autoreg_host |
| conditions |
| config |
| corr_condition |
| corr_condition_group |
| corr_condition_tag |
| corr_condition_tagpair |
| corr_condition_tagvalue |
| corr_operation |
| correlation |
| dashboard |
| dashboard_user |
| dashboard_usrgrp |
| dbversion |
| dchecks |
| dhosts |
| drules |
| dservices |
| escalations |
| event_recovery |
| event_tag |
| events |
| expressions |
| functions |
| globalmacro |
| globalvars |
| graph_discovery |
| graph_theme |
| graphs |
| graphs_items |
| group_discovery |
| group_prototype |
| groups |
| history |
| history_log |
| history_str |
| history_text |
| history_uint |
| host_discovery |
| host_inventory |
| hostmacro |
| hosts |
| hosts_groups |
| hosts_templates |
| housekeeper |
| httpstep |
| httpstep_field |
| httpstepitem |
| httptest |
| httptest_field |
| httptestitem |
| icon_map |
| icon_mapping |
| ids |
| images |
| interface |
| interface_discovery |
| item_application_prototype |
| item_condition |
| item_discovery |
| item_preproc |
| items |
| items_applications |
| maintenances |
| maintenances_groups |
| maintenances_hosts |
| maintenances_windows |
| mappings |
| media |
| media_type |
| opcommand |
| opcommand_grp |
| opcommand_hst |
| opconditions |
| operations |
| opgroup |
| opinventory |
| opmessage |
| opmessage_grp |
| opmessage_usr |
| optemplate |
| problem |
| problem_tag |
| profiles |
| proxy_autoreg_host |
| proxy_dhistory |
| proxy_history |
| regexps |
| rights |
| screen_user |
| screen_usrgrp |
| screens |
| screens_items |
| scripts |
| service_alarms |
| services |
| services_links |
| services_times |
| sessions |
| slides |
| slideshow_user |
| slideshow_usrgrp |
| slideshows |
| sysmap_element_trigger |
| sysmap_element_url |
| sysmap_shape |
| sysmap_url |
| sysmap_user |
| sysmap_usrgrp |
| sysmaps |
| sysmaps_elements |
| sysmaps_link_triggers |
| sysmaps_links |
| task |
| task_acknowledge |
| task_close_problem |
| task_remote_command |
| task_remote_command_result |
| timeperiods |
| trends |
| trends_uint |
| trigger_depends |
| trigger_discovery |
| trigger_tag |
| triggers |
| users |
| users_groups |
| usrgrp |
| valuemaps |
| widget |
| widget_field |
+----------------------------+
140 rows in set (0.00 sec)
mysql>
以上表明zabbix数据库初始化成功
[[email protected] ~]# diff /etc/zabbix/zabbix_server.conf /etc/zabbix/zabbix_server.conf.bk.20170116
91c91
< DBHost=localhost
DBHost=localhost
125c125
< DBPassword=icilszx01DBPassword=
[[email protected] ~]# egrep -v ‘#|^$‘ /etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
SocketDir=/var/run/zabbix
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=icilszx01
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
[[email protected] ~]# systemctl start zabbix-server
Job for zabbix-server.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
[[email protected] ~]# tail -2 /var/log/zabbix/zabbix_server.log
zabbix_server [12216]: cannot open log: cannot create semaphore set: [28] No space left on device
zabbix_server [12221]: cannot open log: cannot create semaphore set: [28] No space left on device
[[email protected] ~]#
[[email protected] ~]# ipcs -lm
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 18014398509465599
max total shared memory (kbytes) = 18014398442373116
min seg size (bytes) = 1
[[email protected] ~]# free -m
total used free shared buff/cache available
Mem: 228 127 7 10 93 53
Swap: 2047 438 1609
[[email protected] ~]# cat /proc/sys/kernel/sem
250 32000 32 128
[[email protected] ~]# ls -ltr /proc/sys/kernel/sem
-rw-r--r--. 1 root root 0 Jan 16 15:19 /proc/sys/kernel/sem
[[email protected] ~]# cp -p /etc/sysctl.conf /etc/sysctl.conf.bk20180116
[[email protected] ~]# vi /etc/sysctl.conf
[[email protected] ~]# sysctl -p /etc/sysctl.conf
kernel.sem = 5010 641280 5010 128
[[email protected]centos11 ~]# ipcs -lm
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 18014398509465599
max total shared memory (kbytes) = 18014398442373116
min seg size (bytes) = 1
[[email protected] ~]# cat /proc/sys/kernel/sem
5010 641280 5010 128
[[email protected] ~]# systemctl start zabbix-server
Job for zabbix-server.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
[[email protected] ~]# tail -2 /var/log/zabbix/zabbix_server.log
zabbix_server [12299]: cannot open log: cannot create semaphore set: [28] No space left on device
zabbix_server [12309]: cannot open log: cannot create semaphore set: [28] No space left on device
[[email protected] ~]#
还是无法fix
加大系统内存到2G
[[email protected] ~]# free -m
total used free shared buff/cache available
Mem: 1831 540 1118 8 172 1127
Swap: 2047 0 2047
[[email protected] ~]# systemctl status zabbix-server
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2018-01-16 15:28:39 CST; 57s ago
Process: 4061 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 4138 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
└─4138 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server...
Jan 16 15:28:37 centos11 systemd[1]: Starting Zabbix Server...
Jan 16 15:28:39 centos11 systemd[1]: PID file /run/zabbix/zabbix_serv....
Jan 16 15:28:39 centos11 systemd[1]: zabbix-server.service: Supervisi....
Jan 16 15:28:39 centos11 systemd[1]: Started Zabbix Server.
Hint: Some lines were ellipsized, use -l to show in full.
[[email protected] ~]#
[[email protected] ~]# systemctl enable zabbix-server
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.service.
[[email protected] ~]#
[[email protected] ~]# ps -ef | grep -i zabbix
zabbix 4138 1 0 15:28 ? 00:00:00 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
root 9885 2867 0 15:30 pts/0 00:00:00 grep --color=auto -i zabbix
[[email protected] ~]# egrep -v ‘#|;|^$‘ /etc/php.ini
[PHP]
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
disable_functions =
disable_classes =
zend.enable_gc = On
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
enable_dl = Off
file_uploads = On
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
[CLI Server]
cli_server.color = On
[Date]
[filter]
[iconv]
[intl]
[sqlite]
[sqlite3]
[Pcre]
[Pdo]
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=
[Phar]
[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
mail.add_x_header = On
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
[OCI8]
[PostgreSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[bcmath]
bcmath.scale = 0
[browscap]
[Session]
session.save_handler = files
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = Off
session.bug_compat_warn = Off
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
[Assertion]
[mbstring]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[mcrypt]
[dba]
[[email protected] ~]#
编辑zabbix前段PHP配置
[[email protected] ~]# ls -ltr /etc/httpd/conf.d/zabbix.conf
-rw-r--r--. 1 root root 831 Oct 2 16:55 /etc/httpd/conf.d/zabbix.conf
[[email protected] ~]# cp -p /etc/httpd/conf.d/zabbix.conf /etc/httpd/conf.d/zabbix.conf.bk.20180116
[[email protected] ~]# less /etc/httpd/conf.d/zabbix.conf
[[email protected] ~]# cat /etc/httpd/conf.d/zabbix.conf
#
Zabbix monitoring system php web frontend
#
Alias /zabbix /usr/share/zabbix
<Directory "/usr/share/zabbix">
Options FollowSymLinks
AllowOverride None
Require all granted
<IfModule mod_php5.c>
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
# php_value date.timezone Europe/Riga
</IfModule>
</Directory>
<Directory "/usr/share/zabbix/conf">
Require all denied
</Directory>
<Directory "/usr/share/zabbix/app">
Require all denied
</Directory>
<Directory "/usr/share/zabbix/include">
Require all denied
</Directory>
<Directory "/usr/share/zabbix/local">
Require all denied
</Directory>
[[email protected] ~]#
[[email protected] ~]# diff /etc/httpd/conf.d/zabbix.conf /etc/httpd/conf.d/zabbix.conf.bk.20180116
19c19
< php_value date.timezone Asia/Shanghai
# php_value date.timezone Europe/Riga
改为对应的时区,其它的先保持默认配置
启动apache
[[email protected] ~]# systemctl start httpd
[[email protected] ~]# ps -ef | grep http
root 10529 1 8 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 10530 10529 2 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 10531 10529 2 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 10532 10529 2 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 10533 10529 2 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 10534 10529 2 15:42 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
root 10536 2867 0 15:42 pts/0 00:00:00 grep --color=auto http
[[email protected] ~]#
在浏览器访问zabbix的前端
http://192.168.2.171/zabbix/setup.php
zabbix PHP databases support居然是PostgreSQL,而不是想要的MYSQL
[[email protected] ~]# ls -ltr /etc/php.d/mysql.ini
-rw-r--r--. 1 root root 51 Nov 16 00:36 /etc/php.d/mysql.ini
[[email protected] ~]# cat /etc/php.d/mysql.ini
; Enable mysql extension module
extension=mysql.so
[[email protected] ~]# find / -name mysql.so
/usr/lib64/php/modules/mysql.so
[[email protected] ~]# php-fpm
[16-Jan-2018 16:12:50] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/mysql.so‘ - libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
[16-Jan-2018 16:12:50] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/mysqli.so‘ - libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
[16-Jan-2018 16:12:50] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/pdo_mysql.so‘ - libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
[16-Jan-2018 16:12:50] ERROR: unable to bind listening socket for address ‘127.0.0.1:9000‘: Address already in use (98)
[16-Jan-2018 16:12:50] ERROR: FPM initialization failed
[[email protected] ~]# ps -ef | grep php
root 10796 1 0 16:01 ? 00:00:00 php-fpm: master process (/etc/php-fpm.conf)
apache 10797 10796 0 16:01 ? 00:00:00 php-fpm: pool www
apache 10798 10796 0 16:01 ? 00:00:00 php-fpm: pool www
apache 10799 10796 0 16:01 ? 00:00:00 php-fpm: pool www
apache 10800 10796 0 16:01 ? 00:00:00 php-fpm: pool www
apache 10801 10796 0 16:01 ? 00:00:00 php-fpm: pool www
root 10906 2867 0 16:12 pts/0 00:00:00 grep --color=auto php
[[email protected] ~]#
[[email protected] ~]# ls -ltr /etc/ld.so.conf.d
total 8
-r--r--r--. 1 root root 63 Nov 23 2016 kernel-3.10.0-514.el7.x86_64.conf
-r--r--r--. 1 root root 63 Dec 5 08:07 kernel-3.10.0-693.11.1.el7.x86_64.conf
[[email protected] ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
[[email protected] ~]# ls -ltr /usr/lib64/php/modules/mysql.so
-rwxr-xr-x. 1 root root 57936 Nov 16 00:36 /usr/lib64/php/modules/mysql.so
[[email protected] ~]# ldd /usr/lib64/php/modules/mysql.so
linux-vdso.so.1 => (0x00007ffd1457a000)
libmysqlclient.so.18 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007fcc614bc000)
/lib64/ld-linux-x86-64.so.2 (0x000056418827b000)
[[email protected] ~]# find / -name libmysqlclient.so.18
[[email protected] ~]# find / -name libmysqlclient.so
[[email protected] ~]#
[[email protected] ~]# rpm -ivh /cbmsoftware/zabbix/mysql5.6/MySQL-embedded-5.6.39-1.el7.x86_64.rpm
warning: /cbmsoftware/zabbix/mysql5.6/MySQL-embedded-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:MySQL-embedded-5.6.39-1.el7 ################################# [100%]
[[email protected] ~]# systemctl restart mysql
[[email protected] ~]# ls -ltr /usr/local/mysql/lib/libmysqlclient.so.18
ls: cannot access /usr/local/mysql/lib/libmysqlclient.so.18: No such file or directory
[[email protected] ~]# ldd /usr/lib64/php/modules/mysql.so
linux-vdso.so.1 => (0x00007ffe73dfb000)
libmysqlclient.so.18 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007f18c2177000)
/lib64/ld-linux-x86-64.so.2 (0x0000558e2edb1000)
[[email protected] ~]# find / -name libmysqlclient.so.18
[[email protected] mysql5.6]# rpm -ivh MySQL-shared-5.6.39-1.el7.x86_64.rpm MySQL-shared-compat-5.6.39-1.el7.x86_64.rpm
warning: MySQL-shared-5.6.39-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:MySQL-shared-compat-5.6.39-1.el7 ################################# [ 50%]
2:MySQL-shared-5.6.39-1.el7 ################################# [100%]
[[email protected] mysql5.6]# ldd /usr/lib64/php/modules/mysql.so
linux-vdso.so.1 => (0x00007fff99ffb000)
libmysqlclient.so.18 => /lib64/libmysqlclient.so.18 (0x00007f497683c000)
libc.so.6 => /lib64/libc.so.6 (0x00007f4976479000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f497625c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f4976058000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f4975d50000)
libm.so.6 => /lib64/libm.so.6 (0x00007f4975a4d000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4975837000)
/lib64/ld-linux-x86-64.so.2 (0x000055fd6c744000)
以上fix 无法找到libmysqlclient.so.18问题
重新配置zabbix前端,可以看到PHP database support 有了MYSQL项
配置所连接数据库的相关信息
[[email protected] ~]# ls -ltr /etc/zabbix/web/
total 8
-rw-r--r--. 1 root root 1036 Dec 27 22:04 maintenance.inc.php
-rw-r--r-- 1 apache apache 438 Jan 16 16:39 zabbix.conf.php
[[email protected] ~]# ls -ltr /etc/zabbix/web/zabbix.conf.php
-rw-r--r-- 1 apache apache 438 Jan 16 16:39 /etc/zabbix/web/zabbix.conf.php
[[email protected] ~]# cat /etc/zabbix/web/zabbix.conf.php
<?php
// Zabbix GUI configuration file.
global $DB;
$DB[‘TYPE‘] = ‘MYSQL‘;
$DB[‘SERVER‘] = ‘localhost‘;
$DB[‘PORT‘] = ‘3306‘;
$DB[‘DATABASE‘] = ‘zabbix‘;
$DB[‘USER‘] = ‘zabbix‘;
$DB[‘PASSWORD‘] = ‘****‘;
// Schema name. Used for IBM DB2 and PostgreSQL.
$DB[‘SCHEMA‘] = ‘‘;
$ZBX_SERVER = ‘192.168.2.171‘;
$ZBX_SERVER_PORT = ‘10051‘;
$ZBX_SERVER_NAME = ‘Zabbix_server‘;
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
[[email protected] ~]#
成功安装Zabbix frontend.
登录zabbix前端
以上表明zabbix server和前端配置基本完成
[[email protected] ~]# which php
/usr/bin/php
[[email protected] ~]# php -m
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
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
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
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
json
ldap
libxml
mbstring
mhash
openssl
pcntl
pcre
PDO
pdo_pgsql
pdo_sqlite
pgsql
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
[[email protected] ~]#
[[email protected] ~]# ps -ef | grep firewall
root 528 1 0 09:09 ? 00:00:01 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
root 11638 1028 0 14:59 pts/0 00:00:00 grep --color=auto firewall
[[email protected] ~]# systemctl stop firewalld
[[email protected] ~]# ps -ef | grep firewall
root 11700 1028 0 15:00 pts/0 00:00:00 grep --color=auto firewall
[[email protected] ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[[email protected] ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
Jan 16 09:09:05 centos11 systemd[1]: Starting firewalld - dynamic fir....
Jan 16 09:09:08 centos11 systemd[1]: Started firewalld - dynamic fire....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: ICMP type ‘beyond-s....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: beyond-scope: INVAL....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: ICMP type ‘failed-p....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: failed-policy: INVA....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: ICMP type ‘reject-r....
Jan 16 09:09:13 centos11 firewalld[528]: WARNING: reject-route: INVAL....
Jan 16 15:00:11 centos11 systemd[1]: Stopping firewalld - dynamic fir....
Jan 16 15:00:17 centos11 systemd[1]: Stopped firewalld - dynamic fire....
Hint: Some lines were ellipsized, use -l to show in full.
[[email protected] ~]#
[[email protected] ~]# getenforce
Enforcing
[[email protected] ~]# vi /etc/selinux/config
[[email protected] ~]# grep -v ‘#‘ /etc/selinux/config
SELINUX=disabled
SELINUXTYPE=targeted
[[email protected] ~]# setenforce 0
[[email protected] ~]# getenforce
Permissive
原文地址:http://blog.51cto.com/guanhaizhan/2061636