amegonの雑なブログ

日常的なものから技術的なものまでメモの雑記

MIRACLE LINUX 8.6 に Zabbix 6.0 をインストール

実施目的

自宅で検証に使用している Zabbix 5.0 は CentOS 7 で稼働しているのですが、CentOS も終了製品ということで環境を整備しようと思っていました。 今回 MIRACLE LINUX に OS を変更するついでに、Zabbix も現状最新の LTS にしようと思い Zabbix 6.0 を入れてみたメモになります。

作業の流れ

おおまかに以下の流れで作業します。
MIRACLE LINUX のインストールは済んでいるとします。

  • MariaDB 10.10.X のインストール
    • 10.5 から 10.10 がサポートバージョン
  • php 7.4.X のインストール
  • Zabbix 6.0 のインストール
  • ブラウザで Zabbix Web を開いて設定の続き

作業詳細

MariaDB 10.10 のインストール

以下のサイトでリポジトリの情報を取得してリポジトリ作成。

まず以下のリポジトリの情報を取得。

mariadb.org

プラットフォームとインストールする MariaDB のバージョンを指定してリポジトリの情報をコピー。

MIRACLE LINUX 側では以下のファイルにコピーした内容を張り付ける。

vi /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.10 RedHatEnterpriseLinux repository list - created 2023-03-17 04:19 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
# rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details.
# baseurl = https://rpm.mariadb.org/10.10/rhel/$releasever/$basearch
baseurl = https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/yum/10.10/rhel/$releasever/$basearch
module_hotfixes = 1
# gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgkey = https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1

リポジトリを作成後インストール

ターミナルに戻ったら以下のコマンドを実行。

sudo yum install MariaDB-server MariaDB-client

DB 起動

MariaDB をインストールしたら起動しておく。
この際自動起動も有効にしておく。

systemctl start mariadb
systemctl enable mariadb
systemctl status mariadb

php 7.4 のインストール

Zabbix 6.0 の稼働には PHP 7.2.5 以降が必要らしい。
今回は PHP 7.4 をインストールする。

dnf module install php:7.4

Zabbix 6.0 のインストール

Zabbix 公式の Web の手順に従って進める。
以下手順抜粋。

リポジトリのインストールとモジュールインストール

rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-4.el8.noarch.rpm
dnf clean all
dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent

DB にユーザーを作成

# mysql -uroot -p
password
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'password';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;

スキーマの作成

# zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
password

DB への初期設定

# mysql -uroot -p
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;

zabbix_server.conf に DB のパスワード設定

/etc/zabbix/zabbix_server.confDBPassword=password を追記。

起動と自動起動の有効化設定

systemctl restart zabbix-server zabbix-agent httpd php-fpm
systemctl enable zabbix-server zabbix-agent httpd php-fpm

ブラウザで Zabbix Web を開いて設定の続き

ブラウザで http://<host>/zabbix にアクセスして表示された画面に従い初期設定を続ける。

実行ログ

一部抜粋です。
以下コマンド実行時では yum や dnf 実行時には -y オプションつけて実行しています。

Last login: Sun Jan 22 20:32:29 2023
[root@ml86 ~]#
[root@ml86 ~]#
[root@ml86 ~]# getenforce
Disabled
[root@ml86 ~]#
[root@ml86 ~]# 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@ml86 ~]#
[root@ml86 ~]#
[root@ml86 ~]#
[root@ml86 ~]# cat /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.10 RedHatEnterpriseLinux repository list - created 2023-03-17 04:19 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
# rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details.
# baseurl = https://rpm.mariadb.org/10.10/rhel/$releasever/$basearch
baseurl = https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/yum/10.10/rhel/$releasever/$basearch
module_hotfixes = 1
# gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgkey = https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1
[root@ml86 ~]#
[root@ml86 ~]#
[root@ml86 ~]# sudo yum install -y MariaDB-server MariaDB-client
MariaDB                                                                 1.9 MB/s | 673 kB     00:00
8-latest-BaseOS                                                          10 MB/s |  37 MB     00:03
8-latest-AppStream                                                       10 MB/s |  44 MB     00:04
依存関係が解決しました。
========================================================================================================
 パッケージ                Arch      バージョン                             リポジトリー          サイズ
========================================================================================================
インストール:
 MariaDB-client            x86_64    10.10.3-1.el8                          mariadb                16 M
 MariaDB-server            x86_64    10.10.3-1.el8                          mariadb                27 M
依存関係のインストール:
 MariaDB-common            x86_64    10.10.3-1.el8                          mariadb                88 k
 MariaDB-shared            x86_64    10.10.3-1.el8                          mariadb               119 k
 boost-program-options     x86_64    1.66.0-13.el8                          8-latest-AppStream    140 k
 galera-4                  x86_64    26.4.14-1.el8                          mariadb                13 M
 libpmem                   x86_64    1.6.1-1.el8                            8-latest-AppStream     78 k
 lsof                      x86_64    4.93.2-1.el8                           8-latest-BaseOS       252 k
 perl-Carp                 noarch    1.42-396.el8                           8-latest-BaseOS        29 k
 perl-DBI                  x86_64    1.641-4.module+el8+1503+4d166e85       8-latest-AppStream    739 k
 perl-Data-Dumper          x86_64    2.167-399.el8                          8-latest-BaseOS        57 k
 perl-Digest               noarch    1.17-395.el8                           8-latest-AppStream     26 k
 perl-Digest-MD5           x86_64    2.55-396.el8                           8-latest-AppStream     36 k
 perl-Encode               x86_64    4:2.97-3.el8                           8-latest-BaseOS       1.5 M
 perl-Errno                x86_64    1.28-421.el8.ML.1                      8-latest-BaseOS        75 k
 perl-Exporter             noarch    5.72-396.el8                           8-latest-BaseOS        33 k
 perl-File-Path            noarch    2.15-2.el8                             8-latest-BaseOS        37 k
 perl-File-Temp            noarch    0.230.600-1.el8                        8-latest-BaseOS        61 k
 perl-Getopt-Long          noarch    1:2.50-4.el8                           8-latest-BaseOS        62 k
 perl-HTTP-Tiny            noarch    0.074-1.el8                            8-latest-BaseOS        57 k
 perl-IO                   x86_64    1.38-421.el8.ML.1                      8-latest-BaseOS       141 k
 perl-MIME-Base64          x86_64    3.15-396.el8                           8-latest-BaseOS        30 k
 perl-Math-BigInt          noarch    1:1.9998.11-7.el8                      8-latest-BaseOS       194 k
 perl-Math-Complex         noarch    1.59-421.el8.ML.1                      8-latest-BaseOS       108 k
 perl-Net-SSLeay           x86_64    1.88-2.module+el8+1507+d6e7172f        8-latest-AppStream    378 k
 perl-PathTools            x86_64    3.74-1.el8                             8-latest-BaseOS        89 k
 perl-Pod-Escapes          noarch    1:1.07-395.el8                         8-latest-BaseOS        19 k
 perl-Pod-Perldoc          noarch    3.28-396.el8                           8-latest-BaseOS        85 k
 perl-Pod-Simple           noarch    1:3.35-395.el8                         8-latest-BaseOS       212 k
 perl-Pod-Usage            noarch    4:1.69-395.el8                         8-latest-BaseOS        33 k
 perl-Scalar-List-Utils    x86_64    3:1.49-2.el8                           8-latest-BaseOS        67 k
 perl-Socket               x86_64    4:2.027-3.el8                          8-latest-BaseOS        58 k
 perl-Storable             x86_64    1:3.11-3.el8                           8-latest-BaseOS        97 k
 perl-Term-ANSIColor       noarch    4.06-396.el8                           8-latest-BaseOS        45 k
 perl-Term-Cap             noarch    1.17-395.el8                           8-latest-BaseOS        22 k
 perl-Text-ParseWords      noarch    3.30-395.el8                           8-latest-BaseOS        17 k
 perl-Text-Tabs+Wrap       noarch    2013.0523-395.el8                      8-latest-BaseOS        23 k
 perl-Time-Local           noarch    1:1.280-1.el8                          8-latest-BaseOS        32 k
 perl-URI                  noarch    1.73-3.el8                             8-latest-AppStream    115 k
 perl-Unicode-Normalize    x86_64    1.25-396.el8                           8-latest-BaseOS        80 k
 perl-constant             noarch    1.33-396.el8                           8-latest-BaseOS        24 k
 perl-interpreter          x86_64    4:5.26.3-421.el8.ML.1                  8-latest-BaseOS       6.3 M
 perl-libnet               noarch    3.11-3.el8                             8-latest-AppStream    120 k
 perl-libs                 x86_64    4:5.26.3-421.el8.ML.1                  8-latest-BaseOS       1.6 M
 perl-macros               x86_64    4:5.26.3-421.el8.ML.1                  8-latest-BaseOS        71 k
 perl-parent               noarch    1:0.237-1.el8                          8-latest-BaseOS        19 k
 perl-podlators            noarch    4.11-1.el8                             8-latest-BaseOS       117 k
 perl-threads              x86_64    1:2.21-2.el8                           8-latest-BaseOS        60 k
 perl-threads-shared       x86_64    1.58-2.el8                             8-latest-BaseOS        47 k
 rsync                     x86_64    3.1.3-19.el8.1                         8-latest-BaseOS       409 k
 socat                     x86_64    1.7.4.1-1.el8                          8-latest-AppStream    322 k
