[shawnyan@rocky9 ~]$ gcc --version gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [shawnyan@rocky9 ~]$ [shawnyan@rocky9 ~]$ rpm -qa | grep gcc-toolset gcc-toolset-12-runtime-12.0-6.el9.x86_64 gcc-toolset-12-annobin-docs-11.08-2.el9.noarch gcc-toolset-12-libstdc++-devel-12.2.1-7.4.el9.x86_64 gcc-toolset-12-binutils-gold-2.38-17.el9_2.1.x86_64 gcc-toolset-12-binutils-2.38-17.el9_2.1.x86_64 gcc-toolset-12-gcc-12.2.1-7.4.el9.x86_64 gcc-toolset-12-gcc-c++-12.2.1-7.4.el9.x86_64 gcc-toolset-12-annobin-plugin-gcc-11.08-2.el9.x86_64 gcc-toolset-12-annobin-annocheck-11.08-2.el9.x86_64 [shawnyan@rocky9 ~]$ [shawnyan@rocky9 ~]$ scl enable gcc-toolset-12 bash [shawnyan@rocky9 ~]$ gcc --version gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
在 Rocky 9.3 中,GCC 版本升级到了 11.4.1。
1 2 3 4 5 6 7
[shawnyan@rocky9 ~]$ gcc --version gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[shawnyan@rocky9 ~]$ scl enable gcc-toolset-13 bash [shawnyan@rocky9 ~]$ gcc --version gcc (GCC) 13.1.1 20230614 (Red Hat 13.1.1-4) Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the sourcefor copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[shawnyan@rocky9 ~]$ cat /etc/redhat-release Rocky Linux release 9.2 (Blue Onyx) [shawnyan@rocky9 ~]$ yum list java-*-openjdk Last metadata expiration check: 4 days, 18:16:06 ago on Sat 11 Nov 2023 08:35:35 PM UTC. Available Packages java-1.8.0-openjdk.x86_64 1:1.8.0.392.b08-3.el9 appstream java-11-openjdk.x86_64 1:11.0.21.0.9-2.el9 appstream java-17-openjdk.x86_64 1:17.0.9.0.9-2.el9 appstream
[shawnyan@rocky9 ~]$ cat /etc/redhat-release Rocky Linux release 9.2 (Blue Onyx) [shawnyan@rocky9 ~]$ yum list mariadb-server* Last metadata expiration check: 5 days, 12:24:51 ago on Sat 11 Nov 2023 08:35:35 PM UTC. Available Packages mariadb-server.x86_64 3:10.5.22-1.el9_2 appstream mariadb-server-galera.x86_64 3:10.5.22-1.el9_2 appstream mariadb-server-utils.x86_64 3:10.5.22-1.el9_2 appstream [shawnyan@rocky9 ~]$ yum list mysql-server* Last metadata expiration check: 5 days, 12:24:53 ago on Sat 11 Nov 2023 08:35:35 PM UTC. Available Packages mysql-server.x86_64 8.0.32-1.el9_2 appstream [shawnyan@rocky9 ~]$ yum list postgresql-server* Last metadata expiration check: 5 days, 12:24:58 ago on Sat 11 Nov 2023 08:35:35 PM UTC. Available Packages postgresql-server.x86_64 13.11-1.el9_2 appstream [shawnyan@rocky9 ~]$ dnf list redis Last metadata expiration check: 5 days, 13:58:28 ago on Sat 11 Nov 2023 08:35:35 PM UTC. Available Packages redis.x86_64 6.2.7-1.el9 appstream [shawnyan@rocky9 ~]$
这里介绍一个新命令,ip stats,可以管理、显示接口状态信息,默认显示所有网络设备,包括 bridges 和 bonds,也可以通过 dev 和 group 过滤信息。
例如:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
[shawnyan@rocky9 ~]$ ip stats show dev ens33 2: ens33: group offload subgroup hw_stats_info l3_stats off used off 2: ens33: group xstats_slave subgroup bond suite 802.3ad 2: ens33: group xstats_slave subgroup bridge suite mcast 2: ens33: group xstats_slave subgroup bridge suite stp 2: ens33: group xstats subgroup bond suite 802.3ad 2: ens33: group xstats subgroup bridge suite mcast 2: ens33: group xstats subgroup bridge suite stp 2: ens33: group afstats subgroup mpls 2: ens33: group offload subgroup l3_stats off used off 2: ens33: group offload subgroup cpu_hit