阿里云MySQL安装到centos,并链接。
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 /]#
阿里云MySQL安装到centos,并链接。的更多相关文章
- 阿里云mysql安装
阿里云上安装mysql还是遇到些问题,感觉不是傻瓜式一键安装,还是写个帖子以后看 1.安装 https://yq.aliyun.com/articles/47237 启动mysql的时候报了问题 My ...
- 阿里云mysql安装配置(CentOS 7.3 64)
自建目录并且加载yum资源mysql 安装 回车之后竟然出现不可以的情况(原因是原来的镜像里面默认装好了mysql5.7) 然后只能尝试跳过密码登录 #vim /etc/my.cnf 在文档内搜索my ...
- 阿里云上安装mysql步骤/ 阿里云ECS搭建Java+mysql+tomcat环境
使用阿里云ECS挺长一段时间了.这两天碰巧朋友小白让我一步一步教他在ECS上搭建Java+mysql+tomcat环境,所以把在这里把步骤在这简单整理了一下,以便需要的人查阅. 我购买的阿里云服务器系 ...
- 在阿里云服务器上(centos 8) 安装自己的MQTT服务器 (mosquitto)
layout: post title: 在阿里云服务器上(centos 8) 安装自己的MQTT服务器 (mosquitto) subtitle: date: 2020-3-2 author: Dap ...
- 阿里云ECS 环境是CentOS 7.3安装mongodb3
CentOS安装mongodb https://www.cnblogs.com/zddzz/p/10069912.html CentOS安装mongodb 我的是阿里云ECS 环境是CentOS 7. ...
- 【简书】在阿里云自带的CentOS + LAMP环境下部署一个Laravel项目
在阿里云自带的CentOS + LAMP环境下部署一个Laravel项目 作者 DonnieZero 关注 2017.07.29 22:02* 字数 2218 阅读 5556评论 3喜欢 1赞赏 1 ...
- 阿里云上安装 Ubuntu + MariaDB
阿里云上安装 Ubuntu + MariaDB 任务 安装第二个磁盘 设置第二个磁盘为数据盘 安装 MariaDB 配置 MariaDB 的数据文件目录 配置 MariaDB 远程访问 安装第二个磁盘 ...
- 阿里云Linux安装软件镜像源
阿里云Linux安装软件镜像源 阿里云是最近新出的一个镜像源.得益与阿里云的高速发展,这么大的需求,肯定会推出自己的镜像源.阿里云Linux安装镜像源地址:http://mirrors.aliyun. ...
- [docker]通过阿里云源安装docker && flannel不通问题解决(try this guy out)
docker清理容器 # 容器停止后就自动删除: docker run --rm centos /bin/echo "One"; # 杀死所有正在运行的容器: docker kil ...
随机推荐
- 【sklearn】特征选择和降维
1.13 特征选择 sklearn.feature_selection模块中的类可以用于样本集上的特征选择/降维,以提高估计器的精度值,或提高其应用在高维数据集上的性能. 1.13.1 删除低方差的特 ...
- nginx解决服务器宕机、解决跨域问题、配置防盗链、防止DDOS流量攻击
解决服务器宕机 配置nginx.cfg配置文件,在映射拦截地址中加入代理地址响应方案 location / { proxy_connect_timeout 1; proxy_send_timeout ...
- python--终端工具之subprocess
一. subprocess.getstatusoutput import subprocess cmd = 'ifconfig' def cmds(cmd,print_msg=True): statu ...
- windows 2012 r2怎么进入本地组策略
可以使用命令行或使用 Microsoft 管理控制台 (MMC) 打开本地组策略编辑器.通过命令行打开本地组策略编辑器的步骤单击“开始”,在“开始搜索”框中键入 gpedit.msc,然后按 Ente ...
- 每个Web开发者都应该知道的SOLID原则
面向对象的编程并不能防止难以理解或不可维护的程序.因此,Robert C. Martin 制定了五项指导原则,使开发人员很容易创建出可读性强且可维护的程序.这五项原则被称为 S.O.L.I.D 原则. ...
- XMind快捷键汇总
在 XMind: ZEN 中,快捷键是可以大大提高绘图效率的存在.掌握常用的快捷键组合,就可以在键盘上运指如飞,快速地进行思维导图的绘制.还在等什么?感兴趣的朋友,下面就和小编一起来看看吧! XMin ...
- stringstream使用小结
1.头文件:#include<sstream> 2.stringstream是C++提供的串流(stream)物件 3.clear()重置流的标志状态:str()清空流的内存缓冲,重复使用 ...
- 数据结构与算法之比较排序【Java】
比较排序与非比较排序的对比 常见的快速排序.归并排序.堆排序.冒泡排序等属于比较排序.在排序的最终结果里,元素之间的次序依赖于它们之间的比较.每个数都必须和其他数进行比较,才能确定自己的位置.在冒泡排 ...
- IDEA 和 Webstorm JAR包方式破解
IDEA 和 Webstorm JAR包方式破解 IDEA 我是用的IDEA版本是 18.3,更新版本的IDEA很多激活码都不能用了,或者不好激活了. 首先下载相应的 软件版本 和破解 jar包. 下 ...
- CentOS MySQL自动备份shell脚本
先执行 vim/mysqlBack/back.sh 然后添加以下内容 ## 记录日志 # 以下配置信息请自己修改 mysql_user="root" #MySQL备份用户 mys ...