弱い依存関係のインストール:
 perl-IO-Socket-IP         noarch    0.39-5.el8                             8-latest-AppStream     46 k
 perl-IO-Socket-SSL        noarch    2.066-4.module+el8+1507+d6e7172f       8-latest-AppStream    296 k
 perl-Mozilla-CA           noarch    20160104-7.module+el8+1233+f04ae815    8-latest-AppStream     14 k
モジュールストリームの有効化中:
 perl                                5.26
 perl-DBI                            1.641
 perl-IO-Socket-SSL                  2.066
 perl-libwww-perl                    6.34

トランザクションの概要
========================================================================================================
インストール  54 パッケージ

ダウンロードサイズの合計: 71 M
インストール後のサイズ: 331 M
パッケージのダウンロード:
(1/54): MariaDB-common-10.10.3-1.el8.x86_64.rpm                         779 kB/s |  88 kB     00:00
(2/54): MariaDB-shared-10.10.3-1.el8.x86_64.rpm                         2.2 MB/s | 119 kB     00:00
(3/54): galera-4-26.4.14-1.el8.x86_64.rpm                               3.9 MB/s |  13 MB     00:03
(4/54): lsof-4.93.2-1.el8.x86_64.rpm                                    1.5 MB/s | 252 kB     00:00
(5/54): perl-Carp-1.42-396.el8.noarch.rpm                               721 kB/s |  29 kB     00:00
(6/54): perl-Data-Dumper-2.167-399.el8.x86_64.rpm                       1.2 MB/s |  57 kB     00:00
(7/54): perl-Encode-2.97-3.el8.x86_64.rpm                               6.6 MB/s | 1.5 MB     00:00
(8/54): perl-Errno-1.28-421.el8.ML.1.x86_64.rpm                         1.5 MB/s |  75 kB     00:00
(9/54): perl-Exporter-5.72-396.el8.noarch.rpm                           851 kB/s |  33 kB     00:00
(10/54): perl-File-Path-2.15-2.el8.noarch.rpm                           1.1 MB/s |  37 kB     00:00
(11/54): perl-File-Temp-0.230.600-1.el8.noarch.rpm                      1.3 MB/s |  61 kB     00:00
(12/54): perl-Getopt-Long-2.50-4.el8.noarch.rpm                         1.3 MB/s |  62 kB     00:00
(13/54): perl-HTTP-Tiny-0.074-1.el8.noarch.rpm                          1.2 MB/s |  57 kB     00:00
(14/54): perl-IO-1.38-421.el8.ML.1.x86_64.rpm                           2.3 MB/s | 141 kB     00:00
(15/54): perl-MIME-Base64-3.15-396.el8.x86_64.rpm                       737 kB/s |  30 kB     00:00
(16/54): perl-Math-BigInt-1.9998.11-7.el8.noarch.rpm                    2.5 MB/s | 194 kB     00:00
(17/54): perl-Math-Complex-1.59-421.el8.ML.1.noarch.rpm                 2.0 MB/s | 108 kB     00:00
(18/54): perl-PathTools-3.74-1.el8.x86_64.rpm                           1.8 MB/s |  89 kB     00:00
(19/54): perl-Pod-Escapes-1.07-395.el8.noarch.rpm                       471 kB/s |  19 kB     00:00
(20/54): perl-Pod-Perldoc-3.28-396.el8.noarch.rpm                       1.6 MB/s |  85 kB     00:00
(21/54): perl-Pod-Simple-3.35-395.el8.noarch.rpm                        3.2 MB/s | 212 kB     00:00
(22/54): perl-Pod-Usage-1.69-395.el8.noarch.rpm                         751 kB/s |  33 kB     00:00
(23/54): perl-Scalar-List-Utils-1.49-2.el8.x86_64.rpm                   1.4 MB/s |  67 kB     00:00
(24/54): perl-Socket-2.027-3.el8.x86_64.rpm                             1.2 MB/s |  58 kB     00:00
(25/54): perl-Storable-3.11-3.el8.x86_64.rpm                            1.7 MB/s |  97 kB     00:00
(26/54): perl-Term-ANSIColor-4.06-396.el8.noarch.rpm                    951 kB/s |  45 kB     00:00
(27/54): perl-Term-Cap-1.17-395.el8.noarch.rpm                          536 kB/s |  22 kB     00:00
(28/54): perl-Text-ParseWords-3.30-395.el8.noarch.rpm                   381 kB/s |  17 kB     00:00
(29/54): perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch.rpm               563 kB/s |  23 kB     00:00
(30/54): perl-Time-Local-1.280-1.el8.noarch.rpm                         708 kB/s |  32 kB     00:00
(31/54): perl-Unicode-Normalize-1.25-396.el8.x86_64.rpm                 1.6 MB/s |  80 kB     00:00
(32/54): perl-constant-1.33-396.el8.noarch.rpm                          598 kB/s |  24 kB     00:00
(33/54): MariaDB-client-10.10.3-1.el8.x86_64.rpm                        2.8 MB/s |  16 MB     00:05
(34/54): perl-libs-5.26.3-421.el8.ML.1.x86_64.rpm                       3.0 MB/s | 1.6 MB     00:00
(35/54): perl-macros-5.26.3-421.el8.ML.1.x86_64.rpm                     1.8 MB/s |  71 kB     00:00
(36/54): perl-parent-0.237-1.el8.noarch.rpm                             595 kB/s |  19 kB     00:00
(37/54): perl-podlators-4.11-1.el8.noarch.rpm                           1.9 MB/s | 117 kB     00:00
(38/54): perl-interpreter-5.26.3-421.el8.ML.1.x86_64.rpm                5.9 MB/s | 6.3 MB     00:01
(39/54): perl-threads-2.21-2.el8.x86_64.rpm                             1.1 MB/s |  60 kB     00:00
(40/54): perl-threads-shared-1.58-2.el8.x86_64.rpm                      1.2 MB/s |  47 kB     00:00
(41/54): boost-program-options-1.66.0-13.el8.x86_64.rpm                 3.4 MB/s | 140 kB     00:00
(42/54): rsync-3.1.3-19.el8.1.x86_64.rpm                                4.1 MB/s | 409 kB     00:00
(43/54): libpmem-1.6.1-1.el8.x86_64.rpm                                 1.2 MB/s |  78 kB     00:00
(44/54): perl-Digest-1.17-395.el8.noarch.rpm                            634 kB/s |  26 kB     00:00
(45/54): perl-Digest-MD5-2.55-396.el8.x86_64.rpm                        835 kB/s |  36 kB     00:00
(46/54): perl-DBI-1.641-4.module+el8+1503+4d166e85.x86_64.rpm           4.8 MB/s | 739 kB     00:00
(47/54): perl-IO-Socket-IP-0.39-5.el8.noarch.rpm                        1.3 MB/s |  46 kB     00:00
(48/54): perl-Mozilla-CA-20160104-7.module+el8+1233+f04ae815.noarch.rpm 300 kB/s |  14 kB     00:00
(49/54): perl-IO-Socket-SSL-2.066-4.module+el8+1507+d6e7172f.noarch.rpm 4.4 MB/s | 296 kB     00:00
(50/54): perl-URI-1.73-3.el8.noarch.rpm                                 2.0 MB/s | 115 kB     00:00
(51/54): perl-Net-SSLeay-1.88-2.module+el8+1507+d6e7172f.x86_64.rpm     3.7 MB/s | 378 kB     00:00
(52/54): perl-libnet-3.11-3.el8.noarch.rpm                              2.9 MB/s | 120 kB     00:00
(53/54): socat-1.7.4.1-1.el8.x86_64.rpm                                 2.3 MB/s | 322 kB     00:00
(54/54): MariaDB-server-10.10.3-1.el8.x86_64.rpm                        3.5 MB/s |  27 MB     00:07
--------------------------------------------------------------------------------------------------------
合計                                                                    9.0 MB/s |  71 MB     00:07
MariaDB                                                                 242 kB/s |  15 kB     00:00
GPG 鍵 0x1BB943DB をインポート中:
 Userid     : "MariaDB Package Signing Key <package-signing-key@mariadb.org>"
 Fingerprint: 1993 69E5 404B D5FC 7D2F E43B CBCB 082A 1BB9 43DB
 From       : https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/yum/RPM-GPG-KEY-MariaDB
