Last login: Wed Jan 22 11:21:17 on ttys001
wulaguixiaomianyangdeMacBook-Pro:~ xingwen$ ssh root@47.94.134.224
root@47.94.134.224's password:
Last failed login: Wed Jan 22 11:26:02 CST 2020 from 117.22.255.130 on ssh:notty
There were 81 failed login attempts since the last successful login.
Last login: Tue Dec 3 08:20:37 2019 from 36.45.15.192
Welcome to Alibaba Cloud Elastic Compute Service !
[root@iZ2zeagiqhn4s3u2pihrgxZ ~]# yum -y update
已加载插件:fastestmirror
Determining fastest mirrors
base | 3.6 kB 00:00
epel | 5.4 kB 00:00
extras | 2.9 kB 00:00
updates | 2.9 kB 00:00
(1/4): extras/7/x86_64/primary_db | 153 kB 00:00
(2/4): epel/x86_64/updateinfo | 1.0 MB 00:00
(3/4): updates/7/x86_64/primary_db | 5.9 MB 00:00
(4/4): epel/x86_64/primary_db | 6.9 MB 00:00
正在解决依赖关系
--> 正在检查事务
---> 软件包 binutils.x86_64.0.2.27-41.base.el7 将被 升级
---> 软件包 binutils.x86_64.0.2.27-41.base.el7_7.1 将被 更新
---> 软件包 ca-certificates.noarch.0.2018.2.22-70.0.el7_5 将被 升级
---> 软件包 ca-certificates.noarch.0.2019.2.32-76.el7_7 将被 更新
---> 软件包 cloud-utils-growpart.x86_64.0.0.27-10.el7 将被 升级
---> 软件包 cloud-utils-growpart.noarch.0.0.29-5.el7 将被 更新
---> 软件包 curl.x86_64.0.7.29.0-54.el7 将被 升级
---> 软件包 curl.x86_64.0.7.29.0-54.el7_7.1 将被 更新
---> 软件包 device-mapper.x86_64.7.1.02.158-2.el7 将被 升级
---> 软件包 device-mapper.x86_64.7.1.02.158-2.el7_7.2 将被 更新
---> 软件包 device-mapper-libs.x86_64.7.1.02.158-2.el7 将被 升级
---> 软件包 device-mapper-libs.x86_64.7.1.02.158-2.el7_7.2 将被 更新
---> 软件包 firewalld.noarch.0.0.6.3-2.el7_7.1 将被 升级
---> 软件包 firewalld.noarch.0.0.6.3-2.el7_7.2 将被 更新
---> 软件包 firewalld-filesystem.noarch.0.0.6.3-2.el7_7.1 将被 升级
---> 软件包 firewalld-filesystem.noarch.0.0.6.3-2.el7_7.2 将被 更新
---> 软件包 hostname.x86_64.0.3.13-3.el7 将被 升级
---> 软件包 hostname.x86_64.0.3.13-3.el7_7.1 将被 更新
---> 软件包 iproute.x86_64.0.4.11.0-25.el7 将被 升级
---> 软件包 iproute.x86_64.0.4.11.0-25.el7_7.2 将被 更新
---> 软件包 kernel.x86_64.0.3.10.0-1062.9.1.el7 将被 安装
---> 软件包 kernel-devel.x86_64.0.3.10.0-1062.9.1.el7 将被 安装
---> 软件包 kernel-headers.x86_64.0.3.10.0-1062.1.2.el7 将被 升级
---> 软件包 kernel-headers.x86_64.0.3.10.0-1062.9.1.el7 将被 更新
---> 软件包 kernel-tools.x86_64.0.3.10.0-1062.1.2.el7 将被 升级
---> 软件包 kernel-tools.x86_64.0.3.10.0-1062.9.1.el7 将被 更新
---> 软件包 kernel-tools-libs.x86_64.0.3.10.0-1062.1.2.el7 将被 升级
---> 软件包 kernel-tools-libs.x86_64.0.3.10.0-1062.9.1.el7 将被 更新
---> 软件包 libblkid.x86_64.0.2.23.2-61.el7 将被 升级
---> 软件包 libblkid.x86_64.0.2.23.2-61.el7_7.1 将被 更新
---> 软件包 libcurl.x86_64.0.7.29.0-54.el7 将被 升级
---> 软件包 libcurl.x86_64.0.7.29.0-54.el7_7.1 将被 更新
---> 软件包 libmount.x86_64.0.2.23.2-61.el7 将被 升级
---> 软件包 libmount.x86_64.0.2.23.2-61.el7_7.1 将被 更新
---> 软件包 libsmartcols.x86_64.0.2.23.2-61.el7 将被 升级
---> 软件包 libsmartcols.x86_64.0.2.23.2-61.el7_7.1 将被 更新
---> 软件包 libuuid.x86_64.0.2.23.2-61.el7 将被 升级
---> 软件包 libuuid.x86_64.0.2.23.2-61.el7_7.1 将被 更新
---> 软件包 microcode_ctl.x86_64.2.2.1-53.el7 将被 升级
---> 软件包 microcode_ctl.x86_64.2.2.1-53.7.el7_7 将被 更新
---> 软件包 nss.x86_64.0.3.44.0-4.el7 将被 升级
---> 软件包 nss.x86_64.0.3.44.0-7.el7_7 将被 更新
---> 软件包 nss-softokn.x86_64.0.3.44.0-5.el7 将被 升级
---> 软件包 nss-softokn.x86_64.0.3.44.0-8.el7_7 将被 更新
---> 软件包 nss-softokn-freebl.i686.0.3.44.0-5.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.44.0-5.el7 将被 升级
---> 软件包 nss-softokn-freebl.i686.0.3.44.0-8.el7_7 将被 更新
---> 软件包 nss-softokn-freebl.x86_64.0.3.44.0-8.el7_7 将被 更新
---> 软件包 nss-sysinit.x86_64.0.3.44.0-4.el7 将被 升级
---> 软件包 nss-sysinit.x86_64.0.3.44.0-7.el7_7 将被 更新
---> 软件包 nss-tools.x86_64.0.3.44.0-4.el7 将被 升级
---> 软件包 nss-tools.x86_64.0.3.44.0-7.el7_7 将被 更新
---> 软件包 nss-util.x86_64.0.3.44.0-3.el7 将被 升级
---> 软件包 nss-util.x86_64.0.3.44.0-4.el7_7 将被 更新
---> 软件包 numactl-libs.x86_64.0.2.0.12-3.el7 将被 升级
---> 软件包 numactl-libs.x86_64.0.2.0.12-3.el7_7.1 将被 更新
---> 软件包 patch.x86_64.0.2.7.1-11.el7 将被 升级
---> 软件包 patch.x86_64.0.2.7.1-12.el7_7 将被 更新
---> 软件包 procps-ng.x86_64.0.3.3.10-26.el7 将被 升级
---> 软件包 procps-ng.x86_64.0.3.3.10-26.el7_7.1 将被 更新
---> 软件包 python-firewall.noarch.0.0.6.3-2.el7_7.1 将被 升级
---> 软件包 python-firewall.noarch.0.0.6.3-2.el7_7.2 将被 更新
---> 软件包 python-perf.x86_64.0.3.10.0-1062.1.2.el7 将被 升级
---> 软件包 python-perf.x86_64.0.3.10.0-1062.9.1.el7 将被 更新
---> 软件包 rsyslog.x86_64.0.8.24.0-41.el7_7 将被 升级
---> 软件包 rsyslog.x86_64.0.8.24.0-41.el7_7.2 将被 更新
---> 软件包 selinux-policy.noarch.0.3.13.1-252.el7.1 将被 升级
---> 软件包 selinux-policy.noarch.0.3.13.1-252.el7_7.6 将被 更新
---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-252.el7.1 将被 升级
---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-252.el7_7.6 将被 更新
---> 软件包 sudo.x86_64.0.1.8.23-4.el7 将被 升级
---> 软件包 sudo.x86_64.0.1.8.23-4.el7_7.1 将被 更新
---> 软件包 systemd.x86_64.0.219-67.el7_7.1 将被 升级
---> 软件包 systemd.x86_64.0.219-67.el7_7.2 将被 更新
---> 软件包 systemd-libs.x86_64.0.219-67.el7_7.1 将被 升级
---> 软件包 systemd-libs.x86_64.0.219-67.el7_7.2 将被 更新
---> 软件包 systemd-sysv.x86_64.0.219-67.el7_7.1 将被 升级
---> 软件包 systemd-sysv.x86_64.0.219-67.el7_7.2 将被 更新
---> 软件包 tcpdump.x86_64.14.4.9.2-4.el7 将被 升级
---> 软件包 tcpdump.x86_64.14.4.9.2-4.el7_7.1 将被 更新
---> 软件包 util-linux.x86_64.0.2.23.2-61.el7 将被 升级
---> 软件包 util-linux.x86_64.0.2.23.2-61.el7_7.1 将被 更新
--> 解决依赖关系完成
依赖关系解决
================================================================================
Package 架构 版本 源 大小
================================================================================
正在安装:
kernel x86_64 3.10.0-1062.9.1.el7 updates 50 M
kernel-devel x86_64 3.10.0-1062.9.1.el7 updates 18 M
正在更新:
binutils x86_64 2.27-41.base.el7_7.1 updates 5.9 M
ca-certificates noarch 2019.2.32-76.el7_7 updates 399 k
cloud-utils-growpart noarch 0.29-5.el7 base 27 k
curl x86_64 7.29.0-54.el7_7.1 updates 270 k
device-mapper x86_64 7:1.02.158-2.el7_7.2 updates 294 k
device-mapper-libs x86_64 7:1.02.158-2.el7_7.2 updates 322 k
firewalld noarch 0.6.3-2.el7_7.2 updates 441 k
firewalld-filesystem noarch 0.6.3-2.el7_7.2 updates 50 k
hostname x86_64 3.13-3.el7_7.1 updates 17 k
iproute x86_64 4.11.0-25.el7_7.2 updates 803 k
kernel-headers x86_64 3.10.0-1062.9.1.el7 updates 8.7 M
kernel-tools x86_64 3.10.0-1062.9.1.el7 updates 7.8 M
kernel-tools-libs x86_64 3.10.0-1062.9.1.el7 updates 7.8 M
libblkid x86_64 2.23.2-61.el7_7.1 updates 181 k
libcurl x86_64 7.29.0-54.el7_7.1 updates 223 k
libmount x86_64 2.23.2-61.el7_7.1 updates 183 k
libsmartcols x86_64 2.23.2-61.el7_7.1 updates 141 k
libuuid x86_64 2.23.2-61.el7_7.1 updates 83 k
microcode_ctl x86_64 2:2.1-53.7.el7_7 updates 2.5 M
nss x86_64 3.44.0-7.el7_7 updates 854 k
nss-softokn x86_64 3.44.0-8.el7_7 updates 330 k
nss-softokn-freebl i686 3.44.0-8.el7_7 updates 214 k
nss-softokn-freebl x86_64 3.44.0-8.el7_7 updates 224 k
nss-sysinit x86_64 3.44.0-7.el7_7 updates 65 k
nss-tools x86_64 3.44.0-7.el7_7 updates 528 k
nss-util x86_64 3.44.0-4.el7_7 updates 79 k
numactl-libs x86_64 2.0.12-3.el7_7.1 updates 30 k
patch x86_64 2.7.1-12.el7_7 updates 111 k
procps-ng x86_64 3.3.10-26.el7_7.1 updates 291 k
python-firewall noarch 0.6.3-2.el7_7.2 updates 352 k
python-perf x86_64 3.10.0-1062.9.1.el7 updates 7.8 M
rsyslog x86_64 8.24.0-41.el7_7.2 updates 616 k
selinux-policy noarch 3.13.1-252.el7_7.6 updates 492 k
selinux-policy-targeted noarch 3.13.1-252.el7_7.6 updates 7.0 M
sudo x86_64 1.8.23-4.el7_7.1 updates 841 k
systemd x86_64 219-67.el7_7.2 updates 5.1 M
systemd-libs x86_64 219-67.el7_7.2 updates 411 k
systemd-sysv x86_64 219-67.el7_7.2 updates 88 k
tcpdump x86_64 14:4.9.2-4.el7_7.1 updates 422 k
util-linux x86_64 2.23.2-61.el7_7.1 updates 2.0 M
事务概要
================================================================================
安装 2 软件包
升级 40 软件包
总下载量:131 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/42): cloud-utils-growpart-0.29-5.el7.noarch.rpm | 27 kB 00:00
(2/42): ca-certificates-2019.2.32-76.el7_7.noarch.rpm | 399 kB 00:00
(3/42): curl-7.29.0-54.el7_7.1.x86_64.rpm | 270 kB 00:00
(4/42): device-mapper-1.02.158-2.el7_7.2.x86_64.rpm | 294 kB 00:00
(5/42): device-mapper-libs-1.02.158-2.el7_7.2.x86_64.rpm | 322 kB 00:00
(6/42): firewalld-0.6.3-2.el7_7.2.noarch.rpm | 441 kB 00:00
(7/42): firewalld-filesystem-0.6.3-2.el7_7.2.noarch.rpm | 50 kB 00:00
(8/42): hostname-3.13-3.el7_7.1.x86_64.rpm | 17 kB 00:00
(9/42): iproute-4.11.0-25.el7_7.2.x86_64.rpm | 803 kB 00:00
(10/42): binutils-2.27-41.base.el7_7.1.x86_64.rpm | 5.9 MB 00:00
(11/42): kernel-devel-3.10.0-1062.9.1.el7.x86_64.rpm | 18 MB 00:00
(12/42): kernel-headers-3.10.0-1062.9.1.el7.x86_64.rpm | 8.7 MB 00:00
(13/42): kernel-tools-3.10.0-1062.9.1.el7.x86_64.rpm | 7.8 MB 00:00
(14/42): kernel-tools-libs-3.10.0-1062.9.1.el7.x86_64.rpm | 7.8 MB 00:00
(15/42): libblkid-2.23.2-61.el7_7.1.x86_64.rpm | 181 kB 00:00
(16/42): libcurl-7.29.0-54.el7_7.1.x86_64.rpm | 223 kB 00:00
(17/42): libmount-2.23.2-61.el7_7.1.x86_64.rpm | 183 kB 00:00
(18/42): libsmartcols-2.23.2-61.el7_7.1.x86_64.rpm | 141 kB 00:00
(19/42): libuuid-2.23.2-61.el7_7.1.x86_64.rpm | 83 kB 00:00
(20/42): microcode_ctl-2.1-53.7.el7_7.x86_64.rpm | 2.5 MB 00:00
(21/42): nss-3.44.0-7.el7_7.x86_64.rpm | 854 kB 00:00
(22/42): nss-softokn-3.44.0-8.el7_7.x86_64.rpm | 330 kB 00:00
(23/42): nss-softokn-freebl-3.44.0-8.el7_7.i686.rpm | 214 kB 00:00
(24/42): nss-softokn-freebl-3.44.0-8.el7_7.x86_64.rpm | 224 kB 00:00
(25/42): nss-sysinit-3.44.0-7.el7_7.x86_64.rpm | 65 kB 00:00
(26/42): nss-tools-3.44.0-7.el7_7.x86_64.rpm | 528 kB 00:00
(27/42): nss-util-3.44.0-4.el7_7.x86_64.rpm | 79 kB 00:00
(28/42): numactl-libs-2.0.12-3.el7_7.1.x86_64.rpm | 30 kB 00:00
(29/42): patch-2.7.1-12.el7_7.x86_64.rpm | 111 kB 00:00
(30/42): procps-ng-3.3.10-26.el7_7.1.x86_64.rpm | 291 kB 00:00
(31/42): python-firewall-0.6.3-2.el7_7.2.noarch.rpm | 352 kB 00:00
(32/42): python-perf-3.10.0-1062.9.1.el7.x86_64.rpm | 7.8 MB 00:00
(33/42): rsyslog-8.24.0-41.el7_7.2.x86_64.rpm | 616 kB 00:00
(34/42): selinux-policy-3.13.1-252.el7_7.6.noarch.rpm | 492 kB 00:00
(35/42): selinux-policy-targeted-3.13.1-252.el7_7.6.noarch | 7.0 MB 00:00
(36/42): sudo-1.8.23-4.el7_7.1.x86_64.rpm | 841 kB 00:00
(37/42): systemd-219-67.el7_7.2.x86_64.rpm | 5.1 MB 00:00
(38/42): systemd-libs-219-67.el7_7.2.x86_64.rpm | 411 kB 00:00
(39/42): systemd-sysv-219-67.el7_7.2.x86_64.rpm | 88 kB 00:00
(40/42): tcpdump-4.9.2-4.el7_7.1.x86_64.rpm | 422 kB 00:00
(41/42): util-linux-2.23.2-61.el7_7.1.x86_64.rpm | 2.0 MB 00:00
(42/42): kernel-3.10.0-1062.9.1.el7.x86_64.rpm | 50 MB 00:05
--------------------------------------------------------------------------------
总计 22 MB/s | 131 MB 00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : nss-util-3.44.0-4.el7_7.x86_64 1/82
正在更新 : systemd-libs-219-67.el7_7.2.x86_64 2/82
正在更新 : libuuid-2.23.2-61.el7_7.1.x86_64 3/82
正在更新 : libblkid-2.23.2-61.el7_7.1.x86_64 4/82
正在更新 : libmount-2.23.2-61.el7_7.1.x86_64 5/82
正在更新 : nss-softokn-freebl-3.44.0-8.el7_7.x86_64 6/82
正在更新 : nss-softokn-3.44.0-8.el7_7.x86_64 7/82
正在更新 : nss-sysinit-3.44.0-7.el7_7.x86_64 8/82
正在更新 : nss-3.44.0-7.el7_7.x86_64 9/82
正在更新 : libcurl-7.29.0-54.el7_7.1.x86_64 10/82
正在更新 : systemd-219-67.el7_7.2.x86_64 11/82
正在更新 : libsmartcols-2.23.2-61.el7_7.1.x86_64 12/82
正在更新 : util-linux-2.23.2-61.el7_7.1.x86_64 13/82
正在更新 : 7:device-mapper-libs-1.02.158-2.el7_7.2.x86_64 14/82
正在更新 : 7:device-mapper-1.02.158-2.el7_7.2.x86_64 15/82
正在更新 : python-firewall-0.6.3-2.el7_7.2.noarch 16/82
正在更新 : firewalld-filesystem-0.6.3-2.el7_7.2.noarch 17/82
正在更新 : kernel-tools-libs-3.10.0-1062.9.1.el7.x86_64 18/82
正在更新 : selinux-policy-3.13.1-252.el7_7.6.noarch 19/82
正在更新 : selinux-policy-targeted-3.13.1-252.el7_7.6.noarch 20/82
正在更新 : kernel-tools-3.10.0-1062.9.1.el7.x86_64 21/82
正在更新 : firewalld-0.6.3-2.el7_7.2.noarch 22/82
正在更新 : cloud-utils-growpart-0.29-5.el7.noarch 23/82
正在更新 : rsyslog-8.24.0-41.el7_7.2.x86_64 24/82
正在更新 : systemd-sysv-219-67.el7_7.2.x86_64 25/82
正在更新 : 2:microcode_ctl-2.1-53.7.el7_7.x86_64 26/82
正在更新 : curl-7.29.0-54.el7_7.1.x86_64 27/82
正在更新 : nss-tools-3.44.0-7.el7_7.x86_64 28/82
正在更新 : procps-ng-3.3.10-26.el7_7.1.x86_64 29/82
正在更新 : numactl-libs-2.0.12-3.el7_7.1.x86_64 30/82
正在更新 : binutils-2.27-41.base.el7_7.1.x86_64 31/82
正在更新 : hostname-3.13-3.el7_7.1.x86_64 32/82
正在更新 : patch-2.7.1-12.el7_7.x86_64 33/82
正在更新 : kernel-headers-3.10.0-1062.9.1.el7.x86_64 34/82
正在更新 : ca-certificates-2019.2.32-76.el7_7.noarch 35/82
正在安装 : kernel-devel-3.10.0-1062.9.1.el7.x86_64 36/82
正在更新 : python-perf-3.10.0-1062.9.1.el7.x86_64 37/82
正在更新 : iproute-4.11.0-25.el7_7.2.x86_64 38/82
正在安装 : kernel-3.10.0-1062.9.1.el7.x86_64 39/82
正在更新 : 14:tcpdump-4.9.2-4.el7_7.1.x86_64 40/82
正在更新 : sudo-1.8.23-4.el7_7.1.x86_64 41/82
正在更新 : nss-softokn-freebl-3.44.0-8.el7_7.i686 42/82
清理 : nss-tools-3.44.0-4.el7.x86_64 43/82
清理 : curl-7.29.0-54.el7.x86_64 44/82
清理 : firewalld-0.6.3-2.el7_7.1.noarch 45/82
清理 : 7:device-mapper-libs-1.02.158-2.el7.x86_64 46/82
清理 : 7:device-mapper-1.02.158-2.el7.x86_64 47/82
清理 : rsyslog-8.24.0-41.el7_7.x86_64 48/82
清理 : cloud-utils-growpart-0.27-10.el7.x86_64 49/82
清理 : 2:microcode_ctl-2.1-53.el7.x86_64 50/82
清理 : selinux-policy-targeted-3.13.1-252.el7.1.noarch 51/82
清理 : nss-softokn-freebl-3.44.0-5.el7 52/82
清理 : systemd-sysv-219-67.el7_7.1.x86_64 53/82
清理 : util-linux-2.23.2-61.el7.x86_64 54/82
清理 : systemd-219-67.el7_7.1.x86_64 55/82
清理 : libcurl-7.29.0-54.el7.x86_64 56/82
清理 : nss-sysinit-3.44.0-4.el7.x86_64 57/82
清理 : nss-3.44.0-4.el7.x86_64 58/82
清理 : nss-softokn-3.44.0-5.el7.x86_64 59/82
清理 : libmount-2.23.2-61.el7.x86_64 60/82
清理 : libblkid-2.23.2-61.el7.x86_64 61/82
清理 : nss-softokn-freebl-3.44.0-5.el7 62/82
清理 : kernel-tools-3.10.0-1062.1.2.el7.x86_64 63/82
清理 : procps-ng-3.3.10-26.el7.x86_64 64/82
清理 : selinux-policy-3.13.1-252.el7.1.noarch 65/82
清理 : firewalld-filesystem-0.6.3-2.el7_7.1.noarch 66/82
清理 : python-firewall-0.6.3-2.el7_7.1.noarch 67/82
清理 : kernel-headers-3.10.0-1062.1.2.el7.x86_64 68/82
清理 : ca-certificates-2018.2.22-70.0.el7_5.noarch 69/82
清理 : systemd-libs-219-67.el7_7.1.x86_64 70/82
清理 : kernel-tools-libs-3.10.0-1062.1.2.el7.x86_64 71/82
清理 : nss-util-3.44.0-3.el7.x86_64 72/82
清理 : libuuid-2.23.2-61.el7.x86_64 73/82
清理 : libsmartcols-2.23.2-61.el7.x86_64 74/82
清理 : numactl-libs-2.0.12-3.el7.x86_64 75/82
清理 : binutils-2.27-41.base.el7.x86_64 76/82
清理 : hostname-3.13-3.el7.x86_64 77/82
清理 : patch-2.7.1-11.el7.x86_64 78/82
清理 : python-perf-3.10.0-1062.1.2.el7.x86_64 79/82
清理 : iproute-4.11.0-25.el7.x86_64 80/82
清理 : 14:tcpdump-4.9.2-4.el7.x86_64 81/82
清理 : sudo-1.8.23-4.el7.x86_64 82/82
验证中 : util-linux-2.23.2-61.el7_7.1.x86_64 1/82
验证中 : sudo-1.8.23-4.el7_7.1.x86_64 2/82
验证中 : nss-tools-3.44.0-7.el7_7.x86_64 3/82
验证中 : systemd-libs-219-67.el7_7.2.x86_64 4/82
验证中 : 14:tcpdump-4.9.2-4.el7_7.1.x86_64 5/82
验证中 : nss-3.44.0-7.el7_7.x86_64 6/82
验证中 : systemd-219-67.el7_7.2.x86_64 7/82
验证中 : kernel-3.10.0-1062.9.1.el7.x86_64 8/82
验证中 : 7:device-mapper-1.02.158-2.el7_7.2.x86_64 9/82
验证中 : iproute-4.11.0-25.el7_7.2.x86_64 10/82
验证中 : selinux-policy-3.13.1-252.el7_7.6.noarch 11/82
验证中 : libcurl-7.29.0-54.el7_7.1.x86_64 12/82
验证中 : python-perf-3.10.0-1062.9.1.el7.x86_64 13/82
验证中 : rsyslog-8.24.0-41.el7_7.2.x86_64 14/82
验证中 : procps-ng-3.3.10-26.el7_7.1.x86_64 15/82
验证中 : kernel-devel-3.10.0-1062.9.1.el7.x86_64 16/82
验证中 : ca-certificates-2019.2.32-76.el7_7.noarch 17/82
验证中 : libuuid-2.23.2-61.el7_7.1.x86_64 18/82
验证中 : kernel-headers-3.10.0-1062.9.1.el7.x86_64 19/82
验证中 : systemd-sysv-219-67.el7_7.2.x86_64 20/82
验证中 : nss-softokn-freebl-3.44.0-8.el7_7.i686 21/82
验证中 : patch-2.7.1-12.el7_7.x86_64 22/82
验证中 : hostname-3.13-3.el7_7.1.x86_64 23/82
验证中 : nss-sysinit-3.44.0-7.el7_7.x86_64 24/82
验证中 : kernel-tools-libs-3.10.0-1062.9.1.el7.x86_64 25/82
验证中 : libmount-2.23.2-61.el7_7.1.x86_64 26/82
验证中 : 7:device-mapper-libs-1.02.158-2.el7_7.2.x86_64 27/82
验证中 : binutils-2.27-41.base.el7_7.1.x86_64 28/82
验证中 : numactl-libs-2.0.12-3.el7_7.1.x86_64 29/82
验证中 : curl-7.29.0-54.el7_7.1.x86_64 30/82
验证中 : kernel-tools-3.10.0-1062.9.1.el7.x86_64 31/82
验证中 : nss-softokn-3.44.0-8.el7_7.x86_64 32/82
验证中 : selinux-policy-targeted-3.13.1-252.el7_7.6.noarch 33/82
验证中 : firewalld-0.6.3-2.el7_7.2.noarch 34/82
验证中 : firewalld-filesystem-0.6.3-2.el7_7.2.noarch 35/82
验证中 : python-firewall-0.6.3-2.el7_7.2.noarch 36/82
验证中 : libsmartcols-2.23.2-61.el7_7.1.x86_64 37/82
验证中 : 2:microcode_ctl-2.1-53.7.el7_7.x86_64 38/82
验证中 : nss-util-3.44.0-4.el7_7.x86_64 39/82
验证中 : cloud-utils-growpart-0.29-5.el7.noarch 40/82
验证中 : nss-softokn-freebl-3.44.0-8.el7_7.x86_64 41/82
验证中 : libblkid-2.23.2-61.el7_7.1.x86_64 42/82
验证中 : nss-tools-3.44.0-4.el7.x86_64 43/82
验证中 : curl-7.29.0-54.el7.x86_64 44/82
验证中 : firewalld-0.6.3-2.el7_7.1.noarch 45/82
验证中 : nss-softokn-freebl-3.44.0-5.el7.x86_64 46/82
验证中 : rsyslog-8.24.0-41.el7_7.x86_64 47/82
验证中 : util-linux-2.23.2-61.el7.x86_64 48/82
验证中 : nss-util-3.44.0-3.el7.x86_64 49/82
验证中 : python-firewall-0.6.3-2.el7_7.1.noarch 50/82
验证中 : kernel-headers-3.10.0-1062.1.2.el7.x86_64 51/82
验证中 : procps-ng-3.3.10-26.el7.x86_64 52/82
验证中 : 7:device-mapper-libs-1.02.158-2.el7.x86_64 53/82
验证中 : 2:microcode_ctl-2.1-53.el7.x86_64 54/82
验证中 : libmount-2.23.2-61.el7.x86_64 55/82
验证中 : nss-sysinit-3.44.0-4.el7.x86_64 56/82
验证中 : systemd-sysv-219-67.el7_7.1.x86_64 57/82
验证中 : patch-2.7.1-11.el7.x86_64 58/82
验证中 : kernel-tools-3.10.0-1062.1.2.el7.x86_64 59/82
验证中 : libblkid-2.23.2-61.el7.x86_64 60/82
验证中 : libuuid-2.23.2-61.el7.x86_64 61/82
验证中 : selinux-policy-targeted-3.13.1-252.el7.1.noarch 62/82
验证中 : selinux-policy-3.13.1-252.el7.1.noarch 63/82
验证中 : python-perf-3.10.0-1062.1.2.el7.x86_64 64/82
验证中 : iproute-4.11.0-25.el7.x86_64 65/82
验证中 : systemd-libs-219-67.el7_7.1.x86_64 66/82
验证中 : sudo-1.8.23-4.el7.x86_64 67/82
验证中 : libcurl-7.29.0-54.el7.x86_64 68/82
验证中 : 7:device-mapper-1.02.158-2.el7.x86_64 69/82
验证中 : nss-softokn-3.44.0-5.el7.x86_64 70/82
验证中 : systemd-219-67.el7_7.1.x86_64 71/82
验证中 : hostname-3.13-3.el7.x86_64 72/82
验证中 : ca-certificates-2018.2.22-70.0.el7_5.noarch 73/82
验证中 : firewalld-filesystem-0.6.3-2.el7_7.1.noarch 74/82
验证中 : nss-3.44.0-4.el7.x86_64 75/82
验证中 : 14:tcpdump-4.9.2-4.el7.x86_64 76/82
验证中 : nss-softokn-freebl-3.44.0-5.el7.i686 77/82
验证中 : numactl-libs-2.0.12-3.el7.x86_64 78/82
验证中 : cloud-utils-growpart-0.27-10.el7.x86_64 79/82
验证中 : binutils-2.27-41.base.el7.x86_64 80/82
验证中 : kernel-tools-libs-3.10.0-1062.1.2.el7.x86_64 81/82
验证中 : libsmartcols-2.23.2-61.el7.x86_64 82/82
已安装:
kernel.x86_64 0:3.10.0-1062.9.1.el7 kernel-devel.x86_64 0:3.10.0-1062.9.1.el7
更新完毕:
binutils.x86_64 0:2.27-41.base.el7_7.1
ca-certificates.noarch 0:2019.2.32-76.el7_7
cloud-utils-growpart.noarch 0:0.29-5.el7
curl.x86_64 0:7.29.0-54.el7_7.1
device-mapper.x86_64 7:1.02.158-2.el7_7.2
device-mapper-libs.x86_64 7:1.02.158-2.el7_7.2
firewalld.noarch 0:0.6.3-2.el7_7.2
firewalld-filesystem.noarch 0:0.6.3-2.el7_7.2
hostname.x86_64 0:3.13-3.el7_7.1
iproute.x86_64 0:4.11.0-25.el7_7.2
kernel-headers.x86_64 0:3.10.0-1062.9.1.el7
kernel-tools.x86_64 0:3.10.0-1062.9.1.el7
kernel-tools-libs.x86_64 0:3.10.0-1062.9.1.el7
libblkid.x86_64 0:2.23.2-61.el7_7.1
libcurl.x86_64 0:7.29.0-54.el7_7.1
libmount.x86_64 0:2.23.2-61.el7_7.1
libsmartcols.x86_64 0:2.23.2-61.el7_7.1
libuuid.x86_64 0:2.23.2-61.el7_7.1
microcode_ctl.x86_64 2:2.1-53.7.el7_7
nss.x86_64 0:3.44.0-7.el7_7
nss-softokn.x86_64 0:3.44.0-8.el7_7
nss-softokn-freebl.i686 0:3.44.0-8.el7_7
nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7
nss-sysinit.x86_64 0:3.44.0-7.el7_7
nss-tools.x86_64 0:3.44.0-7.el7_7
nss-util.x86_64 0:3.44.0-4.el7_7
numactl-libs.x86_64 0:2.0.12-3.el7_7.1
patch.x86_64 0:2.7.1-12.el7_7
procps-ng.x86_64 0:3.3.10-26.el7_7.1
python-firewall.noarch 0:0.6.3-2.el7_7.2
python-perf.x86_64 0:3.10.0-1062.9.1.el7
rsyslog.x86_64 0:8.24.0-41.el7_7.2
selinux-policy.noarch 0:3.13.1-252.el7_7.6
selinux-policy-targeted.noarch 0:3.13.1-252.el7_7.6
sudo.x86_64 0:1.8.23-4.el7_7.1
systemd.x86_64 0:219-67.el7_7.2
systemd-libs.x86_64 0:219-67.el7_7.2
systemd-sysv.x86_64 0:219-67.el7_7.2
tcpdump.x86_64 14:4.9.2-4.el7_7.1
util-linux.x86_64 0:2.23.2-61.el7_7.1
完毕!
[root@iZ2zeagiqhn4s3u2pihrgxZ ~]#
[root@iZ2zeagiqhn4s3u2pihrgxZ ~]#
[root@iZ2zeagiqhn4s3u2pihrgxZ ~]# rpm -qa | grep mysql
[root@iZ2zeagiqhn4s3u2pihrgxZ ~]# yum list installed | grep mysql
[root@iZ2zeagiqhn4s3u2pihrgxZ ~]# mysql
-bash: mysql: 未找到命令
[root@iZ2zeagiqhn4s3u2pihrgxZ ~]# cd ../
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# rpm -qa | grep mysql
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
获取http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
警告:/var/tmp/rpm-tmp.0Wc4ZB: 头V3 DSA/SHA1 Signature, 密钥 ID 5072e1f5: NOKEY
准备中... ################################# [100%]
正在升级/安装...
1:mysql57-community-release-el7-8 ################################# [100%]
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# yum install -y mysql-server
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
mysql-connectors-community | 2.5 kB 00:00
mysql-tools-community | 2.5 kB 00:00
mysql57-community | 2.5 kB 00:00
(1/3): mysql57-community/x86_64/primary_db | 198 kB 00:01
(2/3): mysql-tools-community/x86_64/primary_db | 69 kB 00:01
(3/3): mysql-connectors-community/x86_64/primary_db | 53 kB 00:15
正在解决依赖关系
--> 正在检查事务
---> 软件包 mysql-community-server.x86_64.0.5.7.29-1.el7 将被 安装
--> 正在处理依赖关系 mysql-community-common(x86-64) = 5.7.29-1.el7,它被软件包 mysql-community-server-5.7.29-1.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-client(x86-64) >= 5.7.9,它被软件包 mysql-community-server-5.7.29-1.el7.x86_64 需要
--> 正在处理依赖关系 libaio.so.1(LIBAIO_0.4)(64bit),它被软件包 mysql-community-server-5.7.29-1.el7.x86_64 需要
--> 正在处理依赖关系 libaio.so.1(LIBAIO_0.1)(64bit),它被软件包 mysql-community-server-5.7.29-1.el7.x86_64 需要
--> 正在处理依赖关系 libaio.so.1()(64bit),它被软件包 mysql-community-server-5.7.29-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 libaio.x86_64.0.0.3.109-13.el7 将被 安装
---> 软件包 mysql-community-client.x86_64.0.5.7.29-1.el7 将被 安装
--> 正在处理依赖关系 mysql-community-libs(x86-64) >= 5.7.9,它被软件包 mysql-community-client-5.7.29-1.el7.x86_64 需要
---> 软件包 mysql-community-common.x86_64.0.5.7.29-1.el7 将被 安装
--> 正在检查事务
---> 软件包 mariadb-libs.x86_64.1.5.5.64-1.el7 将被 取代
--> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 2:postfix-2.10.1-7.el7.x86_64 需要
--> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 2:postfix-2.10.1-7.el7.x86_64 需要
---> 软件包 mysql-community-libs.x86_64.0.5.7.29-1.el7 将被 舍弃
--> 正在检查事务
---> 软件包 mysql-community-libs-compat.x86_64.0.5.7.29-1.el7 将被 舍弃
--> 解决依赖关系完成
依赖关系解决
================================================================================
Package 架构 版本 源 大小
================================================================================
正在安装:
mysql-community-libs x86_64 5.7.29-1.el7 mysql57-community 2.5 M
替换 mariadb-libs.x86_64 1:5.5.64-1.el7
mysql-community-libs-compat x86_64 5.7.29-1.el7 mysql57-community 1.3 M
替换 mariadb-libs.x86_64 1:5.5.64-1.el7
mysql-community-server x86_64 5.7.29-1.el7 mysql57-community 175 M
为依赖而安装:
libaio x86_64 0.3.109-13.el7 base 24 k
mysql-community-client x86_64 5.7.29-1.el7 mysql57-community 26 M
mysql-community-common x86_64 5.7.29-1.el7 mysql57-community 311 k
事务概要
================================================================================
安装 3 软件包 (+3 依赖软件包)
总下载量:206 M
Downloading packages:
(1/6): libaio-0.3.109-13.el7.x86_64.rpm | 24 kB 00:00
warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.29-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
mysql-community-common-5.7.29-1.el7.x86_64.rpm 的公钥尚未安装
(2/6): mysql-community-common-5.7.29-1.el7.x86_64.rpm | 311 kB 00:01
(3/6): mysql-community-libs-5.7.29-1.el7.x86_64.rpm | 2.5 MB 00:02
(4/6): mysql-community-libs-compat-5.7.29-1.el7.x86_64.rpm | 1.3 MB 00:01
(5/6): mysql-community-client-5.7.29-1.el7.x86_64.rpm | 26 MB 00:14
(6/6): mysql-community-server-5.7.29-1.el7.x86_64.rpm | 175 MB 00:29
--------------------------------------------------------------------------------
总计 5.7 MB/s | 206 MB 00:36
从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql 检索密钥
导入 GPG key 0x5072E1F5:
用户ID : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
指纹 : a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
软件包 : mysql57-community-release-el7-8.noarch (installed)
来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
警告:RPM 数据库已被非 yum 程序修改。
正在安装 : mysql-community-common-5.7.29-1.el7.x86_64 1/7
正在安装 : mysql-community-libs-5.7.29-1.el7.x86_64 2/7
正在安装 : mysql-community-client-5.7.29-1.el7.x86_64 3/7
正在安装 : libaio-0.3.109-13.el7.x86_64 4/7
正在安装 : mysql-community-server-5.7.29-1.el7.x86_64 5/7
正在安装 : mysql-community-libs-compat-5.7.29-1.el7.x86_64 6/7
正在删除 : 1:mariadb-libs-5.5.64-1.el7.x86_64 7/7
验证中 : mysql-community-common-5.7.29-1.el7.x86_64 1/7
验证中 : mysql-community-libs-5.7.29-1.el7.x86_64 2/7
验证中 : mysql-community-client-5.7.29-1.el7.x86_64 3/7
验证中 : mysql-community-server-5.7.29-1.el7.x86_64 4/7
验证中 : libaio-0.3.109-13.el7.x86_64 5/7
验证中 : mysql-community-libs-compat-5.7.29-1.el7.x86_64 6/7
验证中 : 1:mariadb-libs-5.5.64-1.el7.x86_64 7/7
已安装:
mysql-community-libs.x86_64 0:5.7.29-1.el7
mysql-community-libs-compat.x86_64 0:5.7.29-1.el7
mysql-community-server.x86_64 0:5.7.29-1.el7
作为依赖被安装:
libaio.x86_64 0:0.3.109-13.el7
mysql-community-client.x86_64 0:5.7.29-1.el7
mysql-community-common.x86_64 0:5.7.29-1.el7
替代:
mariadb-libs.x86_64 1:5.5.64-1.el7
完毕!
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# systemctl enable mysqld.service
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# systemctl list-unit-files | grep mysqld
mysqld.service enabled
mysqld@.service disabled
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# systemctl start mysqld.service
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# grep 'temporary password' /var/log/mysqld.log
2020-01-22T05:05:37.197545Z 1 [Note] A temporary password is generated for root@localhost: ;&a+w+zHe2eH
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 3
Server version: 5.7.29
Copyright (c) 2000, 2020, 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> SET PASSWORD = PASSWORD('zwj20190808!')
-> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'zwj20190808!' WITH GRANT OPTION
-> flush privileges
-> mysql -u root -p
-> exit
-> esc
-> cd ./
-> exit()
-> exit
-> mysql > quit
-> quit
-> quit;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'zwj20190808!' WITH GRAN' at line 2
mysql> exit
Bye
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@iZ2zeagiqhn4s3u2pihrgxZ /]#
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 6
Server version: 5.7.29
Copyright (c) 2000, 2020, 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> set global validate_password_policy=LOW;
Query OK, 0 rows affected (0.00 sec)
mysql> set global validate_password_length=12;
Query OK, 0 rows affected (0.00 sec)
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'zwj20190808!';
Query OK, 0 rows affected (0.01 sec)
mysql> exit;
Bye
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 7
Server version: 5.7.29 MySQL Community Server (GPL)
Copyright (c) 2000, 2020, 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> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'zwj20190808!' WITH GRANT OPTION;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit;
Bye
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 8
Server version: 5.7.29 MySQL Community Server (GPL)
Copyright (c) 2000, 2020, 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> use mysql
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> select user, password, host from user;
ERROR 1054 (42S22): Unknown column 'password' in 'field list'
mysql> select user from user;
+---------------+
| user |
+---------------+
| root |
| mysql.session |
| mysql.sys |
| root |
+---------------+
4 rows in set (0.00 sec)
mysql> exit;
Bye
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# cd ../
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 10
Server version: 5.7.29 MySQL Community Server (GPL)
Copyright (c) 2000, 2020, 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 |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.00 sec)
mysql> select t.host from user t where t.user='root';
ERROR 1046 (3D000): No database selected
mysql> exit;
Bye
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 11
Server version: 5.7.29 MySQL Community Server (GPL)
Copyright (c) 2000, 2020, 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> select t.host from user t where t.user='root';
ERROR 1046 (3D000): No database selected
mysql> use mysql;
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> update user set password=password('zwj20190808!') where user='root';
ERROR 1054 (42S22): Unknown column 'password' in 'field list'
mysql> update mysql.user set authentication_string=password('zwj20190808!') where user='root';
Query OK, 0 rows affected, 1 warning (0.00 sec)
Rows matched: 2 Changed: 0 Warnings: 1
mysql> select t.host from user t where t.user='root';
+-----------+
| host |
+-----------+
| % |
| localhost |
+-----------+
2 rows in set (0.00 sec)
mysql> update user set host='%' where user='root';
ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'
mysql> exit;
Bye
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# firewall-cmd --zone=public --add-port=3306/tcp --permanent;
FirewallD is not running
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# 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)
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# systemctl start firewalld
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# firewall-cmd --zone=public --add-port=3306/tcp --permanent;
success
[root@iZ2zeagiqhn4s3u2pihrgxZ /]# firewall-cmd --reload
success
[root@iZ2zeagiqhn4s3u2pihrgxZ /]#