鍵のインポートに成功しました
GPG 鍵 0xC74CD1D8 をインポート中:
 Userid     : "MariaDB Signing Key <signing-key@mariadb.org>"
 Fingerprint: 177F 4010 FE56 CA33 3630 0305 F165 6F24 C74C D1D8
 From       : https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/yum/RPM-GPG-KEY-MariaDB
鍵のインポートに成功しました
8-latest-BaseOS                                                         3.8 MB/s | 3.9 kB     00:00
GPG 鍵 0x7E667906 をインポート中:
 Userid     : "MIRACLE LINUX (MIRACLE LINUX packager) <ml-packager@miraclelinux.com>"
 Fingerprint: E23C 8CB9 5232 0797 6E7C 468E 02BD 374D 7E66 7906
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY
鍵のインポートに成功しました
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
  準備             :                                                                                1/1
  インストール中   : perl-Digest-1.17-395.el8.noarch                                               1/54
  インストール中   : perl-Digest-MD5-2.55-396.el8.x86_64                                           2/54
  インストール中   : perl-Data-Dumper-2.167-399.el8.x86_64                                         3/54
  インストール中   : perl-libnet-3.11-3.el8.noarch                                                 4/54
  インストール中   : perl-Net-SSLeay-1.88-2.module+el8+1507+d6e7172f.x86_64                        5/54
  インストール中   : perl-URI-1.73-3.el8.noarch                                                    6/54
  インストール中   : perl-Pod-Escapes-1:1.07-395.el8.noarch                                        7/54
  インストール中   : perl-Time-Local-1:1.280-1.el8.noarch                                          8/54
  インストール中   : perl-IO-Socket-IP-0.39-5.el8.noarch                                           9/54
  インストール中   : perl-Mozilla-CA-20160104-7.module+el8+1233+f04ae815.noarch                   10/54
  インストール中   : perl-IO-Socket-SSL-2.066-4.module+el8+1507+d6e7172f.noarch                   11/54
  インストール中   : perl-Term-ANSIColor-4.06-396.el8.noarch                                      12/54
  インストール中   : perl-Term-Cap-1.17-395.el8.noarch                                            13/54
  インストール中   : perl-File-Temp-0.230.600-1.el8.noarch                                        14/54
  インストール中   : perl-Pod-Simple-1:3.35-395.el8.noarch                                        15/54
  インストール中   : perl-HTTP-Tiny-0.074-1.el8.noarch                                            16/54
  インストール中   : perl-podlators-4.11-1.el8.noarch                                             17/54
  インストール中   : perl-Pod-Perldoc-3.28-396.el8.noarch                                         18/54
  インストール中   : perl-Text-ParseWords-3.30-395.el8.noarch                                     19/54
  インストール中   : perl-Pod-Usage-4:1.69-395.el8.noarch                                         20/54
  インストール中   : perl-MIME-Base64-3.15-396.el8.x86_64                                         21/54
  インストール中   : perl-Storable-1:3.11-3.el8.x86_64                                            22/54
  インストール中   : perl-Getopt-Long-1:2.50-4.el8.noarch                                         23/54
  インストール中   : perl-Errno-1.28-421.el8.ML.1.x86_64                                          24/54
  インストール中   : perl-Socket-4:2.027-3.el8.x86_64                                             25/54
  インストール中   : perl-Encode-4:2.97-3.el8.x86_64                                              26/54
  インストール中   : perl-Exporter-5.72-396.el8.noarch                                            27/54
  インストール中   : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64                                   28/54
  インストール中   : perl-macros-4:5.26.3-421.el8.ML.1.x86_64                                     29/54
  インストール中   : perl-parent-1:0.237-1.el8.noarch                                             30/54
  インストール中   : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch                                 31/54
  インストール中   : perl-Unicode-Normalize-1.25-396.el8.x86_64                                   32/54
  インストール中   : perl-File-Path-2.15-2.el8.noarch                                             33/54
  インストール中   : perl-IO-1.38-421.el8.ML.1.x86_64                                             34/54
  インストール中   : perl-PathTools-3.74-1.el8.x86_64                                             35/54
  インストール中   : perl-constant-1.33-396.el8.noarch                                            36/54
  インストール中   : perl-threads-1:2.21-2.el8.x86_64                                             37/54
  インストール中   : perl-threads-shared-1.58-2.el8.x86_64                                        38/54
  インストール中   : perl-libs-4:5.26.3-421.el8.ML.1.x86_64                                       39/54
  インストール中   : perl-Carp-1.42-396.el8.noarch                                                40/54
  インストール中   : perl-interpreter-4:5.26.3-421.el8.ML.1.x86_64                                41/54
  scriptletの実行中: MariaDB-shared-10.10.3-1.el8.x86_64                                          42/54
  インストール中   : MariaDB-shared-10.10.3-1.el8.x86_64                                          42/54
  scriptletの実行中: MariaDB-shared-10.10.3-1.el8.x86_64                                          42/54
  scriptletの実行中: MariaDB-common-10.10.3-1.el8.x86_64                                          43/54
  インストール中   : MariaDB-common-10.10.3-1.el8.x86_64                                          43/54
  scriptletの実行中: MariaDB-common-10.10.3-1.el8.x86_64                                          43/54
  インストール中   : libpmem-1.6.1-1.el8.x86_64                                                   44/54
  scriptletの実行中: libpmem-1.6.1-1.el8.x86_64                                                   44/54
  インストール中   : rsync-3.1.3-19.el8.1.x86_64                                                  45/54
  インストール中   : lsof-4.93.2-1.el8.x86_64                                                     46/54
  インストール中   : perl-Math-Complex-1.59-421.el8.ML.1.noarch                                   47/54
  インストール中   : perl-Math-BigInt-1:1.9998.11-7.el8.noarch                                    48/54
  インストール中   : perl-DBI-1.641-4.module+el8+1503+4d166e85.x86_64                             49/54
  scriptletの実行中: MariaDB-client-10.10.3-1.el8.x86_64                                          50/54
  インストール中   : MariaDB-client-10.10.3-1.el8.x86_64                                          50/54
  scriptletの実行中: MariaDB-client-10.10.3-1.el8.x86_64                                          50/54
  インストール中   : socat-1.7.4.1-1.el8.x86_64                                                   51/54
  インストール中   : boost-program-options-1.66.0-13.el8.x86_64                                   52/54
  scriptletの実行中: boost-program-options-1.66.0-13.el8.x86_64                                   52/54
  scriptletの実行中: galera-4-26.4.14-1.el8.x86_64                                                53/54
  インストール中   : galera-4-26.4.14-1.el8.x86_64                                                53/54
  scriptletの実行中: galera-4-26.4.14-1.el8.x86_64                                                53/54
  scriptletの実行中: MariaDB-server-10.10.3-1.el8.x86_64                                          54/54
  インストール中   : MariaDB-server-10.10.3-1.el8.x86_64                                          54/54
  scriptletの実行中: MariaDB-server-10.10.3-1.el8.x86_64                                          54/54


Two all-privilege accounts were created.
One is root@localhost, it has no password, but you need to
be system 'root' user to connect. Use, for example, sudo mysql
The second is mysql@localhost, it has no password either, but
you need to be the system 'mysql' user to connect.
After connecting you can set the password, if you would need to be
able to connect as any of these users with a password and without sudo

See the MariaDB Knowledgebase at https://mariadb.com/kb

Please report any problems at https://mariadb.org/jira

The latest information about MariaDB is available at https://mariadb.org/.

Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/


  検証             : MariaDB-client-10.10.3-1.el8.x86_64                                           1/54
  検証             : MariaDB-common-10.10.3-1.el8.x86_64                                           2/54
  検証             : MariaDB-server-10.10.3-1.el8.x86_64                                           3/54
  検証             : MariaDB-shared-10.10.3-1.el8.x86_64                                           4/54
  検証             : galera-4-26.4.14-1.el8.x86_64                                                 5/54
  検証             : lsof-4.93.2-1.el8.x86_64                                                      6/54
  検証             : perl-Carp-1.42-396.el8.noarch                                                 7/54
  検証             : perl-Data-Dumper-2.167-399.el8.x86_64                                         8/54
  検証             : perl-Encode-4:2.97-3.el8.x86_64                                               9/54
  検証             : perl-Errno-1.28-421.el8.ML.1.x86_64                                          10/54
  検証             : perl-Exporter-5.72-396.el8.noarch                                            11/54
  検証             : perl-File-Path-2.15-2.el8.noarch                                             12/54
  検証             : perl-File-Temp-0.230.600-1.el8.noarch                                        13/54
  検証             : perl-Getopt-Long-1:2.50-4.el8.noarch                                         14/54
  検証             : perl-HTTP-Tiny-0.074-1.el8.noarch                                            15/54
  検証             : perl-IO-1.38-421.el8.ML.1.x86_64                                             16/54
  検証             : perl-MIME-Base64-3.15-396.el8.x86_64                                         17/54
  検証             : perl-Math-BigInt-1:1.9998.11-7.el8.noarch                                    18/54
  検証             : perl-Math-Complex-1.59-421.el8.ML.1.noarch                                   19/54
  検証             : perl-PathTools-3.74-1.el8.x86_64                                             20/54
  検証             : perl-Pod-Escapes-1:1.07-395.el8.noarch                                       21/54
  検証             : perl-Pod-Perldoc-3.28-396.el8.noarch                                         22/54
  検証             : perl-Pod-Simple-1:3.35-395.el8.noarch                                        23/54
  検証             : perl-Pod-Usage-4:1.69-395.el8.noarch                                         24/54
  検証             : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64                                   25/54
  検証             : perl-Socket-4:2.027-3.el8.x86_64                                             26/54
  検証             : perl-Storable-1:3.11-3.el8.x86_64                                            27/54
  検証             : perl-Term-ANSIColor-4.06-396.el8.noarch                                      28/54
  検証             : perl-Term-Cap-1.17-395.el8.noarch                                            29/54
  検証             : perl-Text-ParseWords-3.30-395.el8.noarch                                     30/54
  検証             : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch                                 31/54
  検証             : perl-Time-Local-1:1.280-1.el8.noarch                                         32/54
  検証             : perl-Unicode-Normalize-1.25-396.el8.x86_64                                   33/54
  検証             : perl-constant-1.33-396.el8.noarch                                            34/54
  検証             : perl-interpreter-4:5.26.3-421.el8.ML.1.x86_64                                35/54
  検証             : perl-libs-4:5.26.3-421.el8.ML.1.x86_64                                       36/54
  検証             : perl-macros-4:5.26.3-421.el8.ML.1.x86_64                                     37/54
  検証             : perl-parent-1:0.237-1.el8.noarch                                             38/54
  検証             : perl-podlators-4.11-1.el8.noarch                                             39/54
  検証             : perl-threads-1:2.21-2.el8.x86_64                                             40/54
  検証             : perl-threads-shared-1.58-2.el8.x86_64                                        41/54
  検証             : rsync-3.1.3-19.el8.1.x86_64                                                  42/54
  検証             : boost-program-options-1.66.0-13.el8.x86_64                                   43/54
  検証             : libpmem-1.6.1-1.el8.x86_64                                                   44/54
  検証             : perl-DBI-1.641-4.module+el8+1503+4d166e85.x86_64                             45/54
  検証             : perl-Digest-1.17-395.el8.noarch                                              46/54
  検証             : perl-Digest-MD5-2.55-396.el8.x86_64                                          47/54
  検証             : perl-IO-Socket-IP-0.39-5.el8.noarch                                          48/54
  検証             : perl-IO-Socket-SSL-2.066-4.module+el8+1507+d6e7172f.noarch                   49/54
  検証             : perl-Mozilla-CA-20160104-7.module+el8+1233+f04ae815.noarch                   50/54
  検証             : perl-Net-SSLeay-1.88-2.module+el8+1507+d6e7172f.x86_64                       51/54
  検証             : perl-URI-1.73-3.el8.noarch                                                   52/54
  検証             : perl-libnet-3.11-3.el8.noarch                                                53/54
  検証             : socat-1.7.4.1-1.el8.x86_64                                                   54/54

インストール済み:
  MariaDB-client-10.10.3-1.el8.x86_64
  MariaDB-common-10.10.3-1.el8.x86_64
  MariaDB-server-10.10.3-1.el8.x86_64
  MariaDB-shared-10.10.3-1.el8.x86_64
  boost-program-options-1.66.0-13.el8.x86_64
  galera-4-26.4.14-1.el8.x86_64
  libpmem-1.6.1-1.el8.x86_64
  lsof-4.93.2-1.el8.x86_64
  perl-Carp-1.42-396.el8.noarch
  perl-DBI-1.641-4.module+el8+1503+4d166e85.x86_64
  perl-Data-Dumper-2.167-399.el8.x86_64
  perl-Digest-1.17-395.el8.noarch
  perl-Digest-MD5-2.55-396.el8.x86_64
  perl-Encode-4:2.97-3.el8.x86_64
  perl-Errno-1.28-421.el8.ML.1.x86_64
  perl-Exporter-5.72-396.el8.noarch
  perl-File-Path-2.15-2.el8.noarch
  perl-File-Temp-0.230.600-1.el8.noarch
  perl-Getopt-Long-1:2.50-4.el8.noarch
  perl-HTTP-Tiny-0.074-1.el8.noarch
  perl-IO-1.38-421.el8.ML.1.x86_64
  perl-IO-Socket-IP-0.39-5.el8.noarch
  perl-IO-Socket-SSL-2.066-4.module+el8+1507+d6e7172f.noarch
  perl-MIME-Base64-3.15-396.el8.x86_64
  perl-Math-BigInt-1:1.9998.11-7.el8.noarch
  perl-Math-Complex-1.59-421.el8.ML.1.noarch
  perl-Mozilla-CA-20160104-7.module+el8+1233+f04ae815.noarch
  perl-Net-SSLeay-1.88-2.module+el8+1507+d6e7172f.x86_64
  perl-PathTools-3.74-1.el8.x86_64
  perl-Pod-Escapes-1:1.07-395.el8.noarch
  perl-Pod-Perldoc-3.28-396.el8.noarch
  perl-Pod-Simple-1:3.35-395.el8.noarch
  perl-Pod-Usage-4:1.69-395.el8.noarch
  perl-Scalar-List-Utils-3:1.49-2.el8.x86_64
  perl-Socket-4:2.027-3.el8.x86_64
  perl-Storable-1:3.11-3.el8.x86_64
  perl-Term-ANSIColor-4.06-396.el8.noarch
  perl-Term-Cap-1.17-395.el8.noarch
  perl-Text-ParseWords-3.30-395.el8.noarch
  perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch
  perl-Time-Local-1:1.280-1.el8.noarch
  perl-URI-1.73-3.el8.noarch
  perl-Unicode-Normalize-1.25-396.el8.x86_64
  perl-constant-1.33-396.el8.noarch
  perl-interpreter-4:5.26.3-421.el8.ML.1.x86_64
  perl-libnet-3.11-3.el8.noarch
  perl-libs-4:5.26.3-421.el8.ML.1.x86_64
  perl-macros-4:5.26.3-421.el8.ML.1.x86_64
  perl-parent-1:0.237-1.el8.noarch
  perl-podlators-4.11-1.el8.noarch
  perl-threads-1:2.21-2.el8.x86_64
  perl-threads-shared-1.58-2.el8.x86_64
  rsync-3.1.3-19.el8.1.x86_64
  socat-1.7.4.1-1.el8.x86_64

完了しました!
[root@ml86 ~]#
[root@ml86 ~]# systemctl start mariadb
[root@ml86 ~]# systemctl enable mariadb
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /usr/lib/systemd/system/mariadb.service.
[root@ml86 ~]# systemctl status mariadb
● mariadb.service - MariaDB 10.10.3 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
           mqmigrated-from-my.cnf-settings.conf
   Active: active (running) since Fri 2023-03-17 00:34:58 EDT; 8s ago
     Docs: man:mariadbd(8)
           https://mariadb.com/kb/en/library/systemd/
 Main PID: 12530 (mariadbd)
   Status: "Taking your SQL requests now..."
    Tasks: 12 (limit: 10942)
   Memory: 105.8M
   CGroup: /system.slice/mariadb.service
           mq12530 /usr/sbin/mariadbd

 3月 17 00:34:57 ml86.localdomain mariadbd[12530]: 2023-03-17  0:34:57 0 [Note] InnoDB: File './ibtmp1'>
 3月 17 00:34:57 ml86.localdomain mariadbd[12530]: 2023-03-17  0:34:57 0 [Note] InnoDB: log sequence nu>
 3月 17 00:34:57 ml86.localdomain mariadbd[12530]: 2023-03-17  0:34:57 0 [Note] Plugin 'FEEDBACK' is di>
 3月 17 00:34:57 ml86.localdomain mariadbd[12530]: 2023-03-17  0:34:57 0 [Note] InnoDB: Loading buffer >
 3月 17 00:34:57 ml86.localdomain mariadbd[12530]: 2023-03-17  0:34:57 0 [Note] InnoDB: Buffer pool(s) >
 3月 17 00:34:57 ml86.localdomain mariadbd[12530]: 2023-03-17  0:34:57 0 [Note] Server socket created o>
 3月 17 00:34:57 ml86.localdomain mariadbd[12530]: 2023-03-17  0:34:57 0 [Note] Server socket created o>
 3月 17 00:34:57 ml86.localdomain mariadbd[12530]: 2023-03-17  0:34:57 0 [Note] /usr/sbin/mariadbd: rea>
 3月 17 00:34:57 ml86.localdomain mariadbd[12530]: Version: '10.10.3-MariaDB'  socket: '/var/lib/mysql/>
 3月 17 00:34:58 ml86.localdomain systemd[1]: Started MariaDB 10.10.3 database server.
[root@ml86 ~]#
[root@ml86 ~]#
[root@ml86 ~]# dnf module install -y php:7.4
メタデータの期限切れの最終確認: 0:02:10 時間前の 2023年03月17日 00時33分08秒 に実施しました。
依存関係が解決しました。
========================================================================================================
 パッケージ          Arch      バージョン                                   リポジトリー          サイズ
========================================================================================================
group/moduleパッケージをインストール:
 php-cli             x86_64    7.4.30-1.module+el8+1550+0007539f            8-latest-AppStream    3.1 M
 php-common          x86_64    7.4.30-1.module+el8+1550+0007539f            8-latest-AppStream    705 k
 php-fpm             x86_64    7.4.30-1.module+el8+1550+0007539f            8-latest-AppStream    1.6 M
 php-json            x86_64    7.4.30-1.module+el8+1550+0007539f            8-latest-AppStream     73 k
 php-mbstring        x86_64    7.4.30-1.module+el8+1550+0007539f            8-latest-AppStream    483 k
 php-xml             x86_64    7.4.30-1.module+el8+1550+0007539f            8-latest-AppStream    173 k
依存関係のインストール:
 httpd-filesystem    noarch    2.4.37-51.module+el8+1586+278f7828.1.ML.1    8-latest-AppStream     41 k
 libxslt             x86_64    1.1.32-6.el8                                 8-latest-BaseOS       248 k
 nginx-filesystem    noarch    1:1.14.1-9.0.1.module+el8+67+e30417db        8-latest-AppStream     23 k
 oniguruma           x86_64    6.8.2-2.el8                                  8-latest-AppStream    186 k
モジュールプロファイルのインストール中:
 php/common
モジュールストリームの有効化中:
 httpd                         2.4
 nginx                         1.14
 php                           7.4

トランザクションの概要
========================================================================================================
インストール  10 パッケージ

ダウンロードサイズの合計: 6.6 M
インストール後のサイズ: 28 M
パッケージのダウンロード:
(1/10): httpd-filesystem-2.4.37-51.module+el8+1586+278f7828.1.ML.1.noar 553 kB/s |  41 kB     00:00
(2/10): nginx-filesystem-1.14.1-9.0.1.module+el8+67+e30417db.noarch.rpm 258 kB/s |  23 kB     00:00
(3/10): libxslt-1.1.32-6.el8.x86_64.rpm                                 2.0 MB/s | 248 kB     00:00
(4/10): oniguruma-6.8.2-2.el8.x86_64.rpm                                1.6 MB/s | 186 kB     00:00
(5/10): php-cli-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm            5.9 MB/s | 3.1 MB     00:00
(6/10): php-fpm-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm            3.5 MB/s | 1.6 MB     00:00
(7/10): php-json-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm           1.3 MB/s |  73 kB     00:00
(8/10): php-xml-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm            2.2 MB/s | 173 kB     00:00
(9/10): php-common-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm         1.1 MB/s | 705 kB     00:00
(10/10): php-mbstring-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm      3.7 MB/s | 483 kB     00:00
--------------------------------------------------------------------------------------------------------
合計                                                                    7.3 MB/s | 6.6 MB     00:00
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
  準備             :                                                                                1/1
  インストール中   : php-common-7.4.30-1.module+el8+1550+0007539f.x86_64                           1/10
  インストール中   : oniguruma-6.8.2-2.el8.x86_64                                                  2/10
  scriptletの実行中: oniguruma-6.8.2-2.el8.x86_64                                                  2/10
  scriptletの実行中: nginx-filesystem-1:1.14.1-9.0.1.module+el8+67+e30417db.noarch                 3/10
  インストール中   : nginx-filesystem-1:1.14.1-9.0.1.module+el8+67+e30417db.noarch                 3/10
  scriptletの実行中: httpd-filesystem-2.4.37-51.module+el8+1586+278f7828.1.ML.1.noarch             4/10
  インストール中   : httpd-filesystem-2.4.37-51.module+el8+1586+278f7828.1.ML.1.noarch             4/10
  インストール中   : libxslt-1.1.32-6.el8.x86_64                                                   5/10
  インストール中   : php-xml-7.4.30-1.module+el8+1550+0007539f.x86_64                              6/10
  インストール中   : php-fpm-7.4.30-1.module+el8+1550+0007539f.x86_64                              7/10
  scriptletの実行中: php-fpm-7.4.30-1.module+el8+1550+0007539f.x86_64                              7/10
  インストール中   : php-mbstring-7.4.30-1.module+el8+1550+0007539f.x86_64                         8/10
  インストール中   : php-cli-7.4.30-1.module+el8+1550+0007539f.x86_64                              9/10
  インストール中   : php-json-7.4.30-1.module+el8+1550+0007539f.x86_64                            10/10
  scriptletの実行中: php-json-7.4.30-1.module+el8+1550+0007539f.x86_64                            10/10
  scriptletの実行中: php-fpm-7.4.30-1.module+el8+1550+0007539f.x86_64                             10/10
  検証             : libxslt-1.1.32-6.el8.x86_64                                                   1/10
  検証             : httpd-filesystem-2.4.37-51.module+el8+1586+278f7828.1.ML.1.noarch             2/10
  検証             : nginx-filesystem-1:1.14.1-9.0.1.module+el8+67+e30417db.noarch                 3/10
  検証             : oniguruma-6.8.2-2.el8.x86_64                                                  4/10
  検証             : php-cli-7.4.30-1.module+el8+1550+0007539f.x86_64                              5/10
  検証             : php-common-7.4.30-1.module+el8+1550+0007539f.x86_64                           6/10
  検証             : php-fpm-7.4.30-1.module+el8+1550+0007539f.x86_64                              7/10
  検証             : php-json-7.4.30-1.module+el8+1550+0007539f.x86_64                             8/10
  検証             : php-mbstring-7.4.30-1.module+el8+1550+0007539f.x86_64                         9/10
  検証             : php-xml-7.4.30-1.module+el8+1550+0007539f.x86_64                             10/10

インストール済み:
  httpd-filesystem-2.4.37-51.module+el8+1586+278f7828.1.ML.1.noarch
  libxslt-1.1.32-6.el8.x86_64
  nginx-filesystem-1:1.14.1-9.0.1.module+el8+67+e30417db.noarch
  oniguruma-6.8.2-2.el8.x86_64
  php-cli-7.4.30-1.module+el8+1550+0007539f.x86_64
  php-common-7.4.30-1.module+el8+1550+0007539f.x86_64
  php-fpm-7.4.30-1.module+el8+1550+0007539f.x86_64
  php-json-7.4.30-1.module+el8+1550+0007539f.x86_64
  php-mbstring-7.4.30-1.module+el8+1550+0007539f.x86_64
  php-xml-7.4.30-1.module+el8+1550+0007539f.x86_64

完了しました!
[root@ml86 ~]#
[root@ml86 ~]#
[root@ml86 ~]# rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-4.el8.noarch.rpm
https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-4.el8.noarch.rpm を取得中
警告: /var/tmp/rpm-tmp.27ty2J: ヘッダー V4 RSA/SHA512 Signature、鍵 ID a14fe591: NOKEY
Verifying...                          ################################# [100%]
準備しています...              ################################# [100%]
更新中 / インストール中...
   1:zabbix-release-6.0-4.el8         ################################# [100%]
[root@ml86 ~]#
[root@ml86 ~]# dnf clean all
24 ファイルが削除されました
[root@ml86 ~]#
[root@ml86 ~]# dnf install -y zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts
 zabbix-selinux-policy zabbix-agent
MariaDB                                                                 2.0 MB/s | 673 kB     00:00
8-latest-BaseOS                                                         9.8 MB/s |  37 MB     00:03
8-latest-AppStream                                                       10 MB/s |  44 MB     00:04
Zabbix Official Repository - x86_64                                     150 kB/s | 199 kB     00:01
Zabbix Official Repository (non-supported) - x86_64                     1.2 kB/s | 1.2 kB     00:00
Zabbix Official Repository (Agent2 Plugins) - x86_64                    1.7 kB/s | 1.7 kB     00:00
依存関係が解決しました。
========================================================================================================
 パッケージ               Arch   バージョン                                  リポジトリー         サイズ
========================================================================================================
インストール:
 zabbix-agent             x86_64 6.0.14-release1.el8                         zabbix               553 k
 zabbix-apache-conf       noarch 6.0.14-release1.el8                         zabbix                25 k
 zabbix-selinux-policy    x86_64 6.0.14-release1.el8                         zabbix               294 k
 zabbix-server-mysql      x86_64 6.0.14-release1.el8                         zabbix               1.7 M
 zabbix-sql-scripts       noarch 6.0.14-release1.el8                         zabbix               7.3 M
 zabbix-web-mysql         noarch 6.0.14-release1.el8                         zabbix                24 k
依存関係のインストール:
 OpenIPMI-libs            x86_64 2.0.31-3.el8                                8-latest-BaseOS      508 k
 apr                      x86_64 1.6.3-12.el8                                8-latest-AppStream   128 k
 apr-util                 x86_64 1.6.1-6.el8                                 8-latest-AppStream   104 k
 dejavu-fonts-common      noarch 2.35-7.el8                                  8-latest-BaseOS       73 k
 dejavu-sans-fonts        noarch 2.35-7.el8                                  8-latest-BaseOS      1.6 M
 fontconfig               x86_64 2.13.1-4.el8                                8-latest-BaseOS      273 k
 fontpackages-filesystem  noarch 1.44-22.el8                                 8-latest-BaseOS       15 k
 fping                    x86_64 3.16-1.el8                                  zabbix-non-supported  51 k
 gd                       x86_64 2.2.5-7.el8                                 8-latest-AppStream   143 k
 httpd                    x86_64 2.4.37-51.module+el8+1586+278f7828.1.ML.1   8-latest-AppStream   1.4 M
 httpd-tools              x86_64 2.4.37-51.module+el8+1586+278f7828.1.ML.1   8-latest-AppStream   109 k
 jbigkit-libs             x86_64 2.1-14.el8                                  8-latest-AppStream    54 k
 libX11                   x86_64 1.6.8-5.el8                                 8-latest-AppStream   610 k
 libX11-common            noarch 1.6.8-5.el8                                 8-latest-AppStream   157 k
 libXau                   x86_64 1.0.9-3.el8                                 8-latest-AppStream    36 k
 libXpm                   x86_64 3.5.12-9.el8                                8-latest-AppStream    57 k
 libjpeg-turbo            x86_64 1.5.3-12.el8                                8-latest-AppStream   156 k
 libtiff                  x86_64 4.0.9-26.el8                                8-latest-AppStream   188 k
 libtool-ltdl             x86_64 2.4.6-25.el8                                8-latest-BaseOS       57 k
 libwebp                  x86_64 1.0.0-5.el8                                 8-latest-AppStream   271 k
 libxcb                   x86_64 1.13.1-1.el8                                8-latest-AppStream   228 k
 mailcap                  noarch 2.1.48-3.el8                                8-latest-BaseOS       38 k
 miraclelinux-logos-httpd noarch 84.4-3.el8                                  8-latest-BaseOS       12 k
 mod_http2                x86_64 1.15.7-5.module+el8+1586+278f7828           8-latest-AppStream   153 k
 net-snmp-libs            x86_64 1:5.8-25.el8.1                              8-latest-BaseOS      826 k
 php-bcmath               x86_64 7.4.30-1.module+el8+1550+0007539f           8-latest-AppStream    79 k
 php-gd                   x86_64 7.4.30-1.module+el8+1550+0007539f           8-latest-AppStream    84 k
 php-ldap                 x86_64 7.4.30-1.module+el8+1550+0007539f           8-latest-AppStream    85 k
 php-mysqlnd              x86_64 7.4.30-1.module+el8+1550+0007539f           8-latest-AppStream   192 k
 php-pdo                  x86_64 7.4.30-1.module+el8+1550+0007539f           8-latest-AppStream   122 k
 unixODBC                 x86_64 2.3.7-1.el8                                 8-latest-AppStream   461 k
 zabbix-web               noarch 6.0.14-release1.el8                         zabbix               8.1 M
 zabbix-web-deps          noarch 6.0.14-release1.el8                         zabbix                25 k
弱い依存関係のインストール:
 apr-util-bdb             x86_64 1.6.1-6.el8                                 8-latest-AppStream    23 k
 apr-util-openssl         x86_64 1.6.1-6.el8                                 8-latest-AppStream    26 k

トランザクションの概要
========================================================================================================
インストール  41 パッケージ

ダウンロードサイズの合計: 26 M
インストール後のサイズ: 80 M
パッケージのダウンロード:
(1/41): dejavu-fonts-common-2.35-7.el8.noarch.rpm                       383 kB/s |  73 kB     00:00
(2/41): OpenIPMI-libs-2.0.31-3.el8.x86_64.rpm                           1.9 MB/s | 508 kB     00:00
(3/41): fontpackages-filesystem-1.44-22.el8.noarch.rpm                  244 kB/s |  15 kB     00:00
(4/41): fontconfig-2.13.1-4.el8.x86_64.rpm                              1.7 MB/s | 273 kB     00:00
(5/41): dejavu-sans-fonts-2.35-7.el8.noarch.rpm                         4.2 MB/s | 1.6 MB     00:00
(6/41): mailcap-2.1.48-3.el8.noarch.rpm                                 1.1 MB/s |  38 kB     00:00
(7/41): libtool-ltdl-2.4.6-25.el8.x86_64.rpm                            901 kB/s |  57 kB     00:00
(8/41): miraclelinux-logos-httpd-84.4-3.el8.noarch.rpm                  206 kB/s |  12 kB     00:00
(9/41): apr-1.6.3-12.el8.x86_64.rpm                                     2.2 MB/s | 128 kB     00:00
(10/41): apr-util-bdb-1.6.1-6.el8.x86_64.rpm                            382 kB/s |  23 kB     00:00
(11/41): apr-util-1.6.1-6.el8.x86_64.rpm                                1.3 MB/s | 104 kB     00:00
(12/41): net-snmp-libs-5.8-25.el8.1.x86_64.rpm                          5.4 MB/s | 826 kB     00:00
(13/41): apr-util-openssl-1.6.1-6.el8.x86_64.rpm                        951 kB/s |  26 kB     00:00
(14/41): gd-2.2.5-7.el8.x86_64.rpm                                      1.6 MB/s | 143 kB     00:00
(15/41): httpd-tools-2.4.37-51.module+el8+1586+278f7828.1.ML.1.x86_64.r 1.4 MB/s | 109 kB     00:00
(16/41): jbigkit-libs-2.1-14.el8.x86_64.rpm                             1.1 MB/s |  54 kB     00:00
(17/41): libX11-1.6.8-5.el8.x86_64.rpm                                  3.5 MB/s | 610 kB     00:00
(18/41): httpd-2.4.37-51.module+el8+1586+278f7828.1.ML.1.x86_64.rpm     4.9 MB/s | 1.4 MB     00:00
(19/41): libXpm-3.5.12-9.el8.x86_64.rpm                                 2.8 MB/s |  57 kB     00:00
(20/41): libXau-1.0.9-3.el8.x86_64.rpm                                  467 kB/s |  36 kB     00:00
(21/41): libjpeg-turbo-1.5.3-12.el8.x86_64.rpm                          2.9 MB/s | 156 kB     00:00
(22/41): libtiff-4.0.9-26.el8.x86_64.rpm                                3.1 MB/s | 188 kB     00:00
(23/41): libwebp-1.0.0-5.el8.x86_64.rpm                                 4.7 MB/s | 271 kB     00:00
(24/41): mod_http2-1.15.7-5.module+el8+1586+278f7828.x86_64.rpm         2.9 MB/s | 153 kB     00:00
(25/41): libX11-common-1.6.8-5.el8.noarch.rpm                           433 kB/s | 157 kB     00:00
(26/41): libxcb-1.13.1-1.el8.x86_64.rpm                                 2.8 MB/s | 228 kB     00:00
(27/41): php-gd-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm            3.2 MB/s |  84 kB     00:00
(28/41): php-bcmath-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm        1.7 MB/s |  79 kB     00:00
(29/41): php-ldap-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm          2.2 MB/s |  85 kB     00:00
(30/41): php-mysqlnd-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm       4.7 MB/s | 192 kB     00:00
(31/41): php-pdo-7.4.30-1.module+el8+1550+0007539f.x86_64.rpm           2.3 MB/s | 122 kB     00:00
(32/41): unixODBC-2.3.7-1.el8.x86_64.rpm                                6.2 MB/s | 461 kB     00:00
(33/41): zabbix-apache-conf-6.0.14-release1.el8.noarch.rpm               42 kB/s |  25 kB     00:00
(34/41): zabbix-selinux-policy-6.0.14-release1.el8.x86_64.rpm           309 kB/s | 294 kB     00:00
(35/41): zabbix-agent-6.0.14-release1.el8.x86_64.rpm                    489 kB/s | 553 kB     00:01
(36/41): zabbix-server-mysql-6.0.14-release1.el8.x86_64.rpm             1.3 MB/s | 1.7 MB     00:01
(37/41): zabbix-web-deps-6.0.14-release1.el8.noarch.rpm                 193 kB/s |  25 kB     00:00
(38/41): zabbix-web-mysql-6.0.14-release1.el8.noarch.rpm                192 kB/s |  24 kB     00:00
(39/41): fping-3.16-1.el8.x86_64.rpm                                    398 kB/s |  51 kB     00:00
(40/41): zabbix-sql-scripts-6.0.14-release1.el8.noarch.rpm              2.6 MB/s | 7.3 MB     00:02
(41/41): zabbix-web-6.0.14-release1.el8.noarch.rpm                      1.2 MB/s | 8.1 MB     00:06
--------------------------------------------------------------------------------------------------------
合計                                                                    2.8 MB/s |  26 MB     00:09
Zabbix Official Repository - x86_64                                     1.5 MB/s | 1.7 kB     00:00
GPG 鍵 0xA14FE591 をインポート中:
 Userid     : "Zabbix LLC <packager@zabbix.com>"
 Fingerprint: A184 8F53 52D0 22B9 471D 83D0 082A B56B A14F E591
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
鍵のインポートに成功しました
Zabbix Official Repository (non-supported) - x86_64                     1.1 MB/s | 1.3 kB     00:00
GPG 鍵 0x79EA5ED4 をインポート中:
 Userid     : "Zabbix SIA <packager@zabbix.com>"
 Fingerprint: FBAB D5FB 2025 5ECA B22E E194 D13D 58E4 79EA 5ED4
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
鍵のインポートに成功しました
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
  準備             :                                                                                1/1
  インストール中   : apr-1.6.3-12.el8.x86_64                                                       1/41
  scriptletの実行中: apr-1.6.3-12.el8.x86_64                                                       1/41
  インストール中   : apr-util-bdb-1.6.1-6.el8.x86_64                                               2/41
  インストール中   : apr-util-openssl-1.6.1-6.el8.x86_64                                           3/41
  インストール中   : apr-util-1.6.1-6.el8.x86_64                                                   4/41
  scriptletの実行中: apr-util-1.6.1-6.el8.x86_64                                                   4/41
  インストール中   : libjpeg-turbo-1.5.3-12.el8.x86_64                                             5/41
  インストール中   : net-snmp-libs-1:5.8-25.el8.1.x86_64                                           6/41
  インストール中   : fontpackages-filesystem-1.44-22.el8.noarch                                    7/41
  インストール中   : dejavu-fonts-common-2.35-7.el8.noarch                                         8/41
  インストール中   : dejavu-sans-fonts-2.35-7.el8.noarch                                           9/41
  インストール中   : zabbix-web-6.0.14-release1.el8.noarch                                        10/41
  scriptletの実行中: zabbix-web-6.0.14-release1.el8.noarch                                        10/41
  インストール中   : fontconfig-2.13.1-4.el8.x86_64                                               11/41
  scriptletの実行中: fontconfig-2.13.1-4.el8.x86_64                                               11/41
  インストール中   : OpenIPMI-libs-2.0.31-3.el8.x86_64                                            12/41
  インストール中   : httpd-tools-2.4.37-51.module+el8+1586+278f7828.1.ML.1.x86_64                 13/41
  インストール中   : fping-3.16-1.el8.x86_64                                                      14/41
  インストール中   : php-pdo-7.4.30-1.module+el8+1550+0007539f.x86_64                             15/41
  インストール中   : php-mysqlnd-7.4.30-1.module+el8+1550+0007539f.x86_64                         16/41
  インストール中   : php-ldap-7.4.30-1.module+el8+1550+0007539f.x86_64                            17/41
  インストール中   : php-bcmath-7.4.30-1.module+el8+1550+0007539f.x86_64                          18/41
  インストール中   : libwebp-1.0.0-5.el8.x86_64                                                   19/41
  インストール中   : libXau-1.0.9-3.el8.x86_64                                                    20/41
  インストール中   : libxcb-1.13.1-1.el8.x86_64                                                   21/41
  インストール中   : libX11-common-1.6.8-5.el8.noarch                                             22/41
  インストール中   : libX11-1.6.8-5.el8.x86_64                                                    23/41
  インストール中   : libXpm-3.5.12-9.el8.x86_64                                                   24/41
  インストール中   : jbigkit-libs-2.1-14.el8.x86_64                                               25/41
  scriptletの実行中: jbigkit-libs-2.1-14.el8.x86_64                                               25/41
  インストール中   : libtiff-4.0.9-26.el8.x86_64                                                  26/41
  インストール中   : gd-2.2.5-7.el8.x86_64                                                        27/41
  scriptletの実行中: gd-2.2.5-7.el8.x86_64                                                        27/41
  インストール中   : php-gd-7.4.30-1.module+el8+1550+0007539f.x86_64                              28/41
  インストール中   : zabbix-web-deps-6.0.14-release1.el8.noarch                                   29/41
  インストール中   : zabbix-web-mysql-6.0.14-release1.el8.noarch                                  30/41
  インストール中   : miraclelinux-logos-httpd-84.4-3.el8.noarch                                   31/41
  インストール中   : mailcap-2.1.48-3.el8.noarch                                                  32/41
  インストール中   : mod_http2-1.15.7-5.module+el8+1586+278f7828.x86_64                           33/41
  インストール中   : httpd-2.4.37-51.module+el8+1586+278f7828.1.ML.1.x86_64                       34/41
  scriptletの実行中: httpd-2.4.37-51.module+el8+1586+278f7828.1.ML.1.x86_64                       34/41
  インストール中   : libtool-ltdl-2.4.6-25.el8.x86_64                                             35/41
  scriptletの実行中: libtool-ltdl-2.4.6-25.el8.x86_64                                             35/41
  インストール中   : unixODBC-2.3.7-1.el8.x86_64                                                  36/41
  scriptletの実行中: unixODBC-2.3.7-1.el8.x86_64                                                  36/41
  scriptletの実行中: zabbix-server-mysql-6.0.14-release1.el8.x86_64                               37/41
  インストール中   : zabbix-server-mysql-6.0.14-release1.el8.x86_64                               37/41
  scriptletの実行中: zabbix-server-mysql-6.0.14-release1.el8.x86_64                               37/41
  インストール中   : zabbix-apache-conf-6.0.14-release1.el8.noarch                                38/41
  scriptletの実行中: zabbix-apache-conf-6.0.14-release1.el8.noarch                                38/41
  インストール中   : zabbix-sql-scripts-6.0.14-release1.el8.noarch                                39/41
  インストール中   : zabbix-selinux-policy-6.0.14-release1.el8.x86_64                             40/41
  scriptletの実行中: zabbix-selinux-policy-6.0.14-release1.el8.x86_64                             40/41
  scriptletの実行中: zabbix-agent-6.0.14-release1.el8.x86_64                                      41/41
  インストール中   : zabbix-agent-6.0.14-release1.el8.x86_64                                      41/41
  scriptletの実行中: zabbix-agent-6.0.14-release1.el8.x86_64                                      41/41
  scriptletの実行中: httpd-2.4.37-51.module+el8+1586+278f7828.1.ML.1.x86_64                       41/41
  scriptletの実行中: zabbix-agent-6.0.14-release1.el8.x86_64                                      41/41
  scriptletの実行中: fontconfig-2.13.1-4.el8.x86_64                                               41/41
  検証             : OpenIPMI-libs-2.0.31-3.el8.x86_64                                             1/41
  検証             : dejavu-fonts-common-2.35-7.el8.noarch                                         2/41
  検証             : dejavu-sans-fonts-2.35-7.el8.noarch                                           3/41
  検証             : fontconfig-2.13.1-4.el8.x86_64                                                4/41
  検証             : fontpackages-filesystem-1.44-22.el8.noarch                                    5/41
  検証             : libtool-ltdl-2.4.6-25.el8.x86_64                                              6/41
  検証             : mailcap-2.1.48-3.el8.noarch                                                   7/41
  検証             : miraclelinux-logos-httpd-84.4-3.el8.noarch                                    8/41
  検証             : net-snmp-libs-1:5.8-25.el8.1.x86_64                                           9/41
  検証             : apr-1.6.3-12.el8.x86_64                                                      10/41
  検証             : apr-util-1.6.1-6.el8.x86_64                                                  11/41
  検証             : apr-util-bdb-1.6.1-6.el8.x86_64                                              12/41
  検証             : apr-util-openssl-1.6.1-6.el8.x86_64                                          13/41
  検証             : gd-2.2.5-7.el8.x86_64                                                        14/41
  検証             : httpd-2.4.37-51.module+el8+1586+278f7828.1.ML.1.x86_64                       15/41
  検証             : httpd-tools-2.4.37-51.module+el8+1586+278f7828.1.ML.1.x86_64                 16/41
  検証             : jbigkit-libs-2.1-14.el8.x86_64                                               17/41
  検証             : libX11-1.6.8-5.el8.x86_64                                                    18/41
  検証             : libX11-common-1.6.8-5.el8.noarch                                             19/41
  検証             : libXau-1.0.9-3.el8.x86_64                                                    20/41
  検証             : libXpm-3.5.12-9.el8.x86_64                                                   21/41
  検証             : libjpeg-turbo-1.5.3-12.el8.x86_64                                            22/41
  検証             : libtiff-4.0.9-26.el8.x86_64                                                  23/41
  検証             : libwebp-1.0.0-5.el8.x86_64                                                   24/41
  検証             : libxcb-1.13.1-1.el8.x86_64                                                   25/41
  検証             : mod_http2-1.15.7-5.module+el8+1586+278f7828.x86_64                           26/41
  検証             : php-bcmath-7.4.30-1.module+el8+1550+0007539f.x86_64                          27/41
  検証             : php-gd-7.4.30-1.module+el8+1550+0007539f.x86_64                              28/41
  検証             : php-ldap-7.4.30-1.module+el8+1550+0007539f.x86_64                            29/41
  検証             : php-mysqlnd-7.4.30-1.module+el8+1550+0007539f.x86_64                         30/41
  検証             : php-pdo-7.4.30-1.module+el8+1550+0007539f.x86_64                             31/41
  検証             : unixODBC-2.3.7-1.el8.x86_64                                                  32/41
  検証             : zabbix-agent-6.0.14-release1.el8.x86_64                                      33/41
  検証             : zabbix-apache-conf-6.0.14-release1.el8.noarch                                34/41
  検証             : zabbix-selinux-policy-6.0.14-release1.el8.x86_64                             35/41
  検証             : zabbix-server-mysql-6.0.14-release1.el8.x86_64                               36/41
  検証             : zabbix-sql-scripts-6.0.14-release1.el8.noarch                                37/41
  検証             : zabbix-web-6.0.14-release1.el8.noarch                                        38/41
  検証             : zabbix-web-deps-6.0.14-release1.el8.noarch                                   39/41
  検証             : zabbix-web-mysql-6.0.14-release1.el8.noarch                                  40/41
  検証             : fping-3.16-1.el8.x86_64                                                      41/41

インストール済み:
  OpenIPMI-libs-2.0.31-3.el8.x86_64
  apr-1.6.3-12.el8.x86_64
  apr-util-1.6.1-6.el8.x86_64
  apr-util-bdb-1.6.1-6.el8.x86_64
  apr-util-openssl-1.6.1-6.el8.x86_64
  dejavu-fonts-common-2.35-7.el8.noarch
  dejavu-sans-fonts-2.35-7.el8.noarch
  fontconfig-2.13.1-4.el8.x86_64
  fontpackages-filesystem-1.44-22.el8.noarch
  fping-3.16-1.el8.x86_64
  gd-2.2.5-7.el8.x86_64
  httpd-2.4.37-51.module+el8+1586+278f7828.1.ML.1.x86_64
  httpd-tools-2.4.37-51.module+el8+1586+278f7828.1.ML.1.x86_64
  jbigkit-libs-2.1-14.el8.x86_64
  libX11-1.6.8-5.el8.x86_64
  libX11-common-1.6.8-5.el8.noarch
  libXau-1.0.9-3.el8.x86_64
  libXpm-3.5.12-9.el8.x86_64
  libjpeg-turbo-1.5.3-12.el8.x86_64
  libtiff-4.0.9-26.el8.x86_64
  libtool-ltdl-2.4.6-25.el8.x86_64
  libwebp-1.0.0-5.el8.x86_64
  libxcb-1.13.1-1.el8.x86_64
  mailcap-2.1.48-3.el8.noarch
  miraclelinux-logos-httpd-84.4-3.el8.noarch
  mod_http2-1.15.7-5.module+el8+1586+278f7828.x86_64
  net-snmp-libs-1:5.8-25.el8.1.x86_64
  php-bcmath-7.4.30-1.module+el8+1550+0007539f.x86_64
  php-gd-7.4.30-1.module+el8+1550+0007539f.x86_64
  php-ldap-7.4.30-1.module+el8+1550+0007539f.x86_64
  php-mysqlnd-7.4.30-1.module+el8+1550+0007539f.x86_64
  php-pdo-7.4.30-1.module+el8+1550+0007539f.x86_64
  unixODBC-2.3.7-1.el8.x86_64
  zabbix-agent-6.0.14-release1.el8.x86_64
  zabbix-apache-conf-6.0.14-release1.el8.noarch
  zabbix-selinux-policy-6.0.14-release1.el8.x86_64
  zabbix-server-mysql-6.0.14-release1.el8.x86_64
  zabbix-sql-scripts-6.0.14-release1.el8.noarch
  zabbix-web-6.0.14-release1.el8.noarch
  zabbix-web-deps-6.0.14-release1.el8.noarch
  zabbix-web-mysql-6.0.14-release1.el8.noarch

完了しました!
[root@ml86 ~]#
[root@ml86 ~]# mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.10.3-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

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

MariaDB [(none)]> create database zabbix character set utf8mb4 collate utf8mb4_bin;
Query OK, 1 row affected (0.020 sec)

MariaDB [(none)]>
MariaDB [(none)]> create user zabbix@localhost identified by 'password';
Query OK, 0 rows affected (0.023 sec)

MariaDB [(none)]>
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost;
Query OK, 0 rows affected (0.007 sec)

MariaDB [(none)]>
MariaDB [(none)]> set global log_bin_trust_function_creators = 1;
Query OK, 0 rows affected (0.004 sec)

MariaDB [(none)]>
MariaDB [(none)]> quit;
Bye
[root@ml86 ~]#
[root@ml86 ~]# zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
Enter password:
[root@ml86 ~]#
[root@ml86 ~]# mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 10.10.3-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

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

MariaDB [(none)]> set global log_bin_trust_function_creators = 0;
Query OK, 0 rows affected (0.000 sec)

MariaDB [(none)]>
MariaDB [(none)]> quit;
Bye
[root@ml86 ~]#
[root@ml86 ~]# cat /etc/zabbix/zabbix_server.conf |grep DBPassword
### Option: DBPassword
# DBPassword=
DBPassword=password
#       This option can only be used if DBUser and DBPassword are not specified.
[root@ml86 ~]#
[root@ml86 ~]#
[root@ml86 ~]# systemctl restart zabbix-server zabbix-agent httpd php-fpm
[root@ml86 ~]#
[root@ml86 ~]# systemctl enable zabbix-server zabbix-agent httpd php-fpm
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-server.service → /usr/lib/systemd/system/zabbix-server.service.
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent.service → /usr/lib/systemd/system/zabbix-agent.service.
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /usr/lib/systemd/system/php-fpm.service.
[root@ml86 ~]#
[root@ml86 ~]# cat /etc/zabbix/zabbix_agentd.conf |grep Host
### Option: Hostname
#       Value is acquired from HostnameItem if undefined.
# Hostname=
Hostname=Zabbix server
### Option: HostnameItem
#       Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
# HostnameItem=system.hostname
### Option: HostMetadata
#       Host metadata is used at host auto-registration process.
#       If not defined, value will be acquired from HostMetadataItem.
# HostMetadata=
### Option: HostMetadataItem
#       Host metadata is used at host auto-registration process.
#       This option is only used when HostMetadata is not defined.
# HostMetadataItem=
### Option: HostInterface
#       Host interface is used at host auto-registration process.
#       If not defined, value will be acquired from HostInterfaceItem.
# HostInterface=
### Option: HostInterfaceItem
#       Host interface is used at host auto-registration process.
#       This option is only used when HostInterface is not defined.
# HostInterfaceItem=
#       Aliases can be used in HostMetadataItem but not in HostnameItem parameters.
[root@ml86 ~]#
[root@ml86 ~]#
[root@ml86 ~]#