LinuCエヴァンジェリストの鯨井貴博@opensourcetechです。
今回は、CentOS7にZabbix 5.0 LTS(DBはPostgreSQL、Webサーバはnginx)を構築してみるつsもりでしたが、
途中で挫折し、apacheに切り替えた悲しい物語です。
のちのちの振り返りできるよう、未来の私へのプレゼントとも言えますw
なお、以下 のようにコンテナで簡単に作ることも出来ます。
https://www.opensourcetech.tokyo/entry/20200515/1589520605
一応、CentOS7の確認。最新のビルドです。
[root@zabbix5 ~]# cat /etc/centos-release CentOS Linux release 7.8.2003 (Core) [root@zabbix5 ~]# cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
構築手順としては、こちらにある通り進めていけばいいですが、nginxのインストールなど細かいところは自身で補完しながら実施する必要があります。
まず、Zabbixインストール用のyumレポジトリファイルを取得します。
rpmで直接取得してもいいし、ダウンロードしたあとrpmでインストールしてもOKです。
※今回は、なぜかどちらの方法でもダウンロードがされなかったので、別マシンでダウンロードしたものをscpで転送しましたがw
[root@zabbix5 ~]# cd /tmp [root@zabbix5 tmp]# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm を取得中
[root@zabbix5 tmp]# curl -O https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:01:22 --:--:-- 0^C [root@zabbix5 tmp]# ll 合計 20 -rwx------. 1 root root 836 6月 23 14:05 ks-script-YBV555 drwx------. 3 root root 17 6月 23 14:08 systemd-private-571df335f7c448c4a6543a9c2773ac48-chronyd.service-mGghaW -rw-------. 1 root root 0 6月 23 14:00 yum.log -rw-r--r--. 1 root root 14532 6月 23 17:48 zabbix-release-5.0-1.el7.noarch.rpm [root@zabbix5 tmp]# rpm -ivh zabbix-release-5.0-1.el7.noarch.rpm 警告: zabbix-release-5.0-1.el7.noarch.rpm: ヘッダー V4 RSA/SHA512 Signature、鍵 ID a14fe591: NOKEY 準備しています... ################################# [100%] 更新中 / インストール中... 1:zabbix-release-5.0-1.el7 ################################# [100%]
レポジトリファイルが追加されました。
[root@zabbix5 tmp]# ls /etc/yum.repos.d/ CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Sources.repo CentOS-fasttrack.repo zabbix.repo CentOS-CR.repo CentOS-Media.repo CentOS-Vault.repo CentOS-x86_64-kernel.repo [root@zabbix5 tmp]# cat -n /etc/yum.repos.d/zabbix.repo 1 [zabbix] 2 name=Zabbix Official Repository - $basearch 3 baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/ 4 enabled=1 5 gpgcheck=1 6 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 7 8 [zabbix-frontend] 9 name=Zabbix Official Repository frontend - $basearch 10 baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/frontend 11 enabled=0 12 gpgcheck=1 13 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 14 15 [zabbix-debuginfo] 16 name=Zabbix Official Repository debuginfo - $basearch 17 baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/debuginfo/ 18 enabled=0 19 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 20 gpgcheck=1 21 22 [zabbix-non-supported] 23 name=Zabbix Official Repository non-supported - $basearch 24 baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/ 25 enabled=1 26 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX 27 gpgcheck=1
yum情報のクリアで、保持するパッケージやキャッシュなどを削除。
[root@zabbix5 tmp]# yum clean all 読み込んだプラグイン:fastestmirror リポジトリーを清掃しています: base extras updates zabbix zabbix-non-supported
続いて、Zabbix-ServerとZabbix-Agentのインストール。
[root@zabbix5 tmp]# yum -y install zabbix-server-pgsql zabbix-agent 読み込んだプラグイン:fastestmirror Determining fastest mirrors * base: ftp-srv2.kddilabs.jp * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 zabbix | 2.9 kB 00:00:00 zabbix-non-supported | 951 B 00:00:00 (1/5): base/7/x86_64/group_gz | 153 kB 00:00:00 (2/5): extras/7/x86_64/primary_db | 194 kB 00:00:00 (3/5): updates/7/x86_64/primary_db | 2.1 MB 00:00:00 (4/5): zabbix/x86_64/primary_db | 19 kB 00:00:15 (5/5): base/7/x86_64/primary_db | 6.1 MB 00:00:16 zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:15 zabbix-non-supported 4/4 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ zabbix-agent.x86_64 0:5.0.1-1.el7 を インストール ---> パッケージ zabbix-server-pgsql.x86_64 0:5.0.1-1.el7 を インストール --> 依存性の処理をしています: fping のパッケージ: zabbix-server-pgsql-5.0.1-1.el7.x86_64 --> 依存性の処理をしています: libpq.so.5()(64bit) のパッケージ: zabbix-server-pgsql-5.0.1-1.el7.x86_64 --> 依存性の処理をしています: libnetsnmp.so.31()(64bit) のパッケージ: zabbix-server-pgsql-5.0.1-1.el7.x86_64 --> 依存性の処理をしています: libOpenIPMIposix.so.0()(64bit) のパッケージ: zabbix-server-pgsql-5.0.1-1.el7.x86_64 --> 依存性の処理をしています: libevent-2.0.so.5()(64bit) のパッケージ: zabbix-server-pgsql-5.0.1-1.el7.x86_64 --> 依存性の処理をしています: libOpenIPMI.so.0()(64bit) のパッケージ: zabbix-server-pgsql-5.0.1-1.el7.x86_64 --> 依存性の処理をしています: libodbc.so.2()(64bit) のパッケージ: zabbix-server-pgsql-5.0.1-1.el7.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ OpenIPMI-libs.x86_64 0:2.0.27-1.el7 を インストール --> 依存性の処理をしています: OpenIPMI-modalias = 2.0.27-1.el7 のパッケージ: OpenIPMI-libs-2.0.27-1.el7.x86_64 ---> パッケージ fping.x86_64 0:3.10-1.el7 を インストール ---> パッケージ libevent.x86_64 0:2.0.21-4.el7 を インストール ---> パッケージ net-snmp-libs.x86_64 1:5.7.2-48.el7_8 を インストール ---> パッケージ postgresql-libs.x86_64 0:9.2.24-4.el7_8 を インストール ---> パッケージ unixODBC.x86_64 0:2.3.1-14.el7 を インストール --> 依存性の処理をしています: libltdl.so.7()(64bit) のパッケージ: unixODBC-2.3.1-14.el7.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ OpenIPMI-modalias.x86_64 0:2.0.27-1.el7 を インストール --> 依存性の処理をしています: OpenIPMI のパッケージ: OpenIPMI-modalias-2.0.27-1.el7.x86_64 ---> パッケージ libtool-ltdl.x86_64 0:2.4.2-22.el7_3 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ OpenIPMI.x86_64 0:2.0.27-1.el7 を インストール --> 依存性解決を終了しました。 依存性を解決しました ====================================================================================================== Package アーキテクチャー バージョン リポジトリー 容量 ====================================================================================================== インストール中: zabbix-agent x86_64 5.0.1-1.el7 zabbix 442 k zabbix-server-pgsql x86_64 5.0.1-1.el7 zabbix 2.6 M 依存性関連でのインストールをします: OpenIPMI x86_64 2.0.27-1.el7 base 243 k OpenIPMI-libs x86_64 2.0.27-1.el7 base 523 k OpenIPMI-modalias x86_64 2.0.27-1.el7 base 16 k fping x86_64 3.10-1.el7 zabbix-non-supported 40 k libevent x86_64 2.0.21-4.el7 base 214 k libtool-ltdl x86_64 2.4.2-22.el7_3 base 49 k net-snmp-libs x86_64 1:5.7.2-48.el7_8 updates 751 k postgresql-libs x86_64 9.2.24-4.el7_8 updates 234 k unixODBC x86_64 2.3.1-14.el7 base 413 k トランザクションの要約 ====================================================================================================== インストール 2 パッケージ (+9 個の依存関係のパッケージ) 総ダウンロード容量: 5.4 M インストール容量: 16 M Downloading packages: 警告: /var/cache/yum/x86_64/7/base/packages/OpenIPMI-libs-2.0.27-1.el7.x86_64.rpm: ヘッダー V3 RSA/SHA256 Signature、鍵 ID f4a80eb5: NOKEY OpenIPMI-libs-2.0.27-1.el7.x86_64.rpm の公開鍵がインストールされていません (1/11): OpenIPMI-libs-2.0.27-1.el7.x86_64.rpm | 523 kB 00:00:00 (2/11): libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm | 49 kB 00:00:00 (3/11): libevent-2.0.21-4.el7.x86_64.rpm | 214 kB 00:00:00 postgresql-libs-9.2.24-4.el7_8.x86_64.rpm の公開鍵がインストールされていません (4/11): postgresql-libs-9.2.24-4.el7_8.x86_64.rpm | 234 kB 00:00:00 (5/11): unixODBC-2.3.1-14.el7.x86_64.rpm | 413 kB 00:00:00 (6/11): OpenIPMI-2.0.27-1.el7.x86_64.rpm | 243 kB 00:00:15 (7/11): OpenIPMI-modalias-2.0.27-1.el7.x86_64.rpm | 16 kB 00:00:15 (8/11): net-snmp-libs-5.7.2-48.el7_8.x86_64.rpm | 751 kB 00:00:15 警告: /var/cache/yum/x86_64/7/zabbix-non-supported/packages/fping-3.10-1.el7.x86_64.rpm: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 79ea5ed4: NOKEY fping-3.10-1.el7.x86_64.rpm の公開鍵がインストールされていません (9/11): fping-3.10-1.el7.x86_64.rpm | 40 kB 00:00:15 警告: /var/cache/yum/x86_64/7/zabbix/packages/zabbix-agent-5.0.1-1.el7.x86_64.rpm: ヘッダー V4 RSA/SHA512 Signature、鍵 ID a14fe591: NOKEY zabbix-agent-5.0.1-1.el7.x86_64.rpm の公開鍵がインストールされていません (10/11): zabbix-agent-5.0.1-1.el7.x86_64.rpm | 442 kB 00:00:16 (11/11): zabbix-server-pgsql-5.0.1-1.el7.x86_64.rpm | 2.6 MB 00:00:23 ------------------------------------------------------------------------------------------------------ 合計 141 kB/s | 5.4 MB 00:00:39 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX から鍵を取得中です。 Importing GPG key 0x79EA5ED4: Userid : "Zabbix SIA <packager@zabbix.com>" Fingerprint: fbab d5fb 2025 5eca b22e e194 d13d 58e4 79ea 5ed4 Package : zabbix-release-5.0-1.el7.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 から鍵を取得中です。 Importing GPG key 0xA14FE591: Userid : "Zabbix LLC <packager@zabbix.com>" Fingerprint: a184 8f53 52d0 22b9 471d 83d0 082a b56b a14f e591 Package : zabbix-release-5.0-1.el7.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 から鍵を取得中です。 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-8.2003.0.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction 警告: RPMDB は yum 以外で変更されました。 インストール中 : 1:net-snmp-libs-5.7.2-48.el7_8.x86_64 1/11 インストール中 : OpenIPMI-libs-2.0.27-1.el7.x86_64 2/11 インストール中 : OpenIPMI-2.0.27-1.el7.x86_64 3/11 インストール中 : OpenIPMI-modalias-2.0.27-1.el7.x86_64 4/11 インストール中 : postgresql-libs-9.2.24-4.el7_8.x86_64 5/11 インストール中 : libtool-ltdl-2.4.2-22.el7_3.x86_64 6/11 インストール中 : unixODBC-2.3.1-14.el7.x86_64 7/11 インストール中 : libevent-2.0.21-4.el7.x86_64 8/11 インストール中 : fping-3.10-1.el7.x86_64 9/11 インストール中 : zabbix-server-pgsql-5.0.1-1.el7.x86_64 10/11 インストール中 : zabbix-agent-5.0.1-1.el7.x86_64 11/11 WARNING: ipmi_devintf module isn't available. WARNING: ipmi_msghandler module isn't available. 検証中 : fping-3.10-1.el7.x86_64 1/11 検証中 : zabbix-server-pgsql-5.0.1-1.el7.x86_64 2/11 検証中 : libevent-2.0.21-4.el7.x86_64 3/11 検証中 : OpenIPMI-2.0.27-1.el7.x86_64 4/11 検証中 : libtool-ltdl-2.4.2-22.el7_3.x86_64 5/11 検証中 : unixODBC-2.3.1-14.el7.x86_64 6/11 検証中 : postgresql-libs-9.2.24-4.el7_8.x86_64 7/11 検証中 : OpenIPMI-libs-2.0.27-1.el7.x86_64 8/11 検証中 : 1:net-snmp-libs-5.7.2-48.el7_8.x86_64 9/11 検証中 : zabbix-agent-5.0.1-1.el7.x86_64 10/11 検証中 : OpenIPMI-modalias-2.0.27-1.el7.x86_64 11/11 インストール: zabbix-agent.x86_64 0:5.0.1-1.el7 zabbix-server-pgsql.x86_64 0:5.0.1-1.el7 依存性関連をインストールしました: OpenIPMI.x86_64 0:2.0.27-1.el7 OpenIPMI-libs.x86_64 0:2.0.27-1.el7 OpenIPMI-modalias.x86_64 0:2.0.27-1.el7 fping.x86_64 0:3.10-1.el7 libevent.x86_64 0:2.0.21-4.el7 libtool-ltdl.x86_64 0:2.4.2-22.el7_3 net-snmp-libs.x86_64 1:5.7.2-48.el7_8 postgresql-libs.x86_64 0:9.2.24-4.el7_8 unixODBC.x86_64 0:2.3.1-14.el7 完了しました! [root@zabbix5 tmp]# rpm -qa | grep zabbix zabbix-release-5.0-1.el7.noarch zabbix-agent-5.0.1-1.el7.x86_64 zabbix-server-pgsql-5.0.1-1.el7.x86_64
次は、Zabbixのフロントエンドをインストール。
まず、そのためのレポジトリファイルを追加します。
[root@zabbix5 tmp]# yum install centos-release-scl 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ centos-release-scl.noarch 0:2-3.el7.centos を インストール --> 依存性の処理をしています: centos-release-scl-rh のパッケージ: centos-release-scl-2-3.el7.centos.noarch --> トランザクションの確認を実行しています。 ---> パッケージ centos-release-scl-rh.noarch 0:2-3.el7.centos を インストール --> 依存性解決を終了しました。 依存性を解決しました ====================================================================================================== Package アーキテクチャー バージョン リポジトリー 容量 ====================================================================================================== インストール中: centos-release-scl noarch 2-3.el7.centos extras 12 k 依存性関連でのインストールをします: centos-release-scl-rh noarch 2-3.el7.centos extras 12 k トランザクションの要約 ====================================================================================================== インストール 1 パッケージ (+1 個の依存関係のパッケージ) 総ダウンロード容量: 24 k インストール容量: 39 k Is this ok [y/d/N]: y Downloading packages: (1/2): centos-release-scl-rh-2-3.el7.centos.noarch.rpm | 12 kB 00:00:00 (2/2): centos-release-scl-2-3.el7.centos.noarch.rpm | 12 kB 00:00:15 ------------------------------------------------------------------------------------------------------ 合計 1.6 kB/s | 24 kB 00:00:15 Running transaction check Running transaction test Transaction test succeeded Running transaction インストール中 : centos-release-scl-rh-2-3.el7.centos.noarch 1/2 インストール中 : centos-release-scl-2-3.el7.centos.noarch 2/2 検証中 : centos-release-scl-2-3.el7.centos.noarch 1/2 検証中 : centos-release-scl-rh-2-3.el7.centos.noarch 2/2 インストール: centos-release-scl.noarch 0:2-3.el7.centos 依存性関連をインストールしました: centos-release-scl-rh.noarch 0:2-3.el7.centos 完了しました! [root@zabbix5 tmp]# ls /etc/yum.repos.d/ CentOS-Base.repo CentOS-Media.repo CentOS-Sources.repo CentOS-x86_64-kernel.repo CentOS-CR.repo CentOS-SCLo-scl-rh.repo CentOS-Vault.repo zabbix.repo CentOS-Debuginfo.repo CentOS-SCLo-scl.repo CentOS-fasttrack.repo
zabbix.repo内のフロントエンドに関する部分を有効化(enabled=1)。
※以下の11行目です。
[root@zabbix5 tmp]# vi /etc/yum.repos.d/zabbix.repo [root@zabbix5 tmp]# cat -n /etc/yum.repos.d/zabbix.repo 1 [zabbix] 2 name=Zabbix Official Repository - $basearch 3 baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/ 4 enabled=1 5 gpgcheck=1 6 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 7 8 [zabbix-frontend] 9 name=Zabbix Official Repository frontend - $basearch 10 baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/frontend 11 enabled=1 12 gpgcheck=1 13 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 14 15 [zabbix-debuginfo] 16 name=Zabbix Official Repository debuginfo - $basearch 17 baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/debuginfo/ 18 enabled=0 19 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 20 gpgcheck=1 21 22 [zabbix-non-supported] 23 name=Zabbix Official Repository non-supported - $basearch 24 baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/ 25 enabled=1 26 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX 27 gpgcheck=1
CentOS-SCLo-scl-rh.repoも編集。
編集前
[root@zabbix5 tmp]# cat -n /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo 1 # CentOS-SCLo-rh.repo 2 # 3 # Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more 4 # information 5 6 [centos-sclo-rh] 7 name=CentOS-7 - SCLo rh 8 #baseurl=http://mirror.centos.org/centos/7/sclo/$basearch/rh/ 9 mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh 10 gpgcheck=1 11 enabled=1 12 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo 13 14 [centos-sclo-rh-testing] 15 name=CentOS-7 - SCLo rh Testing 16 baseurl=http://buildlogs.centos.org/centos/7/sclo/$basearch/rh/ 17 gpgcheck=0 18 enabled=0 19 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo 20 21 [centos-sclo-rh-source] 22 name=CentOS-7 - SCLo rh Sources 23 baseurl=http://vault.centos.org/centos/7/sclo/Source/rh/ 24 gpgcheck=1 25 enabled=0 26 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo 27 28 [centos-sclo-rh-debuginfo] 29 name=CentOS-7 - SCLo rh Debuginfo 30 baseurl=http://debuginfo.centos.org/centos/7/sclo/$basearch/ 31 gpgcheck=1 32 enabled=0 33 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
編集後
9行目をコメントにして、8行目を有効にしています。
[root@zabbix5 tmp]# vi /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo [root@zabbix5 tmp]# cat -n /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo 1 # CentOS-SCLo-rh.repo 2 # 3 # Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more 4 # information 5 6 [centos-sclo-rh] 7 name=CentOS-7 - SCLo rh 8 baseurl=http://mirror.centos.org/centos/7/sclo/$basearch/rh/ 9 #mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh 10 gpgcheck=1 11 enabled=1 12 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo 13 14 [centos-sclo-rh-testing] 15 name=CentOS-7 - SCLo rh Testing 16 baseurl=http://buildlogs.centos.org/centos/7/sclo/$basearch/rh/ 17 gpgcheck=0 18 enabled=0 19 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo 20 21 [centos-sclo-rh-source] 22 name=CentOS-7 - SCLo rh Sources 23 baseurl=http://vault.centos.org/centos/7/sclo/Source/rh/ 24 gpgcheck=1 25 enabled=0 26 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo 27 28 [centos-sclo-rh-debuginfo] 29 name=CentOS-7 - SCLo rh Debuginfo 30 baseurl=http://debuginfo.centos.org/centos/7/sclo/$basearch/ 31 gpgcheck=1 32 enabled=0 33 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
そして、フロントエンドパッケージのインストール。
[root@zabbix5 tmp]# yum install zabbix-web-pgsql-scl zabbix-nginx-conf-scl 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * centos-sclo-sclo: ftp-srv2.kddilabs.jp * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp base | 3.6 kB 00:00:00 centos-sclo-rh | 3.0 kB 00:00:00 centos-sclo-sclo | 3.0 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 zabbix | 2.9 kB 00:00:00 zabbix-frontend | 2.9 kB 00:00:00 zabbix-non-supported | 951 B 00:00:00 (1/3): centos-sclo-sclo/x86_64/primary_db | 289 kB 00:00:15 (2/3): zabbix-frontend/x86_64/primary_db | 5.4 kB 00:00:15 (3/3): centos-sclo-rh/x86_64/primary_db | 2.6 MB 00:03:06 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ zabbix-nginx-conf-scl.noarch 0:5.0.1-1.el7 を インストール --> 依存性の処理をしています: rh-nginx116-nginx のパッケージ: zabbix-nginx-conf-scl-5.0.1-1.el7.noarch ---> パッケージ zabbix-web-pgsql-scl.noarch 0:5.0.1-1.el7 を インストール --> 依存性の処理をしています: zabbix-web-deps-scl のパッケージ: zabbix-web-pgsql-scl-5.0.1-1.el7.noarch --> 依存性の処理をしています: rh-php72-php-pgsql のパッケージ: zabbix-web-pgsql-scl-5.0.1-1.el7.noarch --> 依存性の処理をしています: zabbix-web のパッケージ: zabbix-web-pgsql-scl-5.0.1-1.el7.noarch --> トランザクションの確認を実行しています。 ---> パッケージ rh-nginx116-nginx.x86_64 1:1.16.1-4.el7 を インストール --> 依存性の処理をしています: gd のパッケージ: 1:rh-nginx116-nginx-1.16.1-4.el7.x86_64 --> 依存性の処理をしています: policycoreutils-python のパッケージ: 1:rh-nginx116-nginx-1.16.1-4.el7.x86_64 --> 依存性の処理をしています: rh-nginx116-runtime のパッケージ: 1:rh-nginx116-nginx-1.16.1-4.el7.x86_64 ---> パッケージ rh-php72-php-pgsql.x86_64 0:7.2.24-1.el7 を インストール --> 依存性の処理をしています: rh-php72-php-pdo(x86-64) = 7.2.24-1.el7 のパッケージ: rh-php72-php-pgsql-7.2.24-1.el7.x86_64 ---> パッケージ zabbix-web.noarch 0:5.0.1-1.el7 を インストール --> 依存性の処理をしています: dejavu-sans-fonts のパッケージ: zabbix-web-5.0.1-1.el7.noarch ---> パッケージ zabbix-web-deps-scl.noarch 0:5.0.1-1.el7 を インストール --> 依存性の処理をしています: rh-php72-php-mbstring のパッケージ: zabbix-web-deps-scl-5.0.1-1.el7.noarch --> 依存性の処理をしています: rh-php72-php-xml のパッケージ: zabbix-web-deps-scl-5.0.1-1.el7.noarch --> 依存性の処理をしています: rh-php72-php-bcmath のパッケージ: zabbix-web-deps-scl-5.0.1-1.el7.noarch --> 依存性の処理をしています: rh-php72-php-ldap のパッケージ: zabbix-web-deps-scl-5.0.1-1.el7.noarch --> 依存性の処理をしています: rh-php72-php-fpm のパッケージ: zabbix-web-deps-scl-5.0.1-1.el7.noarch --> 依存性の処理をしています: rh-php72 のパッケージ: zabbix-web-deps-scl-5.0.1-1.el7.noarch --> 依存性の処理をしています: rh-php72-php-gd のパッケージ: zabbix-web-deps-scl-5.0.1-1.el7.noarch --> トランザクションの確認を実行しています。 ---> パッケージ dejavu-sans-fonts.noarch 0:2.33-6.el7 を インストール --> 依存性の処理をしています: dejavu-fonts-common = 2.33-6.el7 のパッケージ: dejavu-sans-fonts-2.33-6.el7.noarch ---> パッケージ gd.x86_64 0:2.0.35-26.el7 を インストール --> 依存性の処理をしています: libjpeg.so.62(LIBJPEG_6.2)(64bit) のパッケージ: gd-2.0.35-26.el7.x86_64 --> 依存性の処理をしています: libjpeg.so.62()(64bit) のパッケージ: gd-2.0.35-26.el7.x86_64 --> 依存性の処理をしています: libfontconfig.so.1()(64bit) のパッケージ: gd-2.0.35-26.el7.x86_64 --> 依存性の処理をしています: libXpm.so.4()(64bit) のパッケージ: gd-2.0.35-26.el7.x86_64 --> 依存性の処理をしています: libX11.so.6()(64bit) のパッケージ: gd-2.0.35-26.el7.x86_64 ---> パッケージ policycoreutils-python.x86_64 0:2.5-34.el7 を インストール --> 依存性の処理をしています: setools-libs >= 3.3.8-4 のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 --> 依存性の処理をしています: libsemanage-python >= 2.5-14 のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 --> 依存性の処理をしています: audit-libs-python >= 2.1.3-4 のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 --> 依存性の処理をしています: python-IPy のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 --> 依存性の処理をしています: libqpol.so.1(VERS_1.4)(64bit) のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 --> 依存性の処理をしています: libqpol.so.1(VERS_1.2)(64bit) のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 --> 依存性の処理をしています: libcgroup のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 --> 依存性の処理をしています: libapol.so.4(VERS_4.0)(64bit) のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 --> 依存性の処理をしています: checkpolicy のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 --> 依存性の処理をしています: libqpol.so.1()(64bit) のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 --> 依存性の処理をしています: libapol.so.4()(64bit) のパッケージ: policycoreutils-python-2.5-34.el7.x86_64 ---> パッケージ rh-nginx116-runtime.x86_64 0:1.16-1.el7 を インストール --> 依存性の処理をしています: scl-utils のパッケージ: rh-nginx116-runtime-1.16-1.el7.x86_64 ---> パッケージ rh-php72.x86_64 0:1-2.el7 を インストール --> 依存性の処理をしています: rh-php72-runtime(x86-64) = 1-2.el7 のパッケージ: rh-php72-1-2.el7.x86_64 --> 依存性の処理をしています: rh-php72-runtime のパッケージ: rh-php72-1-2.el7.x86_64 --> 依存性の処理をしています: rh-php72-php-common(x86-64) のパッケージ: rh-php72-1-2.el7.x86_64 --> 依存性の処理をしています: rh-php72-php-cli(x86-64) のパッケージ: rh-php72-1-2.el7.x86_64 --> 依存性の処理をしています: rh-php72-php-pear のパッケージ: rh-php72-1-2.el7.x86_64 ---> パッケージ rh-php72-php-bcmath.x86_64 0:7.2.24-1.el7 を インストール ---> パッケージ rh-php72-php-fpm.x86_64 0:7.2.24-1.el7 を インストール ---> パッケージ rh-php72-php-gd.x86_64 0:7.2.24-1.el7 を インストール --> 依存性の処理をしています: libwebp.so.4()(64bit) のパッケージ: rh-php72-php-gd-7.2.24-1.el7.x86_64 ---> パッケージ rh-php72-php-ldap.x86_64 0:7.2.24-1.el7 を インストール ---> パッケージ rh-php72-php-mbstring.x86_64 0:7.2.24-1.el7 を インストール ---> パッケージ rh-php72-php-pdo.x86_64 0:7.2.24-1.el7 を インストール ---> パッケージ rh-php72-php-xml.x86_64 0:7.2.24-1.el7 を インストール --> 依存性の処理をしています: libxslt.so.1(LIBXML2_1.0.11)(64bit) のパッケージ: rh-php72-php-xml-7.2.24-1.el7.x86_64 --> 依存性の処理をしています: libxslt.so.1(LIBXML2_1.0.13)(64bit) のパッケージ: rh-php72-php-xml-7.2.24-1.el7.x86_64 --> 依存性の処理をしています: libxslt.so.1(LIBXML2_1.0.18)(64bit) のパッケージ: rh-php72-php-xml-7.2.24-1.el7.x86_64 --> 依存性の処理をしています: libxslt.so.1(LIBXML2_1.0.22)(64bit) のパッケージ: rh-php72-php-xml-7.2.24-1.el7.x86_64 --> 依存性の処理をしています: libxslt.so.1(LIBXML2_1.0.24)(64bit) のパッケージ: rh-php72-php-xml-7.2.24-1.el7.x86_64 --> 依存性の処理をしています: libexslt.so.0()(64bit) のパッケージ: rh-php72-php-xml-7.2.24-1.el7.x86_64 --> 依存性の処理をしています: libxslt.so.1()(64bit) のパッケージ: rh-php72-php-xml-7.2.24-1.el7.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ audit-libs-python.x86_64 0:2.8.5-4.el7 を インストール ---> パッケージ checkpolicy.x86_64 0:2.5-8.el7 を インストール ---> パッケージ dejavu-fonts-common.noarch 0:2.33-6.el7 を インストール --> 依存性の処理をしています: fontpackages-filesystem のパッケージ: dejavu-fonts-common-2.33-6.el7.noarch ---> パッケージ fontconfig.x86_64 0:2.13.0-4.3.el7 を インストール ---> パッケージ libX11.x86_64 0:1.6.7-2.el7 を インストール --> 依存性の処理をしています: libX11-common >= 1.6.7-2.el7 のパッケージ: libX11-1.6.7-2.el7.x86_64 --> 依存性の処理をしています: libxcb.so.1()(64bit) のパッケージ: libX11-1.6.7-2.el7.x86_64 ---> パッケージ libXpm.x86_64 0:3.5.12-1.el7 を インストール ---> パッケージ libcgroup.x86_64 0:0.41-21.el7 を インストール ---> パッケージ libjpeg-turbo.x86_64 0:1.2.90-8.el7 を インストール ---> パッケージ libsemanage-python.x86_64 0:2.5-14.el7 を インストール ---> パッケージ libwebp.x86_64 0:0.3.0-7.el7 を インストール ---> パッケージ libxslt.x86_64 0:1.1.28-5.el7 を インストール ---> パッケージ python-IPy.noarch 0:0.75-6.el7 を インストール ---> パッケージ rh-php72-php-cli.x86_64 0:7.2.24-1.el7 を インストール ---> パッケージ rh-php72-php-common.x86_64 0:7.2.24-1.el7 を インストール --> 依存性の処理をしています: rh-php72-php-json(x86-64) = 7.2.24-1.el7 のパッケージ: rh-php72-php-common-7.2.24-1.el7.x86_64 --> 依存性の処理をしています: rh-php72-php-zip(x86-64) = 7.2.24-1.el7 のパッケージ: rh-php72-php-common-7.2.24-1.el7.x86_64 ---> パッケージ rh-php72-php-pear.noarch 1:1.10.5-1.el7 を インストール --> 依存性の処理をしています: rh-php72-php-posix のパッケージ: 1:rh-php72-php-pear-1.10.5-1.el7.noarch ---> パッケージ rh-php72-runtime.x86_64 0:1-2.el7 を インストール ---> パッケージ scl-utils.x86_64 0:20130529-19.el7 を インストール ---> パッケージ setools-libs.x86_64 0:3.3.8-4.el7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ fontpackages-filesystem.noarch 0:1.44-8.el7 を インストール ---> パッケージ libX11-common.noarch 0:1.6.7-2.el7 を インストール ---> パッケージ libxcb.x86_64 0:1.13-1.el7 を インストール --> 依存性の処理をしています: libXau.so.6()(64bit) のパッケージ: libxcb-1.13-1.el7.x86_64 ---> パッケージ rh-php72-php-json.x86_64 0:7.2.24-1.el7 を インストール ---> パッケージ rh-php72-php-process.x86_64 0:7.2.24-1.el7 を インストール ---> パッケージ rh-php72-php-zip.x86_64 0:7.2.24-1.el7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ libXau.x86_64 0:1.0.8-2.1.el7 を インストール --> 依存性解決を終了しました。 依存性を解決しました ====================================================================================================== Package アーキテクチャー バージョン リポジトリー 容量 ====================================================================================================== インストール中: zabbix-nginx-conf-scl noarch 5.0.1-1.el7 zabbix-frontend 13 k zabbix-web-pgsql-scl noarch 5.0.1-1.el7 zabbix-frontend 12 k 依存性関連でのインストールをします: audit-libs-python x86_64 2.8.5-4.el7 base 76 k checkpolicy x86_64 2.5-8.el7 base 295 k dejavu-fonts-common noarch 2.33-6.el7 base 64 k dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M fontconfig x86_64 2.13.0-4.3.el7 base 254 k fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k gd x86_64 2.0.35-26.el7 base 146 k libX11 x86_64 1.6.7-2.el7 base 607 k libX11-common noarch 1.6.7-2.el7 base 164 k libXau x86_64 1.0.8-2.1.el7 base 29 k libXpm x86_64 3.5.12-1.el7 base 55 k libcgroup x86_64 0.41-21.el7 base 66 k libjpeg-turbo x86_64 1.2.90-8.el7 base 135 k libsemanage-python x86_64 2.5-14.el7 base 113 k libwebp x86_64 0.3.0-7.el7 base 170 k libxcb x86_64 1.13-1.el7 base 214 k libxslt x86_64 1.1.28-5.el7 base 242 k policycoreutils-python x86_64 2.5-34.el7 base 457 k python-IPy noarch 0.75-6.el7 base 32 k rh-nginx116-nginx x86_64 1:1.16.1-4.el7 centos-sclo-rh 547 k rh-nginx116-runtime x86_64 1.16-1.el7 centos-sclo-rh 26 k rh-php72 x86_64 1-2.el7 centos-sclo-rh 4.3 k rh-php72-php-bcmath x86_64 7.2.24-1.el7 centos-sclo-rh 60 k rh-php72-php-cli x86_64 7.2.24-1.el7 centos-sclo-rh 2.9 M rh-php72-php-common x86_64 7.2.24-1.el7 centos-sclo-rh 680 k rh-php72-php-fpm x86_64 7.2.24-1.el7 centos-sclo-rh 1.5 M rh-php72-php-gd x86_64 7.2.24-1.el7 centos-sclo-rh 151 k rh-php72-php-json x86_64 7.2.24-1.el7 centos-sclo-rh 54 k rh-php72-php-ldap x86_64 7.2.24-1.el7 centos-sclo-rh 59 k rh-php72-php-mbstring x86_64 7.2.24-1.el7 centos-sclo-rh 553 k rh-php72-php-pdo x86_64 7.2.24-1.el7 centos-sclo-rh 101 k rh-php72-php-pear noarch 1:1.10.5-1.el7 centos-sclo-rh 357 k rh-php72-php-pgsql x86_64 7.2.24-1.el7 centos-sclo-rh 95 k rh-php72-php-process x86_64 7.2.24-1.el7 centos-sclo-rh 62 k rh-php72-php-xml x86_64 7.2.24-1.el7 centos-sclo-rh 160 k rh-php72-php-zip x86_64 7.2.24-1.el7 centos-sclo-rh 90 k rh-php72-runtime x86_64 1-2.el7 centos-sclo-rh 1.1 M scl-utils x86_64 20130529-19.el7 base 24 k setools-libs x86_64 3.3.8-4.el7 base 620 k zabbix-web noarch 5.0.1-1.el7 zabbix-frontend 3.1 M zabbix-web-deps-scl noarch 5.0.1-1.el7 zabbix-frontend 13 k トランザクションの要約 ====================================================================================================== インストール 2 パッケージ (+41 個の依存関係のパッケージ) 総ダウンロード容量: 17 M インストール容量: 62 M Is this ok [y/d/N]: y Downloading packages: (1/43): checkpolicy-2.5-8.el7.x86_64.rpm | 295 kB 00:00:00 (2/43): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:00 (3/43): audit-libs-python-2.8.5-4.el7.x86_64.rpm | 76 kB 00:00:15 (4/43): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:15 (5/43): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00:00 (6/43): fontconfig-2.13.0-4.3.el7.x86_64.rpm | 254 kB 00:00:00 (7/43): libXau-1.0.8-2.1.el7.x86_64.rpm | 29 kB 00:00:00 (8/43): libX11-common-1.6.7-2.el7.noarch.rpm | 164 kB 00:00:00 (9/43): libcgroup-0.41-21.el7.x86_64.rpm | 66 kB 00:00:00 (10/43): libXpm-3.5.12-1.el7.x86_64.rpm | 55 kB 00:00:00 (11/43): libX11-1.6.7-2.el7.x86_64.rpm | 607 kB 00:00:00 (12/43): libsemanage-python-2.5-14.el7.x86_64.rpm | 113 kB 00:00:00 (13/43): gd-2.0.35-26.el7.x86_64.rpm | 146 kB 00:00:00 (14/43): libwebp-0.3.0-7.el7.x86_64.rpm | 170 kB 00:00:00 (15/43): libxcb-1.13-1.el7.x86_64.rpm | 214 kB 00:00:00 (16/43): python-IPy-0.75-6.el7.noarch.rpm | 32 kB 00:00:00 (17/43): libjpeg-turbo-1.2.90-8.el7.x86_64.rpm | 135 kB 00:00:00 (18/43): libxslt-1.1.28-5.el7.x86_64.rpm | 242 kB 00:00:00 (19/43): policycoreutils-python-2.5-34.el7.x86_64.rpm | 457 kB 00:00:00 warning: /var/cache/yum/x86_64/7/centos-sclo-rh/packages/rh-nginx116-runtime-1.16-1.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f2ee9d55: NOKEY rh-nginx116-runtime-1.16-1.el7.x86_64.rpm の公開鍵がインストールされていません (20/43): rh-nginx116-runtime-1.16-1.el7.x86_64.rpm | 26 kB 00:00:16 (21/43): rh-php72-1-2.el7.x86_64.rpm | 4.3 kB 00:00:00 (22/43): rh-nginx116-nginx-1.16.1-4.el7.x86_64.rpm | 547 kB 00:00:19 (23/43): rh-php72-php-bcmath-7.2.24-1.el7.x86_64.rpm | 60 kB 00:00:03 (24/43): rh-php72-php-cli-7.2.24-1.el7.x86_64.rpm | 2.9 MB 00:00:08 (25/43): rh-php72-php-fpm-7.2.24-1.el7.x86_64.rpm | 1.5 MB 00:00:05 (26/43): rh-php72-php-gd-7.2.24-1.el7.x86_64.rpm | 151 kB 00:00:00 (27/43): rh-php72-php-json-7.2.24-1.el7.x86_64.rpm | 54 kB 00:00:00 (28/43): rh-php72-php-ldap-7.2.24-1.el7.x86_64.rpm | 59 kB 00:00:00 (29/43): rh-php72-php-mbstring-7.2.24-1.el7.x86_64.rpm | 553 kB 00:00:02 (30/43): rh-php72-php-pdo-7.2.24-1.el7.x86_64.rpm | 101 kB 00:00:01 (31/43): rh-php72-php-pear-1.10.5-1.el7.noarch.rpm | 357 kB 00:00:01 (32/43): rh-php72-php-pgsql-7.2.24-1.el7.x86_64.rpm | 95 kB 00:00:00 (33/43): rh-php72-php-process-7.2.24-1.el7.x86_64.rpm | 62 kB 00:00:00 (34/43): rh-php72-php-xml-7.2.24-1.el7.x86_64.rpm | 160 kB 00:00:00 (35/43): rh-php72-php-zip-7.2.24-1.el7.x86_64.rpm | 90 kB 00:00:00 (36/43): setools-libs-3.3.8-4.el7.x86_64.rpm | 620 kB 00:00:00 (37/43): rh-php72-runtime-1-2.el7.x86_64.rpm | 1.1 MB 00:00:05 (38/43): scl-utils-20130529-19.el7.x86_64.rpm | 24 kB 00:00:15 (39/43): zabbix-nginx-conf-scl-5.0.1-1.el7.noarch.rpm | 13 kB 00:00:15 (40/43): zabbix-web-deps-scl-5.0.1-1.el7.noarch.rpm | 13 kB 00:00:00 (41/43): zabbix-web-pgsql-scl-5.0.1-1.el7.noarch.rpm | 12 kB 00:00:00 (42/43): zabbix-web-5.0.1-1.el7.noarch.rpm | 3.1 MB 00:00:18 (43/43): rh-php72-php-common-7.2.24-1.el7.x86_64.rpm | 680 kB 00:00:52 ------------------------------------------------------------------------------------------------------ 合計 195 kB/s | 17 MB 00:01:27 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo から鍵を取得中です。 Importing GPG key 0xF2EE9D55: Userid : "CentOS SoftwareCollections SIG (https://wiki.centos.org/SpecialInterestGroup/SCLo) <security@centos.org>" Fingerprint: c4db d535 b1fb ba14 f8ba 64a8 4eb8 4e71 f2ee 9d55 Package : centos-release-scl-rh-2-3.el7.centos.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo 上記の処理を行います。よろしいでしょうか? [y/N]y Running transaction check Running transaction test Transaction test succeeded Running transaction インストール中 : libjpeg-turbo-1.2.90-8.el7.x86_64 1/43 インストール中 : scl-utils-20130529-19.el7.x86_64 2/43 インストール中 : fontpackages-filesystem-1.44-8.el7.noarch 3/43 インストール中 : dejavu-fonts-common-2.33-6.el7.noarch 4/43 インストール中 : dejavu-sans-fonts-2.33-6.el7.noarch 5/43 インストール中 : fontconfig-2.13.0-4.3.el7.x86_64 6/43 インストール中 : zabbix-web-5.0.1-1.el7.noarch 7/43 インストール中 : libcgroup-0.41-21.el7.x86_64 8/43 インストール中 : libXau-1.0.8-2.1.el7.x86_64 9/43 インストール中 : libxcb-1.13-1.el7.x86_64 10/43 インストール中 : audit-libs-python-2.8.5-4.el7.x86_64 11/43 インストール中 : libxslt-1.1.28-5.el7.x86_64 12/43 インストール中 : libsemanage-python-2.5-14.el7.x86_64 13/43 インストール中 : setools-libs-3.3.8-4.el7.x86_64 14/43 インストール中 : libX11-common-1.6.7-2.el7.noarch 15/43 インストール中 : libX11-1.6.7-2.el7.x86_64 16/43 インストール中 : libXpm-3.5.12-1.el7.x86_64 17/43 インストール中 : gd-2.0.35-26.el7.x86_64 18/43 インストール中 : python-IPy-0.75-6.el7.noarch 19/43 インストール中 : checkpolicy-2.5-8.el7.x86_64 20/43 インストール中 : policycoreutils-python-2.5-34.el7.x86_64 21/43 インストール中 : rh-php72-runtime-1-2.el7.x86_64 22/43 インストール中 : rh-php72-php-zip-7.2.24-1.el7.x86_64 23/43 インストール中 : rh-php72-php-json-7.2.24-1.el7.x86_64 24/43 インストール中 : rh-php72-php-common-7.2.24-1.el7.x86_64 25/43 インストール中 : rh-php72-php-xml-7.2.24-1.el7.x86_64 26/43 インストール中 : rh-php72-php-cli-7.2.24-1.el7.x86_64 27/43 インストール中 : rh-php72-php-pdo-7.2.24-1.el7.x86_64 28/43 インストール中 : rh-php72-php-pgsql-7.2.24-1.el7.x86_64 29/43 インストール中 : rh-php72-php-process-7.2.24-1.el7.x86_64 30/43 インストール中 : 1:rh-php72-php-pear-1.10.5-1.el7.noarch 31/43 インストール中 : rh-php72-1-2.el7.x86_64 32/43 インストール中 : rh-php72-php-fpm-7.2.24-1.el7.x86_64 33/43 インストール中 : rh-php72-php-ldap-7.2.24-1.el7.x86_64 34/43 インストール中 : rh-php72-php-bcmath-7.2.24-1.el7.x86_64 35/43 インストール中 : rh-php72-php-mbstring-7.2.24-1.el7.x86_64 36/43 インストール中 : rh-nginx116-runtime-1.16-1.el7.x86_64 37/43 インストール中 : 1:rh-nginx116-nginx-1.16.1-4.el7.x86_64 38/43 インストール中 : libwebp-0.3.0-7.el7.x86_64 39/43 インストール中 : rh-php72-php-gd-7.2.24-1.el7.x86_64 40/43 インストール中 : zabbix-web-deps-scl-5.0.1-1.el7.noarch 41/43 インストール中 : zabbix-web-pgsql-scl-5.0.1-1.el7.noarch 42/43 インストール中 : zabbix-nginx-conf-scl-5.0.1-1.el7.noarch 43/43 検証中 : rh-php72-php-xml-7.2.24-1.el7.x86_64 1/43 検証中 : zabbix-web-pgsql-scl-5.0.1-1.el7.noarch 2/43 検証中 : libwebp-0.3.0-7.el7.x86_64 3/43 検証中 : zabbix-nginx-conf-scl-5.0.1-1.el7.noarch 4/43 検証中 : rh-php72-php-pdo-7.2.24-1.el7.x86_64 5/43 検証中 : 1:rh-nginx116-nginx-1.16.1-4.el7.x86_64 6/43 検証中 : fontconfig-2.13.0-4.3.el7.x86_64 7/43 検証中 : fontpackages-filesystem-1.44-8.el7.noarch 8/43 検証中 : checkpolicy-2.5-8.el7.x86_64 9/43 検証中 : scl-utils-20130529-19.el7.x86_64 10/43 検証中 : rh-php72-runtime-1-2.el7.x86_64 11/43 検証中 : rh-php72-php-common-7.2.24-1.el7.x86_64 12/43 検証中 : rh-php72-php-zip-7.2.24-1.el7.x86_64 13/43 検証中 : dejavu-fonts-common-2.33-6.el7.noarch 14/43 検証中 : python-IPy-0.75-6.el7.noarch 15/43 検証中 : libX11-1.6.7-2.el7.x86_64 16/43 検証中 : libX11-common-1.6.7-2.el7.noarch 17/43 検証中 : libxcb-1.13-1.el7.x86_64 18/43 検証中 : policycoreutils-python-2.5-34.el7.x86_64 19/43 検証中 : setools-libs-3.3.8-4.el7.x86_64 20/43 検証中 : libXpm-3.5.12-1.el7.x86_64 21/43 検証中 : libjpeg-turbo-1.2.90-8.el7.x86_64 22/43 検証中 : libsemanage-python-2.5-14.el7.x86_64 23/43 検証中 : libxslt-1.1.28-5.el7.x86_64 24/43 検証中 : rh-php72-php-gd-7.2.24-1.el7.x86_64 25/43 検証中 : rh-php72-php-pgsql-7.2.24-1.el7.x86_64 26/43 検証中 : zabbix-web-deps-scl-5.0.1-1.el7.noarch 27/43 検証中 : dejavu-sans-fonts-2.33-6.el7.noarch 28/43 検証中 : rh-php72-php-json-7.2.24-1.el7.x86_64 29/43 検証中 : gd-2.0.35-26.el7.x86_64 30/43 検証中 : rh-php72-php-process-7.2.24-1.el7.x86_64 31/43 検証中 : audit-libs-python-2.8.5-4.el7.x86_64 32/43 検証中 : rh-php72-php-fpm-7.2.24-1.el7.x86_64 33/43 検証中 : zabbix-web-5.0.1-1.el7.noarch 34/43 検証中 : rh-php72-php-ldap-7.2.24-1.el7.x86_64 35/43 検証中 : rh-php72-php-bcmath-7.2.24-1.el7.x86_64 36/43 検証中 : rh-php72-php-mbstring-7.2.24-1.el7.x86_64 37/43 検証中 : libXau-1.0.8-2.1.el7.x86_64 38/43 検証中 : 1:rh-php72-php-pear-1.10.5-1.el7.noarch 39/43 検証中 : rh-php72-1-2.el7.x86_64 40/43 検証中 : rh-nginx116-runtime-1.16-1.el7.x86_64 41/43 検証中 : rh-php72-php-cli-7.2.24-1.el7.x86_64 42/43 検証中 : libcgroup-0.41-21.el7.x86_64 43/43 インストール: zabbix-nginx-conf-scl.noarch 0:5.0.1-1.el7 zabbix-web-pgsql-scl.noarch 0:5.0.1-1.el7 依存性関連をインストールしました: audit-libs-python.x86_64 0:2.8.5-4.el7 checkpolicy.x86_64 0:2.5-8.el7 dejavu-fonts-common.noarch 0:2.33-6.el7 dejavu-sans-fonts.noarch 0:2.33-6.el7 fontconfig.x86_64 0:2.13.0-4.3.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 gd.x86_64 0:2.0.35-26.el7 libX11.x86_64 0:1.6.7-2.el7 libX11-common.noarch 0:1.6.7-2.el7 libXau.x86_64 0:1.0.8-2.1.el7 libXpm.x86_64 0:3.5.12-1.el7 libcgroup.x86_64 0:0.41-21.el7 libjpeg-turbo.x86_64 0:1.2.90-8.el7 libsemanage-python.x86_64 0:2.5-14.el7 libwebp.x86_64 0:0.3.0-7.el7 libxcb.x86_64 0:1.13-1.el7 libxslt.x86_64 0:1.1.28-5.el7 policycoreutils-python.x86_64 0:2.5-34.el7 python-IPy.noarch 0:0.75-6.el7 rh-nginx116-nginx.x86_64 1:1.16.1-4.el7 rh-nginx116-runtime.x86_64 0:1.16-1.el7 rh-php72.x86_64 0:1-2.el7 rh-php72-php-bcmath.x86_64 0:7.2.24-1.el7 rh-php72-php-cli.x86_64 0:7.2.24-1.el7 rh-php72-php-common.x86_64 0:7.2.24-1.el7 rh-php72-php-fpm.x86_64 0:7.2.24-1.el7 rh-php72-php-gd.x86_64 0:7.2.24-1.el7 rh-php72-php-json.x86_64 0:7.2.24-1.el7 rh-php72-php-ldap.x86_64 0:7.2.24-1.el7 rh-php72-php-mbstring.x86_64 0:7.2.24-1.el7 rh-php72-php-pdo.x86_64 0:7.2.24-1.el7 rh-php72-php-pear.noarch 1:1.10.5-1.el7 rh-php72-php-pgsql.x86_64 0:7.2.24-1.el7 rh-php72-php-process.x86_64 0:7.2.24-1.el7 rh-php72-php-xml.x86_64 0:7.2.24-1.el7 rh-php72-php-zip.x86_64 0:7.2.24-1.el7 rh-php72-runtime.x86_64 0:1-2.el7 scl-utils.x86_64 0:20130529-19.el7 setools-libs.x86_64 0:3.3.8-4.el7 zabbix-web.noarch 0:5.0.1-1.el7 zabbix-web-deps-scl.noarch 0:5.0.1-1.el7 完了しました!
続いて、PostgreSQLのインストール。
まず、レポジトリファイルを追加します。
[root@zabbix5 tmp]# curl -O https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm [root@zabbix5 tmp]# ls pgdg-redhat-repo-latest.noarch.rpm [root@zabbix5 tmp]# rpm -ivh pgdg-redhat-repo-latest.noarch.rpm 警告: pgdg-redhat-repo-latest.noarch.rpm: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 442df0f8: NOKEY 準備しています... ################################# [100%] 更新中 / インストール中... 1:pgdg-redhat-repo-42.0-11 ################################# [100%] [root@zabbix5 tmp]# ls /etc/yum.repos.d/ CentOS-Base.repo CentOS-Media.repo CentOS-Sources.repo CentOS-x86_64-kernel.repo CentOS-CR.repo CentOS-SCLo-scl-rh.repo CentOS-Vault.repo pgdg-redhat-all.repo CentOS-Debuginfo.repo CentOS-SCLo-scl.repo CentOS-fasttrack.repo zabbix.repo [root@zabbix5 tmp]# cat -n /etc/yum.repos.d/pgdg-redhat-all.repo 1 ####################################################### 2 # PGDG Red Hat Enterprise Linux / CentOS repositories # 3 ####################################################### 4 5 # PGDG Red Hat Enterprise Linux / CentOS stable common repository for all PostgreSQL versions 6 7 [pgdg-common] 8 name=PostgreSQL common RPMs for RHEL/CentOS $releasever - $basearch 9 baseurl=https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-$releasever-$basearch 10 enabled=1 11 gpgcheck=1 12 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 13 14 # PGDG Red Hat Enterprise Linux / CentOS stable repositories: 15 16 [pgdg12] 17 name=PostgreSQL 12 for RHEL/CentOS $releasever - $basearch 18 baseurl=https://download.postgresql.org/pub/repos/yum/12/redhat/rhel-$releasever-$basearch 19 enabled=1 20 gpgcheck=1 21 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 22 23 [pgdg11] 24 name=PostgreSQL 11 for RHEL/CentOS $releasever - $basearch 25 baseurl=https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-$releasever-$basearch 26 enabled=1 27 gpgcheck=1 28 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 29 30 [pgdg10] 31 name=PostgreSQL 10 for RHEL/CentOS $releasever - $basearch 32 baseurl=https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-$releasever-$basearch 33 enabled=1 34 gpgcheck=1 35 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 36 37 [pgdg96] 38 name=PostgreSQL 9.6 for RHEL/CentOS $releasever - $basearch 39 baseurl=https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-$releasever-$basearch 40 enabled=1 41 gpgcheck=1 42 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 43 44 [pgdg95] 45 name=PostgreSQL 9.5 for RHEL/CentOS $releasever - $basearch 46 baseurl=https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-$releasever-$basearch 47 enabled=1 48 gpgcheck=1 49 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 50 51 [pgdg94] 52 name=PostgreSQL 9.4 for RHEL/CentOS $releasever - $basearch 53 baseurl=https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-$releasever-$basearch 54 enabled=0 55 gpgcheck=1 56 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 57 58 # PGDG RHEL/CentOS Updates Testing common repositories. 59 60 [pgdg-common-testing] 61 name=PostgreSQL common testing RPMs for RHEL/CentOS $releasever - $basearch 62 baseurl=https://download.postgresql.org/pub/repos/yum/testing/common/redhat/rhel-$releasever-$basearch 63 enabled=0 64 gpgcheck=1 65 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 66 67 # PGDG RHEL/CentOS Updates Testing repositories. (These packages should not be used in production) 68 # Available for 9.6 and above. 69 70 [pgdg13-updates-testing] 71 name=PostgreSQL 13 for RHEL/CentOS $releasever - $basearch - Updates testing 72 baseurl=https://download.postgresql.org/pub/repos/yum/testing/13/redhat/rhel-$releasever-$basearch 73 enabled=0 74 gpgcheck=1 75 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 76 77 [pgdg12-updates-testing] 78 name=PostgreSQL 12 for RHEL/CentOS $releasever - $basearch - Updates testing 79 baseurl=https://download.postgresql.org/pub/repos/yum/testing/12/redhat/rhel-$releasever-$basearch 80 enabled=0 81 gpgcheck=1 82 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 83 84 [pgdg11-updates-testing] 85 name=PostgreSQL 11 for RHEL/CentOS $releasever - $basearch - Updates testing 86 baseurl=https://download.postgresql.org/pub/repos/yum/testing/11/redhat/rhel-$releasever-$basearch 87 enabled=0 88 gpgcheck=1 89 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 90 91 # PGDG Red Hat Enterprise Linux / CentOS SRPM testing common repository 92 93 [pgdg-source-common] 94 name=PostgreSQL 12 for RHEL/CentOS $releasever - $basearch - Source 95 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/common/redhat/rhel-$releasever-$basearch 96 enabled=0 97 gpgcheck=1 98 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 99 100 # PGDG RHEL / CentOS testing common SRPM repository for all PostgreSQL versions 101 102 [pgdg-common-srpm-testing] 103 name=PostgreSQL common testing SRPMs for RHEL/CentOS $releasever - $basearch 104 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/testing/common/redhat/rhel-$releasever-$basearch 105 enabled=0 106 gpgcheck=1 107 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 108 109 # PGDG Source RPMs (SRPM), and their testing repositories: 110 111 [pgdg13-source-updates-testing] 112 name=PostgreSQL 13 for RHEL/CentOS $releasever - $basearch - Source updates testing 113 failovermethod=priority 114 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/testing/13/fedora/fedora-$releasever-$basearch 115 enabled=0 116 gpgcheck=1 117 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 118 119 [pgdg12-source] 120 name=PostgreSQL 12 for RHEL/CentOS $releasever - $basearch - Source 121 failovermethod=priority 122 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/12/redhat/rhel-$releasever-$basearch 123 enabled=0 124 gpgcheck=1 125 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 126 127 [pgdg12-source-updates-testing] 128 name=PostgreSQL 12 for RHEL/CentOS $releasever - $basearch - Source update testing 129 failovermethod=priority 130 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/testing/12/redhat/rhel-$releasever-$basearch 131 enabled=0 132 gpgcheck=1 133 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 134 135 [pgdg11-source] 136 name=PostgreSQL 11 for RHEL/CentOS $releasever - $basearch - Source 137 failovermethod=priority 138 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/11/redhat/rhel-$releasever-$basearch 139 enabled=0 140 gpgcheck=1 141 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 142 143 [pgdg11-source-updates-testing] 144 name=PostgreSQL 11 for RHEL/CentOS $releasever - $basearch - Source update testing 145 failovermethod=priority 146 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/testing/11/redhat/rhel-$releasever-$basearch 147 enabled=0 148 gpgcheck=1 149 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 150 151 [pgdg10-source] 152 name=PostgreSQL 10 for RHEL/CentOS $releasever - $basearch - Source 153 failovermethod=priority 154 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/10/redhat/rhel-$releasever-$basearch 155 enabled=0 156 gpgcheck=1 157 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 158 159 [pgdg96-source] 160 name=PostgreSQL 9.6 for RHEL/CentOS $releasever - $basearch - Source 161 failovermethod=priority 162 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/9.6/redhat/rhel-$releasever-$basearch 163 enabled=0 164 gpgcheck=1 165 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 166 167 [pgdg95-source] 168 name=PostgreSQL 9.5 for RHEL/CentOS $releasever - $basearch - Source 169 failovermethod=priority 170 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/9.5/redhat/rhel-$releasever-$basearch 171 enabled=0 172 gpgcheck=1 173 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 174 175 [pgdg94-source] 176 name=PostgreSQL 9.4 for RHEL/CentOS $releasever - $basearch - Source 177 failovermethod=priority 178 baseurl=https://download.postgresql.org/pub/repos/yum/srpms/9.4/redhat/rhel-$releasever-$basearch 179 enabled=0 180 gpgcheck=1 181 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 182 183 # Debuginfo/debugsource packages for stable repos 184 185 [pgdg13-updates-debuginfo] 186 name=PostgreSQL 13 for RHEL/CentOS $releasever - $basearch - Debuginfo 187 baseurl=https://download.postgresql.org/pub/repos/yum/debug/13/redhat/rhel-$releasever-$basearch 188 enabled=0 189 gpgcheck=1 190 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 191 192 [pgdg12-updates-debuginfo] 193 name=PostgreSQL 12 for RHEL/CentOS $releasever - $basearch - Debuginfo 194 baseurl=https://download.postgresql.org/pub/repos/yum/debug/12/redhat/rhel-$releasever-$basearch 195 enabled=0 196 gpgcheck=1 197 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 198 199 [pgdg11-updates-debuginfo] 200 name=PostgreSQL 11 for RHEL/CentOS $releasever - $basearch - Debuginfo 201 baseurl=https://download.postgresql.org/pub/repos/yum/debug/11/redhat/rhel-$releasever-$basearch 202 enabled=0 203 gpgcheck=1 204 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 205 206 [pgdg10-updates-debuginfo] 207 name=PostgreSQL 10 for RHEL/CentOS $releasever - $basearch - Debuginfo 208 baseurl=https://download.postgresql.org/pub/repos/yum/debug/10/redhat/rhel-$releasever-$basearch 209 enabled=0 210 gpgcheck=1 211 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 212 213 [pgdg96-updates-debuginfo] 214 name=PostgreSQL 9.6 for RHEL/CentOS $releasever - $basearch - Debuginfo 215 baseurl=https://download.postgresql.org/pub/repos/yum/debug/9.6/redhat/rhel-$releasever-$basearch 216 enabled=0 217 gpgcheck=1 218 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 219 220 [pgdg95-updates-debuginfo] 221 name=PostgreSQL 9.5 for RHEL/CentOS $releasever - $basearch - Debuginfo 222 baseurl=https://download.postgresql.org/pub/repos/yum/debug/9.5/redhat/rhel-$releasever-$basearch 223 enabled=0 224 gpgcheck=1 225 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 226 227 # Debuginfo/debugsource packages for testing repos 228 # Available for 9.6 and above. 229 230 [pgdg13-updates-testing-debuginfo] 231 name=PostgreSQL 13 for RHEL/CentOS $releasever - $basearch - Debuginfo 232 baseurl=https://download.postgresql.org/pub/repos/yum/testing/debug/13/redhat/rhel-$releasever-$basearch 233 enabled=0 234 gpgcheck=1 235 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 236 237 [pgdg12-updates-testing-debuginfo] 238 name=PostgreSQL 12 for RHEL/CentOS $releasever - $basearch - Debuginfo 239 baseurl=https://download.postgresql.org/pub/repos/yum/testing/debug/12/redhat/rhel-$releasever-$basearch 240 enabled=0 241 gpgcheck=1 242 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 243 244 [pgdg11-updates-testing-debuginfo] 245 name=PostgreSQL 11 for RHEL/CentOS $releasever - $basearch - Debuginfo 246 baseurl=https://download.postgresql.org/pub/repos/yum/testing/debug/11/redhat/rhel-$releasever-$basearch 247 enabled=0 248 gpgcheck=1 249 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG [root@zabbix5 tmp]# yum search postgresql12 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * centos-sclo-sclo: ftp-srv2.kddilabs.jp * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp pgdg-common | 2.9 kB 00:00:00 pgdg10 | 3.6 kB 00:00:00 pgdg11 | 3.6 kB 00:00:00 pgdg12 | 3.6 kB 00:00:00 pgdg95 | 3.6 kB 00:00:00 pgdg96 | 3.6 kB 00:00:00 (1/11): pgdg11/7/x86_64/group_gz | 245 B 00:00:29 (2/11): pgdg10/7/x86_64/group_gz | 245 B 00:00:29 (3/11): pgdg12/7/x86_64/group_gz | 245 B 00:00:00 (4/11): pgdg95/7/x86_64/group_gz | 249 B 00:00:00 (5/11): pgdg-common/7/x86_64/primary_db | 116 kB 00:00:30 (6/11): pgdg11/7/x86_64/primary_db | 218 kB 00:00:30 (7/11): pgdg96/7/x86_64/group_gz | 249 B 00:00:00 (8/11): pgdg12/7/x86_64/primary_db | 134 kB 00:00:01 (9/11): pgdg10/7/x86_64/primary_db | 219 kB 00:00:31 (10/11): pgdg95/7/x86_64/primary_db | 206 kB 00:00:01 (11/11): pgdg96/7/x86_64/primary_db | 215 kB 00:00:03 ===================================== N/S matched: postgresql12 ====================================== postgresql12-odbc-debuginfo.x86_64 : Debug information for package postgresql12-odbc rh-postgresql12.x86_64 : Package that installs rh-postgresql12 rh-postgresql12-postgresql-contrib-syspaths.x86_64 : Convenient wrappers for the ...: rh-postgresql12-postgresql-contrib package; replaces the postgresql-contrib package rh-postgresql12-postgresql-server-syspaths.x86_64 : Convenient wrappers for the ...: rh-postgresql12-postgresql-server package; replaces the postgresql-server package rh-postgresql12-postgresql-syspaths.x86_64 : Convenient wrappers for the rh-postgresql12-postgresql : package; replaces the postgresql package rh-postgresql12-runtime.x86_64 : Package that handles rh-postgresql12 Software Collection. rh-postgresql12-scldevel.x86_64 : Package shipping development files for rh-postgresql12 rh-postgresql12-syspaths.x86_64 : System-wide wrappers for the rh-postgresql12 Software Collection postgresql12.x86_64 : PostgreSQL client programs and libraries postgresql12-contrib.x86_64 : Contributed source and binaries distributed with PostgreSQL postgresql12-devel.x86_64 : PostgreSQL development header files and libraries postgresql12-docs.x86_64 : Extra documentation for PostgreSQL postgresql12-libs.x86_64 : The shared libraries required for any PostgreSQL clients postgresql12-llvmjit.x86_64 : Just-in-time compilation support for PostgreSQL postgresql12-odbc.x86_64 : PostgreSQL ODBC driver postgresql12-plperl.x86_64 : The Perl procedural language for PostgreSQL postgresql12-plpython.x86_64 : The Python procedural language for PostgreSQL postgresql12-plpython3.x86_64 : The Python3 procedural language for PostgreSQL postgresql12-pltcl.x86_64 : The Tcl procedural language for PostgreSQL postgresql12-server.x86_64 : The programs needed to create and run a PostgreSQL server postgresql12-test.x86_64 : The test suite distributed with PostgreSQL rh-postgresql12-build.x86_64 : Package shipping basic build configuration rh-postgresql12-pgaudit.x86_64 : PostgreSQL Audit Extension rh-postgresql12-postgresql.x86_64 : PostgreSQL client programs rh-postgresql12-postgresql-contrib.x86_64 : Extension modules distributed with PostgreSQL rh-postgresql12-postgresql-devel.x86_64 : PostgreSQL development header files and libraries rh-postgresql12-postgresql-docs.x86_64 : Extra documentation for PostgreSQL rh-postgresql12-postgresql-libs.x86_64 : The shared libraries required for any PostgreSQL clients rh-postgresql12-postgresql-plperl.x86_64 : The Perl procedural language for PostgreSQL rh-postgresql12-postgresql-plpython.x86_64 : The Python2 procedural language for PostgreSQL rh-postgresql12-postgresql-pltcl.x86_64 : The Tcl procedural language for PostgreSQL rh-postgresql12-postgresql-server.x86_64 : The programs needed to create and run a PostgreSQL server rh-postgresql12-postgresql-static.x86_64 : Statically linked PostgreSQL libraries rh-postgresql12-postgresql-test.x86_64 : The test suite distributed with PostgreSQL Name and summary matches only, use "search all" for everything.
また、PostgreSQL12の開発パッケージをインストールする際に依存関係で必要なパッケージ(llvm)が必要になるので、EPELをレポジトリに追加します。
[root@zabbix5 tmp]# yum install epel-release 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * centos-sclo-sclo: ftp-srv2.kddilabs.jp * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ epel-release.noarch 0:7-11 を インストール --> 依存性解決を終了しました。 依存性を解決しました ====================================================================================================== Package アーキテクチャー バージョン リポジトリー 容量 ====================================================================================================== インストール中: epel-release noarch 7-11 extras 15 k トランザクションの要約 ====================================================================================================== インストール 1 パッケージ 総ダウンロード容量: 15 k インストール容量: 24 k Is this ok [y/d/N]: y Downloading packages: epel-release-7-11.noarch.rpm | 15 kB 00:00:15 Running transaction check Running transaction test Transaction test succeeded Running transaction 警告: RPMDB は yum 以外で変更されました。 インストール中 : epel-release-7-11.noarch 1/1 検証中 : epel-release-7-11.noarch 1/1 インストール: epel-release.noarch 0:7-11 完了しました! [root@zabbix5 tmp]# ls /etc/yum.repos.d/ CentOS-Base.repo CentOS-SCLo-scl-rh.repo CentOS-fasttrack.repo pgdg-redhat-all.repo CentOS-CR.repo CentOS-SCLo-scl.repo CentOS-x86_64-kernel.repo zabbix.repo CentOS-Debuginfo.repo CentOS-Sources.repo epel-testing.repo CentOS-Media.repo CentOS-Vault.repo epel.repo
ちなみに、依存関係でエラーになった場合、以下のようになります。
--> 依存性の処理をしています: llvm5.0-devel >= 5.0 のパッケージ: postgresql12-devel-12.3-5PGDG.rhel7.x86_64 --> 依存性解決を終了しました。 エラー: パッケージ: postgresql12-devel-12.3-5PGDG.rhel7.x86_64 (pgdg12) 要求: llvm5.0-devel >= 5.0 問題を回避するために --skip-broken を用いることができます。 これらを試行できます: rpm -Va --nofiles --nodigest
では、PostgreSQL12をインストールします。
[root@zabbix5 tmp]# yum install postgresql12 postgresql12-contrib postgresql12-devel postgresql12-docs postgresql12-libs postgresql12-odbc postgresql12-plperl postgresql12-plpython postgresql12-plpython3 postgresql12-pltcl postgresql12-server postgresql12-test 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 4.4 kB 00:00:00 * base: ftp-srv2.kddilabs.jp * centos-sclo-sclo: ftp-srv2.kddilabs.jp * epel: nrt.edge.kernel.org * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp epel | 4.7 kB 00:00:00 (1/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00 (2/3): epel/x86_64/group_gz | 95 kB 00:00:15 (3/3): epel/x86_64/primary_db | 6.8 MB 00:00:22 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ postgresql12.x86_64 0:12.3-5PGDG.rhel7 を インストール --> 依存性の処理をしています: libicu のパッケージ: postgresql12-12.3-5PGDG.rhel7.x86_64 ---> パッケージ postgresql12-contrib.x86_64 0:12.3-5PGDG.rhel7 を インストール --> 依存性の処理をしています: libperl.so()(64bit) のパッケージ: postgresql12-contrib-12.3-5PGDG.rhel7.x86_64 ---> パッケージ postgresql12-devel.x86_64 0:12.3-5PGDG.rhel7 を インストール --> 依存性の処理をしています: llvm5.0-devel >= 5.0 のパッケージ: postgresql12-devel-12.3-5PGDG.rhel7.x86_64 --> 依存性の処理をしています: llvm-toolset-7-clang >= 4.0.1 のパッケージ: postgresql12-devel-12.3-5PGDG.rhel7.x86_64 --> 依存性の処理をしています: libicu-devel のパッケージ: postgresql12-devel-12.3-5PGDG.rhel7.x86_64 ---> パッケージ postgresql12-docs.x86_64 0:12.3-5PGDG.rhel7 を インストール ---> パッケージ postgresql12-libs.x86_64 0:12.3-5PGDG.rhel7 を インストール ---> パッケージ postgresql12-odbc.x86_64 0:12.02.0000-1PGDG.rhel7 を インストール ---> パッケージ postgresql12-plperl.x86_64 0:12.3-5PGDG.rhel7 を インストール --> 依存性の処理をしています: perl(:MODULE_COMPAT_5.16.3) のパッケージ: postgresql12-plperl-12.3-5PGDG.rhel7.x86_64 ---> パッケージ postgresql12-plpython.x86_64 0:12.3-5PGDG.rhel7 を インストール ---> パッケージ postgresql12-plpython3.x86_64 0:12.3-5PGDG.rhel7 を インストール --> 依存性の処理をしています: python3-libs のパッケージ: postgresql12-plpython3-12.3-5PGDG.rhel7.x86_64 --> 依存性の処理をしています: libpython3.6m.so.1.0()(64bit) のパッケージ: postgresql12-plpython3-12.3-5PGDG.rhel7.x86_64 ---> パッケージ postgresql12-pltcl.x86_64 0:12.3-5PGDG.rhel7 を インストール --> 依存性の処理をしています: tcl のパッケージ: postgresql12-pltcl-12.3-5PGDG.rhel7.x86_64 --> 依存性の処理をしています: libtcl8.5.so()(64bit) のパッケージ: postgresql12-pltcl-12.3-5PGDG.rhel7.x86_64 ---> パッケージ postgresql12-server.x86_64 0:12.3-5PGDG.rhel7 を インストール ---> パッケージ postgresql12-test.x86_64 0:12.3-5PGDG.rhel7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ libicu.x86_64 0:50.2-4.el7_7 を インストール ---> パッケージ libicu-devel.x86_64 0:50.2-4.el7_7 を インストール ---> パッケージ llvm-toolset-7-clang.x86_64 0:5.0.1-4.el7 を インストール --> 依存性の処理をしています: llvm-toolset-7-clang-libs(x86-64) = 5.0.1-4.el7 のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libLLVM-5.0.so(LLVM_5.0)(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclang.so.5(LLVM_5.0)(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: llvm-toolset-7-runtime のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libLLVM-5.0.so()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclang.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangAST.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangBasic.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangCodeGen.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangDriver.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangFormat.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangFrontend.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangFrontendTool.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangIndex.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangLex.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangParse.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangRewrite.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangRewriteFrontend.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangSerialization.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangStaticAnalyzerFrontend.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangTooling.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: libclangToolingCore.so.5()(64bit) のパッケージ: llvm-toolset-7-clang-5.0.1-4.el7.x86_64 ---> パッケージ llvm5.0-devel.x86_64 0:5.0.1-7.el7 を インストール --> 依存性の処理をしています: llvm5.0(x86-64) = 5.0.1-7.el7 のパッケージ: llvm5.0-devel-5.0.1-7.el7.x86_64 --> 依存性の処理をしています: libedit-devel のパッケージ: llvm5.0-devel-5.0.1-7.el7.x86_64 ---> パッケージ perl.x86_64 4:5.16.3-295.el7 を インストール --> 依存性の処理をしています: perl(Socket) >= 1.3 のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Scalar::Util) >= 1.10 のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl-macros のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(threads::shared) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(threads) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(constant) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Time::Local) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Time::HiRes) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Storable) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Socket) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Scalar::Util) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Pod::Simple::XHTML) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Pod::Simple::Search) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Getopt::Long) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Filter::Util::Call) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(File::Temp) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(File::Spec::Unix) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(File::Spec::Functions) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(File::Spec) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(File::Path) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Exporter) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Cwd) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 --> 依存性の処理をしています: perl(Carp) のパッケージ: 4:perl-5.16.3-295.el7.x86_64 ---> パッケージ perl-libs.x86_64 4:5.16.3-295.el7 を インストール ---> パッケージ python3-libs.x86_64 0:3.6.8-13.el7 を インストール --> 依存性の処理をしています: python(abi) = 3.6 のパッケージ: python3-libs-3.6.8-13.el7.x86_64 --> 依存性の処理をしています: libtirpc.so.1()(64bit) のパッケージ: python3-libs-3.6.8-13.el7.x86_64 ---> パッケージ tcl.x86_64 1:8.5.13-8.el7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ libedit-devel.x86_64 0:3.0-12.20121213cvs.el7 を インストール --> 依存性の処理をしています: ncurses-devel のパッケージ: libedit-devel-3.0-12.20121213cvs.el7.x86_64 ---> パッケージ libtirpc.x86_64 0:0.2.4-0.16.el7 を インストール ---> パッケージ llvm-toolset-7-clang-libs.x86_64 0:5.0.1-4.el7 を インストール --> 依存性の処理をしています: llvm-toolset-7-compiler-rt(x86-64) >= 5.0.1 のパッケージ: llvm-toolset-7-clang-libs-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: llvm-toolset-7-libomp(x86-64) >= 5.0.1 のパッケージ: llvm-toolset-7-clang-libs-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: devtoolset-7-gcc-c++ のパッケージ: llvm-toolset-7-clang-libs-5.0.1-4.el7.x86_64 --> 依存性の処理をしています: devtoolset-7-libstdc++-devel のパッケージ: llvm-toolset-7-clang-libs-5.0.1-4.el7.x86_64 ---> パッケージ llvm-toolset-7-llvm-libs.x86_64 0:5.0.1-8.el7 を インストール ---> パッケージ llvm-toolset-7-runtime.x86_64 0:5.0.1-4.el7 を インストール ---> パッケージ llvm5.0.x86_64 0:5.0.1-7.el7 を インストール --> 依存性の処理をしています: llvm5.0-libs(x86-64) = 5.0.1-7.el7 のパッケージ: llvm5.0-5.0.1-7.el7.x86_64 ---> パッケージ perl-Carp.noarch 0:1.26-244.el7 を インストール ---> パッケージ perl-Exporter.noarch 0:5.68-3.el7 を インストール ---> パッケージ perl-File-Path.noarch 0:2.09-2.el7 を インストール ---> パッケージ perl-File-Temp.noarch 0:0.23.01-3.el7 を インストール ---> パッケージ perl-Filter.x86_64 0:1.49-3.el7 を インストール ---> パッケージ perl-Getopt-Long.noarch 0:2.40-3.el7 を インストール --> 依存性の処理をしています: perl(Pod::Usage) >= 1.14 のパッケージ: perl-Getopt-Long-2.40-3.el7.noarch --> 依存性の処理をしています: perl(Text::ParseWords) のパッケージ: perl-Getopt-Long-2.40-3.el7.noarch ---> パッケージ perl-PathTools.x86_64 0:3.40-5.el7 を インストール ---> パッケージ perl-Pod-Simple.noarch 1:3.28-4.el7 を インストール --> 依存性の処理をしています: perl(Pod::Escapes) >= 1.04 のパッケージ: 1:perl-Pod-Simple-3.28-4.el7.noarch --> 依存性の処理をしています: perl(Encode) のパッケージ: 1:perl-Pod-Simple-3.28-4.el7.noarch ---> パッケージ perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 を インストール ---> パッケージ perl-Socket.x86_64 0:2.010-5.el7 を インストール ---> パッケージ perl-Storable.x86_64 0:2.45-3.el7 を インストール ---> パッケージ perl-Time-HiRes.x86_64 4:1.9725-3.el7 を インストール ---> パッケージ perl-Time-Local.noarch 0:1.2300-2.el7 を インストール ---> パッケージ perl-constant.noarch 0:1.27-2.el7 を インストール ---> パッケージ perl-macros.x86_64 4:5.16.3-295.el7 を インストール ---> パッケージ perl-threads.x86_64 0:1.87-4.el7 を インストール ---> パッケージ perl-threads-shared.x86_64 0:1.43-6.el7 を インストール ---> パッケージ python3.x86_64 0:3.6.8-13.el7 を インストール --> 依存性の処理をしています: python3-setuptools のパッケージ: python3-3.6.8-13.el7.x86_64 --> 依存性の処理をしています: python3-pip のパッケージ: python3-3.6.8-13.el7.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ devtoolset-7-gcc-c++.x86_64 0:7.3.1-5.16.el7 を インストール --> 依存性の処理をしています: devtoolset-7-gcc = 7.3.1-5.16.el7 のパッケージ: devtoolset-7-gcc-c++-7.3.1-5.16.el7.x86_64 --> 依存性の処理をしています: devtoolset-7-runtime のパッケージ: devtoolset-7-gcc-c++-7.3.1-5.16.el7.x86_64 --> 依存性の処理をしています: libmpc.so.3()(64bit) のパッケージ: devtoolset-7-gcc-c++-7.3.1-5.16.el7.x86_64 --> 依存性の処理をしています: libmpfr.so.4()(64bit) のパッケージ: devtoolset-7-gcc-c++-7.3.1-5.16.el7.x86_64 ---> パッケージ devtoolset-7-libstdc++-devel.x86_64 0:7.3.1-5.16.el7 を インストール ---> パッケージ llvm-toolset-7-compiler-rt.x86_64 0:5.0.1-2.el7 を インストール ---> パッケージ llvm-toolset-7-libomp.x86_64 0:5.0.1-2.el7 を インストール ---> パッケージ llvm5.0-libs.x86_64 0:5.0.1-7.el7 を インストール ---> パッケージ ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 を インストール ---> パッケージ perl-Encode.x86_64 0:2.51-7.el7 を インストール ---> パッケージ perl-Pod-Escapes.noarch 1:1.04-295.el7 を インストール ---> パッケージ perl-Pod-Usage.noarch 0:1.63-3.el7 を インストール --> 依存性の処理をしています: perl(Pod::Text) >= 3.15 のパッケージ: perl-Pod-Usage-1.63-3.el7.noarch --> 依存性の処理をしています: perl-Pod-Perldoc のパッケージ: perl-Pod-Usage-1.63-3.el7.noarch ---> パッケージ perl-Text-ParseWords.noarch 0:3.29-4.el7 を インストール ---> パッケージ python3-pip.noarch 0:9.0.3-7.el7_7 を インストール ---> パッケージ python3-setuptools.noarch 0:39.2.0-10.el7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ devtoolset-7-gcc.x86_64 0:7.3.1-5.16.el7 を インストール --> 依存性の処理をしています: devtoolset-7-binutils >= 2.22.52.0.1 のパッケージ: devtoolset-7-gcc-7.3.1-5.16.el7.x86_64 --> 依存性の処理をしています: glibc-devel >= 2.2.90-12 のパッケージ: devtoolset-7-gcc-7.3.1-5.16.el7.x86_64 ---> パッケージ devtoolset-7-runtime.x86_64 0:7.1-4.el7 を インストール ---> パッケージ libmpc.x86_64 0:1.0.1-3.el7 を インストール ---> パッケージ mpfr.x86_64 0:3.1.1-4.el7 を インストール ---> パッケージ perl-Pod-Perldoc.noarch 0:3.20-4.el7 を インストール --> 依存性の処理をしています: perl(parent) のパッケージ: perl-Pod-Perldoc-3.20-4.el7.noarch --> 依存性の処理をしています: perl(HTTP::Tiny) のパッケージ: perl-Pod-Perldoc-3.20-4.el7.noarch ---> パッケージ perl-podlators.noarch 0:2.5.1-3.el7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ devtoolset-7-binutils.x86_64 0:2.28-11.el7 を インストール ---> パッケージ glibc-devel.x86_64 0:2.17-307.el7.1 を インストール --> 依存性の処理をしています: glibc-headers = 2.17-307.el7.1 のパッケージ: glibc-devel-2.17-307.el7.1.x86_64 --> 依存性の処理をしています: glibc-headers のパッケージ: glibc-devel-2.17-307.el7.1.x86_64 ---> パッケージ perl-HTTP-Tiny.noarch 0:0.033-3.el7 を インストール ---> パッケージ perl-parent.noarch 1:0.225-244.el7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ glibc-headers.x86_64 0:2.17-307.el7.1 を インストール --> 依存性の処理をしています: kernel-headers >= 2.2.1 のパッケージ: glibc-headers-2.17-307.el7.1.x86_64 --> 依存性の処理をしています: kernel-headers のパッケージ: glibc-headers-2.17-307.el7.1.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ kernel-headers.x86_64 0:3.10.0-1127.10.1.el7 を インストール --> 依存性解決を終了しました。 依存性を解決しました ====================================================================================================== Package アーキテクチャー バージョン リポジトリー 容量 ====================================================================================================== インストール中: postgresql12 x86_64 12.3-5PGDG.rhel7 pgdg12 1.6 M postgresql12-contrib x86_64 12.3-5PGDG.rhel7 pgdg12 609 k postgresql12-devel x86_64 12.3-5PGDG.rhel7 pgdg12 2.2 M postgresql12-docs x86_64 12.3-5PGDG.rhel7 pgdg12 11 M postgresql12-libs x86_64 12.3-5PGDG.rhel7 pgdg12 369 k postgresql12-odbc x86_64 12.02.0000-1PGDG.rhel7 pgdg-common 302 k postgresql12-plperl x86_64 12.3-5PGDG.rhel7 pgdg12 60 k postgresql12-plpython x86_64 12.3-5PGDG.rhel7 pgdg12 95 k postgresql12-plpython3 x86_64 12.3-5PGDG.rhel7 pgdg12 93 k postgresql12-pltcl x86_64 12.3-5PGDG.rhel7 pgdg12 39 k postgresql12-server x86_64 12.3-5PGDG.rhel7 pgdg12 5.0 M postgresql12-test x86_64 12.3-5PGDG.rhel7 pgdg12 1.9 M 依存性関連でのインストールをします: devtoolset-7-binutils x86_64 2.28-11.el7 centos-sclo-rh 5.3 M devtoolset-7-gcc x86_64 7.3.1-5.16.el7 centos-sclo-rh 29 M devtoolset-7-gcc-c++ x86_64 7.3.1-5.16.el7 centos-sclo-rh 11 M devtoolset-7-libstdc++-devel x86_64 7.3.1-5.16.el7 centos-sclo-rh 2.5 M devtoolset-7-runtime x86_64 7.1-4.el7 centos-sclo-rh 20 k glibc-devel x86_64 2.17-307.el7.1 base 1.1 M glibc-headers x86_64 2.17-307.el7.1 base 689 k kernel-headers x86_64 3.10.0-1127.10.1.el7 updates 8.9 M libedit-devel x86_64 3.0-12.20121213cvs.el7 base 32 k libicu x86_64 50.2-4.el7_7 updates 6.9 M libicu-devel x86_64 50.2-4.el7_7 updates 703 k libmpc x86_64 1.0.1-3.el7 base 51 k libtirpc x86_64 0.2.4-0.16.el7 base 89 k llvm-toolset-7-clang x86_64 5.0.1-4.el7 centos-sclo-rh 545 k llvm-toolset-7-clang-libs x86_64 5.0.1-4.el7 centos-sclo-rh 13 M llvm-toolset-7-compiler-rt x86_64 5.0.1-2.el7 centos-sclo-rh 1.7 M llvm-toolset-7-libomp x86_64 5.0.1-2.el7 centos-sclo-rh 246 k llvm-toolset-7-llvm-libs x86_64 5.0.1-8.el7 centos-sclo-rh 13 M llvm-toolset-7-runtime x86_64 5.0.1-4.el7 centos-sclo-rh 1.1 M llvm5.0 x86_64 5.0.1-7.el7 epel 2.6 M llvm5.0-devel x86_64 5.0.1-7.el7 epel 2.3 M llvm5.0-libs x86_64 5.0.1-7.el7 epel 13 M mpfr x86_64 3.1.1-4.el7 base 203 k ncurses-devel x86_64 5.9-14.20130511.el7_4 base 712 k perl x86_64 4:5.16.3-295.el7 base 8.0 M perl-Carp noarch 1.26-244.el7 base 19 k perl-Encode x86_64 2.51-7.el7 base 1.5 M perl-Exporter noarch 5.68-3.el7 base 28 k perl-File-Path noarch 2.09-2.el7 base 26 k perl-File-Temp noarch 0.23.01-3.el7 base 56 k perl-Filter x86_64 1.49-3.el7 base 76 k perl-Getopt-Long noarch 2.40-3.el7 base 56 k perl-HTTP-Tiny noarch 0.033-3.el7 base 38 k perl-PathTools x86_64 3.40-5.el7 base 82 k perl-Pod-Escapes noarch 1:1.04-295.el7 base 51 k perl-Pod-Perldoc noarch 3.20-4.el7 base 87 k perl-Pod-Simple noarch 1:3.28-4.el7 base 216 k perl-Pod-Usage noarch 1.63-3.el7 base 27 k perl-Scalar-List-Utils x86_64 1.27-248.el7 base 36 k perl-Socket x86_64 2.010-5.el7 base 49 k perl-Storable x86_64 2.45-3.el7 base 77 k perl-Text-ParseWords noarch 3.29-4.el7 base 14 k perl-Time-HiRes x86_64 4:1.9725-3.el7 base 45 k perl-Time-Local noarch 1.2300-2.el7 base 24 k perl-constant noarch 1.27-2.el7 base 19 k perl-libs x86_64 4:5.16.3-295.el7 base 689 k perl-macros x86_64 4:5.16.3-295.el7 base 44 k perl-parent noarch 1:0.225-244.el7 base 12 k perl-podlators noarch 2.5.1-3.el7 base 112 k perl-threads x86_64 1.87-4.el7 base 49 k perl-threads-shared x86_64 1.43-6.el7 base 39 k python3 x86_64 3.6.8-13.el7 base 69 k python3-libs x86_64 3.6.8-13.el7 base 7.0 M python3-pip noarch 9.0.3-7.el7_7 updates 1.8 M python3-setuptools noarch 39.2.0-10.el7 base 629 k tcl x86_64 1:8.5.13-8.el7 base 1.9 M トランザクションの要約 ====================================================================================================== インストール 12 パッケージ (+56 個の依存関係のパッケージ) 総ダウンロード容量: 162 M インストール容量: 542 M Is this ok [y/d/N]: y Downloading packages: (1/68): devtoolset-7-binutils-2.28-11.el7.x86_64.rpm | 5.3 MB 00:00:20 (2/68): devtoolset-7-gcc-c++-7.3.1-5.16.el7.x86_64.rpm | 11 MB 00:00:08 (3/68): devtoolset-7-libstdc++-devel-7.3.1-5.16.el7.x86_64.rpm | 2.5 MB 00:00:02 (4/68): devtoolset-7-runtime-7.1-4.el7.x86_64.rpm | 20 kB 00:00:00 (5/68): libedit-devel-3.0-12.20121213cvs.el7.x86_64.rpm | 32 kB 00:00:00 (6/68): glibc-headers-2.17-307.el7.1.x86_64.rpm | 689 kB 00:00:00 (7/68): libicu-devel-50.2-4.el7_7.x86_64.rpm | 703 kB 00:00:00 (8/68): libmpc-1.0.1-3.el7.x86_64.rpm | 51 kB 00:00:00 (9/68): libtirpc-0.2.4-0.16.el7.x86_64.rpm | 89 kB 00:00:00 (10/68): libicu-50.2-4.el7_7.x86_64.rpm | 6.9 MB 00:00:01 (11/68): llvm-toolset-7-clang-5.0.1-4.el7.x86_64.rpm | 545 kB 00:00:01 (12/68): llvm-toolset-7-clang-libs-5.0.1-4.el7.x86_64.rpm | 13 MB 00:00:07 (13/68): llvm-toolset-7-compiler-rt-5.0.1-2.el7.x86_64.rpm | 1.7 MB 00:00:01 (14/68): llvm-toolset-7-libomp-5.0.1-2.el7.x86_64.rpm | 246 kB 00:00:00 (15/68): devtoolset-7-gcc-7.3.1-5.16.el7.x86_64.rpm | 29 MB 00:00:44 warning: /var/cache/yum/x86_64/7/epel/packages/llvm5.0-5.0.1-7.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY llvm5.0-5.0.1-7.el7.x86_64.rpm の公開鍵がインストールされていません (16/68): llvm5.0-5.0.1-7.el7.x86_64.rpm | 2.6 MB 00:00:00 (17/68): llvm5.0-devel-5.0.1-7.el7.x86_64.rpm | 2.3 MB 00:00:00 (18/68): llvm-toolset-7-runtime-5.0.1-4.el7.x86_64.rpm | 1.1 MB 00:00:01 (19/68): mpfr-3.1.1-4.el7.x86_64.rpm | 203 kB 00:00:00 (20/68): ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm | 712 kB 00:00:00 (21/68): glibc-devel-2.17-307.el7.1.x86_64.rpm | 1.1 MB 00:00:16 (22/68): perl-Carp-1.26-244.el7.noarch.rpm | 19 kB 00:00:00 (23/68): perl-5.16.3-295.el7.x86_64.rpm | 8.0 MB 00:00:02 (24/68): perl-Encode-2.51-7.el7.x86_64.rpm | 1.5 MB 00:00:00 (25/68): perl-Exporter-5.68-3.el7.noarch.rpm | 28 kB 00:00:00 (26/68): perl-File-Temp-0.23.01-3.el7.noarch.rpm | 56 kB 00:00:00 (27/68): kernel-headers-3.10.0-1127.10.1.el7.x86_64.rpm | 8.9 MB 00:00:17 (28/68): perl-Filter-1.49-3.el7.x86_64.rpm | 76 kB 00:00:00 (29/68): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm | 38 kB 00:00:00 (30/68): perl-Getopt-Long-2.40-3.el7.noarch.rpm | 56 kB 00:00:00 (31/68): perl-Pod-Escapes-1.04-295.el7.noarch.rpm | 51 kB 00:00:00 (32/68): perl-PathTools-3.40-5.el7.x86_64.rpm | 82 kB 00:00:00 (33/68): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm | 87 kB 00:00:00 (34/68): perl-Pod-Simple-3.28-4.el7.noarch.rpm | 216 kB 00:00:00 (35/68): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm | 36 kB 00:00:00 (36/68): perl-Socket-2.010-5.el7.x86_64.rpm | 49 kB 00:00:00 (37/68): perl-Storable-2.45-3.el7.x86_64.rpm | 77 kB 00:00:00 (38/68): perl-Text-ParseWords-3.29-4.el7.noarch.rpm | 14 kB 00:00:00 (39/68): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm | 45 kB 00:00:00 (40/68): perl-Time-Local-1.2300-2.el7.noarch.rpm | 24 kB 00:00:00 (41/68): perl-constant-1.27-2.el7.noarch.rpm | 19 kB 00:00:00 (42/68): llvm5.0-libs-5.0.1-7.el7.x86_64.rpm | 13 MB 00:00:04 (43/68): perl-File-Path-2.09-2.el7.noarch.rpm | 26 kB 00:00:00 (44/68): perl-Pod-Usage-1.63-3.el7.noarch.rpm | 27 kB 00:00:00 (45/68): perl-parent-0.225-244.el7.noarch.rpm | 12 kB 00:00:00 (46/68): perl-macros-5.16.3-295.el7.x86_64.rpm | 44 kB 00:00:00 (47/68): perl-threads-shared-1.43-6.el7.x86_64.rpm | 39 kB 00:00:00 (48/68): perl-libs-5.16.3-295.el7.x86_64.rpm | 689 kB 00:00:00 (49/68): perl-threads-1.87-4.el7.x86_64.rpm | 49 kB 00:00:00 (50/68): perl-podlators-2.5.1-3.el7.noarch.rpm | 112 kB 00:00:00 (51/68): llvm-toolset-7-llvm-libs-5.0.1-8.el7.x86_64.rpm | 13 MB 00:00:18 warning: /var/cache/yum/x86_64/7/pgdg12/packages/postgresql12-contrib-12.3-5PGDG.rhel7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY postgresql12-contrib-12.3-5PGDG.rhel7.x86_64.rpm の公開鍵がインストールされていません (52/68): postgresql12-contrib-12.3-5PGDG.rhel7.x86_64.rpm | 609 kB 00:00:31 (53/68): postgresql12-12.3-5PGDG.rhel7.x86_64.rpm | 1.6 MB 00:00:32 (54/68): postgresql12-devel-12.3-5PGDG.rhel7.x86_64.rpm | 2.2 MB 00:00:10 (55/68): postgresql12-libs-12.3-5PGDG.rhel7.x86_64.rpm | 369 kB 00:00:01 (56/68): postgresql12-plperl-12.3-5PGDG.rhel7.x86_64.rpm | 60 kB 00:00:00 (57/68): postgresql12-plpython-12.3-5PGDG.rhel7.x86_64.rpm | 95 kB 00:00:02 (58/68): postgresql12-plpython3-12.3-5PGDG.rhel7.x86_64.rpm | 93 kB 00:00:00 (59/68): postgresql12-pltcl-12.3-5PGDG.rhel7.x86_64.rpm | 39 kB 00:00:00 (60/68): postgresql12-docs-12.3-5PGDG.rhel7.x86_64.rpm | 11 MB 00:00:17 (61/68): python3-libs-3.6.8-13.el7.x86_64.rpm | 7.0 MB 00:00:01 (62/68): postgresql12-test-12.3-5PGDG.rhel7.x86_64.rpm | 1.9 MB 00:00:03 (63/68): python3-setuptools-39.2.0-10.el7.noarch.rpm | 629 kB 00:00:00 (64/68): tcl-8.5.13-8.el7.x86_64.rpm | 1.9 MB 00:00:00 (65/68): postgresql12-server-12.3-5PGDG.rhel7.x86_64.rpm | 5.0 MB 00:00:17 (66/68): python3-3.6.8-13.el7.x86_64.rpm | 69 kB 00:00:15 (67/68): python3-pip-9.0.3-7.el7_7.noarch.rpm | 1.8 MB 00:00:15 postgresql12-odbc-12.02.0000-1PGDG.rhel7.x86_64.rpm の公開鍵がインストールされていません 00:00:00 ETA (68/68): postgresql12-odbc-12.02.0000-1PGDG.rhel7.x86_64.rpm | 302 kB 00:00:30 ------------------------------------------------------------------------------------------------------ 合計 1.3 MB/s | 162 MB 00:02:01 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 から鍵を取得中です。 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) <epel@fedoraproject.org>" Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-11.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 上記の処理を行います。よろしいでしょうか? [y/N]y file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG から鍵を取得中です。 Importing GPG key 0x442DF0F8: Userid : "PostgreSQL RPM Building Project <pgsqlrpms-hackers@pgfoundry.org>" Fingerprint: 68c9 e2b9 1a37 d136 fe74 d176 1f16 d2e1 442d f0f8 Package : pgdg-redhat-repo-42.0-11.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG 上記の処理を行います。よろしいでしょうか? [y/N]y Running transaction check Running transaction test Transaction test succeeded Running transaction インストール中 : postgresql12-libs-12.3-5PGDG.rhel7.x86_64 1/68 インストール中 : llvm-toolset-7-runtime-5.0.1-4.el7.x86_64 2/68 インストール中 : llvm5.0-libs-5.0.1-7.el7.x86_64 3/68 インストール中 : devtoolset-7-runtime-7.1-4.el7.x86_64 4/68 インストール中 : libicu-50.2-4.el7_7.x86_64 5/68 インストール中 : postgresql12-12.3-5PGDG.rhel7.x86_64 6/68 インストール中 : postgresql12-server-12.3-5PGDG.rhel7.x86_64 7/68 インストール中 : mpfr-3.1.1-4.el7.x86_64 8/68 インストール中 : libmpc-1.0.1-3.el7.x86_64 9/68 インストール中 : devtoolset-7-libstdc++-devel-7.3.1-5.16.el7.x86_64 10/68 インストール中 : llvm-toolset-7-llvm-libs-5.0.1-8.el7.x86_64 11/68 インストール中 : libicu-devel-50.2-4.el7_7.x86_64 12/68 インストール中 : devtoolset-7-binutils-2.28-11.el7.x86_64 13/68 インストール中 : llvm5.0-5.0.1-7.el7.x86_64 14/68 インストール中 : llvm-toolset-7-compiler-rt-5.0.1-2.el7.x86_64 15/68 インストール中 : llvm-toolset-7-libomp-5.0.1-2.el7.x86_64 16/68 インストール中 : 1:perl-parent-0.225-244.el7.noarch 17/68 インストール中 : perl-HTTP-Tiny-0.033-3.el7.noarch 18/68 インストール中 : perl-podlators-2.5.1-3.el7.noarch 19/68 インストール中 : perl-Pod-Perldoc-3.20-4.el7.noarch 20/68 インストール中 : 1:perl-Pod-Escapes-1.04-295.el7.noarch 21/68 インストール中 : perl-Text-ParseWords-3.29-4.el7.noarch 22/68 インストール中 : perl-Encode-2.51-7.el7.x86_64 23/68 インストール中 : perl-Pod-Usage-1.63-3.el7.noarch 24/68 インストール中 : 4:perl-libs-5.16.3-295.el7.x86_64 25/68 インストール中 : 4:perl-macros-5.16.3-295.el7.x86_64 26/68 インストール中 : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 27/68 インストール中 : perl-constant-1.27-2.el7.noarch 28/68 インストール中 : perl-Socket-2.010-5.el7.x86_64 29/68 インストール中 : perl-Time-Local-1.2300-2.el7.noarch 30/68 インストール中 : perl-Carp-1.26-244.el7.noarch 31/68 インストール中 : perl-Storable-2.45-3.el7.x86_64 32/68 インストール中 : perl-PathTools-3.40-5.el7.x86_64 33/68 インストール中 : perl-Scalar-List-Utils-1.27-248.el7.x86_64 34/68 インストール中 : perl-Exporter-5.68-3.el7.noarch 35/68 インストール中 : perl-File-Temp-0.23.01-3.el7.noarch 36/68 インストール中 : perl-File-Path-2.09-2.el7.noarch 37/68 インストール中 : perl-threads-shared-1.43-6.el7.x86_64 38/68 インストール中 : perl-threads-1.87-4.el7.x86_64 39/68 インストール中 : perl-Filter-1.49-3.el7.x86_64 40/68 インストール中 : 1:perl-Pod-Simple-3.28-4.el7.noarch 41/68 インストール中 : perl-Getopt-Long-2.40-3.el7.noarch 42/68 インストール中 : 4:perl-5.16.3-295.el7.x86_64 43/68 インストール中 : kernel-headers-3.10.0-1127.10.1.el7.x86_64 44/68 インストール中 : glibc-headers-2.17-307.el7.1.x86_64 45/68 インストール中 : glibc-devel-2.17-307.el7.1.x86_64 46/68 インストール中 : ncurses-devel-5.9-14.20130511.el7_4.x86_64 47/68 インストール中 : libedit-devel-3.0-12.20121213cvs.el7.x86_64 48/68 インストール中 : llvm5.0-devel-5.0.1-7.el7.x86_64 49/68 インストール中 : 1:tcl-8.5.13-8.el7.x86_64 50/68 インストール中 : libtirpc-0.2.4-0.16.el7.x86_64 51/68 インストール中 : python3-setuptools-39.2.0-10.el7.noarch 52/68 インストール中 : python3-pip-9.0.3-7.el7_7.noarch 53/68 インストール中 : python3-3.6.8-13.el7.x86_64 54/68 インストール中 : python3-libs-3.6.8-13.el7.x86_64 55/68 インストール中 : postgresql12-plpython3-12.3-5PGDG.rhel7.x86_64 56/68 インストール中 : postgresql12-pltcl-12.3-5PGDG.rhel7.x86_64 57/68 インストール中 : postgresql12-plperl-12.3-5PGDG.rhel7.x86_64 58/68 インストール中 : postgresql12-contrib-12.3-5PGDG.rhel7.x86_64 59/68 インストール中 : postgresql12-plpython-12.3-5PGDG.rhel7.x86_64 60/68 インストール中 : postgresql12-odbc-12.02.0000-1PGDG.rhel7.x86_64 61/68 インストール中 : postgresql12-docs-12.3-5PGDG.rhel7.x86_64 62/68 インストール中 : devtoolset-7-gcc-7.3.1-5.16.el7.x86_64 63/68 インストール中 : devtoolset-7-gcc-c++-7.3.1-5.16.el7.x86_64 64/68 インストール中 : llvm-toolset-7-clang-libs-5.0.1-4.el7.x86_64 65/68 インストール中 : llvm-toolset-7-clang-5.0.1-4.el7.x86_64 66/68 インストール中 : postgresql12-devel-12.3-5PGDG.rhel7.x86_64 67/68 インストール中 : postgresql12-test-12.3-5PGDG.rhel7.x86_64 68/68 検証中 : libtirpc-0.2.4-0.16.el7.x86_64 1/68 検証中 : perl-HTTP-Tiny-0.033-3.el7.noarch 2/68 検証中 : 1:tcl-8.5.13-8.el7.x86_64 3/68 検証中 : libedit-devel-3.0-12.20121213cvs.el7.x86_64 4/68 検証中 : python3-setuptools-39.2.0-10.el7.noarch 5/68 検証中 : llvm5.0-devel-5.0.1-7.el7.x86_64 6/68 検証中 : llvm5.0-libs-5.0.1-7.el7.x86_64 7/68 検証中 : perl-threads-shared-1.43-6.el7.x86_64 8/68 検証中 : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 9/68 検証中 : 1:perl-Pod-Escapes-1.04-295.el7.noarch 10/68 検証中 : ncurses-devel-5.9-14.20130511.el7_4.x86_64 11/68 検証中 : libicu-devel-50.2-4.el7_7.x86_64 12/68 検証中 : perl-constant-1.27-2.el7.noarch 13/68 検証中 : perl-PathTools-3.40-5.el7.x86_64 14/68 検証中 : mpfr-3.1.1-4.el7.x86_64 15/68 検証中 : postgresql12-test-12.3-5PGDG.rhel7.x86_64 16/68 検証中 : postgresql12-plperl-12.3-5PGDG.rhel7.x86_64 17/68 検証中 : postgresql12-12.3-5PGDG.rhel7.x86_64 18/68 検証中 : perl-Socket-2.010-5.el7.x86_64 19/68 検証中 : postgresql12-contrib-12.3-5PGDG.rhel7.x86_64 20/68 検証中 : llvm-toolset-7-clang-libs-5.0.1-4.el7.x86_64 21/68 検証中 : llvm-toolset-7-runtime-5.0.1-4.el7.x86_64 22/68 検証中 : postgresql12-docs-12.3-5PGDG.rhel7.x86_64 23/68 検証中 : 4:perl-libs-5.16.3-295.el7.x86_64 24/68 検証中 : postgresql12-devel-12.3-5PGDG.rhel7.x86_64 25/68 検証中 : perl-File-Temp-0.23.01-3.el7.noarch 26/68 検証中 : 1:perl-Pod-Simple-3.28-4.el7.noarch 27/68 検証中 : perl-Time-Local-1.2300-2.el7.noarch 28/68 検証中 : postgresql12-odbc-12.02.0000-1PGDG.rhel7.x86_64 29/68 検証中 : postgresql12-plpython-12.3-5PGDG.rhel7.x86_64 30/68 検証中 : libicu-50.2-4.el7_7.x86_64 31/68 検証中 : python3-libs-3.6.8-13.el7.x86_64 32/68 検証中 : kernel-headers-3.10.0-1127.10.1.el7.x86_64 33/68 検証中 : 4:perl-macros-5.16.3-295.el7.x86_64 34/68 検証中 : 4:perl-5.16.3-295.el7.x86_64 35/68 検証中 : perl-Carp-1.26-244.el7.noarch 36/68 検証中 : devtoolset-7-runtime-7.1-4.el7.x86_64 37/68 検証中 : llvm-toolset-7-clang-5.0.1-4.el7.x86_64 38/68 検証中 : postgresql12-libs-12.3-5PGDG.rhel7.x86_64 39/68 検証中 : devtoolset-7-gcc-7.3.1-5.16.el7.x86_64 40/68 検証中 : postgresql12-plpython3-12.3-5PGDG.rhel7.x86_64 41/68 検証中 : devtoolset-7-binutils-2.28-11.el7.x86_64 42/68 検証中 : perl-Storable-2.45-3.el7.x86_64 43/68 検証中 : perl-Scalar-List-Utils-1.27-248.el7.x86_64 44/68 検証中 : libmpc-1.0.1-3.el7.x86_64 45/68 検証中 : llvm-toolset-7-compiler-rt-5.0.1-2.el7.x86_64 46/68 検証中 : python3-pip-9.0.3-7.el7_7.noarch 47/68 検証中 : llvm5.0-5.0.1-7.el7.x86_64 48/68 検証中 : perl-Pod-Usage-1.63-3.el7.noarch 49/68 検証中 : postgresql12-pltcl-12.3-5PGDG.rhel7.x86_64 50/68 検証中 : perl-Encode-2.51-7.el7.x86_64 51/68 検証中 : perl-Exporter-5.68-3.el7.noarch 52/68 検証中 : glibc-headers-2.17-307.el7.1.x86_64 53/68 検証中 : perl-Pod-Perldoc-3.20-4.el7.noarch 54/68 検証中 : perl-podlators-2.5.1-3.el7.noarch 55/68 検証中 : perl-File-Path-2.09-2.el7.noarch 56/68 検証中 : llvm-toolset-7-libomp-5.0.1-2.el7.x86_64 57/68 検証中 : postgresql12-server-12.3-5PGDG.rhel7.x86_64 58/68 検証中 : perl-threads-1.87-4.el7.x86_64 59/68 検証中 : llvm-toolset-7-llvm-libs-5.0.1-8.el7.x86_64 60/68 検証中 : perl-Filter-1.49-3.el7.x86_64 61/68 検証中 : perl-Getopt-Long-2.40-3.el7.noarch 62/68 検証中 : perl-Text-ParseWords-3.29-4.el7.noarch 63/68 検証中 : python3-3.6.8-13.el7.x86_64 64/68 検証中 : devtoolset-7-gcc-c++-7.3.1-5.16.el7.x86_64 65/68 検証中 : 1:perl-parent-0.225-244.el7.noarch 66/68 検証中 : glibc-devel-2.17-307.el7.1.x86_64 67/68 検証中 : devtoolset-7-libstdc++-devel-7.3.1-5.16.el7.x86_64 68/68 インストール: postgresql12.x86_64 0:12.3-5PGDG.rhel7 postgresql12-contrib.x86_64 0:12.3-5PGDG.rhel7 postgresql12-devel.x86_64 0:12.3-5PGDG.rhel7 postgresql12-docs.x86_64 0:12.3-5PGDG.rhel7 postgresql12-libs.x86_64 0:12.3-5PGDG.rhel7 postgresql12-odbc.x86_64 0:12.02.0000-1PGDG.rhel7 postgresql12-plperl.x86_64 0:12.3-5PGDG.rhel7 postgresql12-plpython.x86_64 0:12.3-5PGDG.rhel7 postgresql12-plpython3.x86_64 0:12.3-5PGDG.rhel7 postgresql12-pltcl.x86_64 0:12.3-5PGDG.rhel7 postgresql12-server.x86_64 0:12.3-5PGDG.rhel7 postgresql12-test.x86_64 0:12.3-5PGDG.rhel7 依存性関連をインストールしました: devtoolset-7-binutils.x86_64 0:2.28-11.el7 devtoolset-7-gcc.x86_64 0:7.3.1-5.16.el7 devtoolset-7-gcc-c++.x86_64 0:7.3.1-5.16.el7 devtoolset-7-libstdc++-devel.x86_64 0:7.3.1-5.16.el7 devtoolset-7-runtime.x86_64 0:7.1-4.el7 glibc-devel.x86_64 0:2.17-307.el7.1 glibc-headers.x86_64 0:2.17-307.el7.1 kernel-headers.x86_64 0:3.10.0-1127.10.1.el7 libedit-devel.x86_64 0:3.0-12.20121213cvs.el7 libicu.x86_64 0:50.2-4.el7_7 libicu-devel.x86_64 0:50.2-4.el7_7 libmpc.x86_64 0:1.0.1-3.el7 libtirpc.x86_64 0:0.2.4-0.16.el7 llvm-toolset-7-clang.x86_64 0:5.0.1-4.el7 llvm-toolset-7-clang-libs.x86_64 0:5.0.1-4.el7 llvm-toolset-7-compiler-rt.x86_64 0:5.0.1-2.el7 llvm-toolset-7-libomp.x86_64 0:5.0.1-2.el7 llvm-toolset-7-llvm-libs.x86_64 0:5.0.1-8.el7 llvm-toolset-7-runtime.x86_64 0:5.0.1-4.el7 llvm5.0.x86_64 0:5.0.1-7.el7 llvm5.0-devel.x86_64 0:5.0.1-7.el7 llvm5.0-libs.x86_64 0:5.0.1-7.el7 mpfr.x86_64 0:3.1.1-4.el7 ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 perl.x86_64 4:5.16.3-295.el7 perl-Carp.noarch 0:1.26-244.el7 perl-Encode.x86_64 0:2.51-7.el7 perl-Exporter.noarch 0:5.68-3.el7 perl-File-Path.noarch 0:2.09-2.el7 perl-File-Temp.noarch 0:0.23.01-3.el7 perl-Filter.x86_64 0:1.49-3.el7 perl-Getopt-Long.noarch 0:2.40-3.el7 perl-HTTP-Tiny.noarch 0:0.033-3.el7 perl-PathTools.x86_64 0:3.40-5.el7 perl-Pod-Escapes.noarch 1:1.04-295.el7 perl-Pod-Perldoc.noarch 0:3.20-4.el7 perl-Pod-Simple.noarch 1:3.28-4.el7 perl-Pod-Usage.noarch 0:1.63-3.el7 perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 perl-Socket.x86_64 0:2.010-5.el7 perl-Storable.x86_64 0:2.45-3.el7 perl-Text-ParseWords.noarch 0:3.29-4.el7 perl-Time-HiRes.x86_64 4:1.9725-3.el7 perl-Time-Local.noarch 0:1.2300-2.el7 perl-constant.noarch 0:1.27-2.el7 perl-libs.x86_64 4:5.16.3-295.el7 perl-macros.x86_64 4:5.16.3-295.el7 perl-parent.noarch 1:0.225-244.el7 perl-podlators.noarch 0:2.5.1-3.el7 perl-threads.x86_64 0:1.87-4.el7 perl-threads-shared.x86_64 0:1.43-6.el7 python3.x86_64 0:3.6.8-13.el7 python3-libs.x86_64 0:3.6.8-13.el7 python3-pip.noarch 0:9.0.3-7.el7_7 python3-setuptools.noarch 0:39.2.0-10.el7 tcl.x86_64 1:8.5.13-8.el7 完了しました!
postgresユーザも追加されています。
[root@zabbix5 tmp]# cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/sbin/nologin operator:x:11:0:operator:/root:/sbin/nologin games:x:12:100:games:/usr/games:/sbin/nologin ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin nobody:x:99:99:Nobody:/:/sbin/nologin systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin dbus:x:81:81:System message bus:/:/sbin/nologin polkitd:x:999:998:User for polkitd:/:/sbin/nologin sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin postfix:x:89:89::/var/spool/postfix:/sbin/nologin chrony:x:998:996::/var/lib/chrony:/sbin/nologin takahiro:x:1000:1000:takahiro:/home/takahiro:/bin/bash zabbix:x:997:995:Zabbix Monitoring System:/var/lib/zabbix:/sbin/nologin apache:x:48:48:Apache:/opt/rh/httpd24/root/usr/share/httpd:/sbin/nologin nginx:x:996:993:Nginx web server:/var/opt/rh/rh-nginx116/lib/nginx:/sbin/nologin postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash
続いて、PostgreSQLに初期DBの作成をします。
[root@zabbix5 tmp]# psql --version psql (PostgreSQL) 12.3 [root@zabbix5 tmp]# /usr/pgsql-12/bin/ clusterdb pg_controldata pg_test_timing createdb pg_ctl pg_upgrade createuser pg_dump pg_waldump dropdb pg_dumpall pgbench dropuser pg_isready postgres ecpg pg_receivewal postgresql-12-check-db-dir initdb pg_recvlogical postgresql-12-setup oid2name pg_resetwal postmaster pg_archivecleanup pg_restore psql pg_basebackup pg_rewind reindexdb pg_checksums pg_standby vacuumdb pg_config pg_test_fsync vacuumlo [root@zabbix5 tmp]# /usr/pgsql-12/bin/postgresql-12-setup initdb Initializing database ... OK
そして、PostgreSQLの起動。
[root@zabbix5 tmp]# ls -l /usr/lib/systemd/system | grep postgresql -rw-r--r--. 1 root root 1729 6月 15 08:22 postgresql-12.service [root@zabbix5 tmp]# systemctl status postgresql-12 ● postgresql-12.service - PostgreSQL 12 database server Loaded: loaded (/usr/lib/systemd/system/postgresql-12.service; disabled; vendor preset: disabled) Active: inactive (dead) Docs: https://www.postgresql.org/docs/12/static/ [root@zabbix5 tmp]# systemctl start postgresql-12 [root@zabbix5 tmp]# systemctl status postgresql-12 ● postgresql-12.service - PostgreSQL 12 database server Loaded: loaded (/usr/lib/systemd/system/postgresql-12.service; disabled; vendor preset: disabled) Active: active (running) since 火 2020-06-23 19:42:54 JST; 38s ago Docs: https://www.postgresql.org/docs/12/static/ Process: 17662 ExecStartPre=/usr/pgsql-12/bin/postgresql-12-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS) Main PID: 17667 (postmaster) CGroup: /system.slice/postgresql-12.service tq17667 /usr/pgsql-12/bin/postmaster -D /var/lib/pgsql/12/data/ tq17669 postgres: logger tq17671 postgres: checkpointer tq17672 postgres: background writer tq17673 postgres: walwriter tq17674 postgres: autovacuum launcher tq17675 postgres: stats collector mq17676 postgres: logical replication launcher 6月 23 19:42:54 zabbix5.0lts.centos7 systemd[1]: Starting PostgreSQL 12 database server... 6月 23 19:42:54 zabbix5.0lts.centos7 postmaster[17667]: 2020-06-23 19:42:54.740 JST [17667] LOG…ます 6月 23 19:42:54 zabbix5.0lts.centos7 postmaster[17667]: 2020-06-23 19:42:54.743 JST [17667] LOG…ます 6月 23 19:42:54 zabbix5.0lts.centos7 postmaster[17667]: 2020-06-23 19:42:54.743 JST [17667] LOG…ます 6月 23 19:42:54 zabbix5.0lts.centos7 postmaster[17667]: 2020-06-23 19:42:54.746 JST [17667] LOG…ます 6月 23 19:42:54 zabbix5.0lts.centos7 postmaster[17667]: 2020-06-23 19:42:54.752 JST [17667] LOG…ます 6月 23 19:42:54 zabbix5.0lts.centos7 postmaster[17667]: 2020-06-23 19:42:54.760 JST [17667] LOG…ます 6月 23 19:42:54 zabbix5.0lts.centos7 postmaster[17667]: 2020-06-23 19:42:54.760 JST [17667] ヒン…。 6月 23 19:42:54 zabbix5.0lts.centos7 systemd[1]: Started PostgreSQL 12 database server. Hint: Some lines were ellipsized, use -l to show in full.
続いて、DB内にzabbixユーザの作成(※パスワードは忘れないように)と、zabbixというデータベースを作成します。
[root@zabbix5 tmp]# sudo -u postgres createuser --pwprompt zabbix 新しいロールのためのパスワード: もう一度入力してください: [root@zabbix5 tmp]# sudo -u postgres createdb -O zabbix zabbix
データベースの確認。4行目にありますね。
[root@zabbix5 tmp]# sudo -u postgres psql -l データベース一覧 名前 | 所有者 | エンコーディング | 照合順序 | Ctype(変換演算子) | アクセス権限 -----------+----------+------------------+-------------+-------------------+----------------------- postgres | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | template0 | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres zabbix | zabbix | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | (4 行)
続いて、zabbixデータベースに初期スキーマとデータをインポートします。
[root@zabbix5 tmp]# zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | sudo -u zabbix psql zabbi x CREATE TABLE CREATE INDEX CREATE TABLE CREATE INDEX CREATE INDEX CREATE TABLE CREATE INDEX . . . (省略) . . . INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 COMMIT
PostgreSQLの設定ファイルの編集。
外部からアクセスできるよう全てのIP、およびTCPポート5432を待ち受けとして設定します。
59行目と64行目が、それです。
[root@zabbix5 tmp]# vi /var/lib/pgsql/12/data/postgresql.conf [root@zabbix5 tmp]# cat -n /var/lib/pgsql/12/data/postgresql.conf 1 # ----------------------------- 2 # PostgreSQL configuration file 3 # ----------------------------- 4 # 5 # This file consists of lines of the form: 6 # 7 # name = value 8 # 9 # (The "=" is optional.) Whitespace may be used. Comments are introduced with 10 # "#" anywhere on a line. The complete list of parameter names and allowed 11 # values can be found in the PostgreSQL documentation. 12 # 13 # The commented-out settings shown in this file represent the default values. 14 # Re-commenting a setting is NOT sufficient to revert it to the default value; 15 # you need to reload the server. 16 # 17 # This file is read on server startup and when the server receives a SIGHUP 18 # signal. If you edit the file on a running system, you have to SIGHUP the 19 # server for the changes to take effect, run "pg_ctl reload", or execute 20 # "SELECT pg_reload_conf()". Some parameters, which are marked below, 21 # require a server shutdown and restart to take effect. 22 # 23 # Any parameter can also be given as a command-line option to the server, e.g., 24 # "postgres -c log_connections=on". Some parameters can be changed at run time 25 # with the "SET" SQL command. 26 # 27 # Memory units: kB = kilobytes Time units: ms = milliseconds 28 # MB = megabytes s = seconds 29 # GB = gigabytes min = minutes 30 # TB = terabytes h = hours 31 # d = days 32 33 34 #------------------------------------------------------------------------------ 35 # FILE LOCATIONS 36 #------------------------------------------------------------------------------ 37 38 # The default values of these variables are driven from the -D command-line 39 # option or PGDATA environment variable, represented here as ConfigDir. 40 41 #data_directory = 'ConfigDir' # use data in another directory 42 # (change requires restart) 43 #hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file 44 # (change requires restart) 45 #ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file 46 # (change requires restart) 47 48 # If external_pid_file is not explicitly set, no extra PID file is written. 49 #external_pid_file = '' # write an extra PID file 50 # (change requires restart) 51 52 53 #------------------------------------------------------------------------------ 54 # CONNECTIONS AND AUTHENTICATION 55 #------------------------------------------------------------------------------ 56 57 # - Connection Settings - 58 59 listen_addresses = '*' # what IP address(es) to listen on; 60 #listen_addresses = 'localhost' # what IP address(es) to listen on; 61 # comma-separated list of addresses; 62 # defaults to 'localhost'; use '*' for all 63 # (change requires restart) 64 port = 5432 # (change requires restart) 65 max_connections = 100 # (change requires restart) 66 #superuser_reserved_connections = 3 # (change requires restart) 67 #unix_socket_directories = '/var/run/postgresql, /tmp' # comma-separated list of directories 68 # (change requires restart) 69 #unix_socket_group = '' # (change requires restart) 70 #unix_socket_permissions = 0777 # begin with 0 to use octal notation 71 # (change requires restart) 72 #bonjour = off # advertise server via Bonjour 73 # (change requires restart) 74 #bonjour_name = '' # defaults to the computer name 75 # (change requires restart) 76 77 # - TCP settings - 78 # see "man 7 tcp" for details 79 80 #tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds; 81 # 0 selects the system default 82 #tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds; 83 # 0 selects the system default 84 #tcp_keepalives_count = 0 # TCP_KEEPCNT; 85 # 0 selects the system default 86 #tcp_user_timeout = 0 # TCP_USER_TIMEOUT, in milliseconds; 87 # 0 selects the system default 88 89 # - Authentication - 90 91 #authentication_timeout = 1min # 1s-600s 92 #password_encryption = md5 # md5 or scram-sha-256 93 #db_user_namespace = off 94 95 # GSSAPI using Kerberos 96 #krb_server_keyfile = '' 97 #krb_caseins_users = off 98 99 # - SSL - 100 101 #ssl = off 102 #ssl_ca_file = '' 103 #ssl_cert_file = 'server.crt' 104 #ssl_crl_file = '' 105 #ssl_key_file = 'server.key' 106 #ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers 107 #ssl_prefer_server_ciphers = on 108 #ssl_ecdh_curve = 'prime256v1' 109 #ssl_min_protocol_version = 'TLSv1' 110 #ssl_max_protocol_version = '' 111 #ssl_dh_params_file = '' 112 #ssl_passphrase_command = '' 113 #ssl_passphrase_command_supports_reload = off 114 115 116 #------------------------------------------------------------------------------ 117 # RESOURCE USAGE (except WAL) 118 #------------------------------------------------------------------------------ 119 120 # - Memory - 121 122 shared_buffers = 128MB # min 128kB 123 # (change requires restart) 124 #huge_pages = try # on, off, or try 125 # (change requires restart) 126 #temp_buffers = 8MB # min 800kB 127 #max_prepared_transactions = 0 # zero disables the feature 128 # (change requires restart) 129 # Caution: it is not advisable to set max_prepared_transactions nonzero unless 130 # you actively intend to use prepared transactions. 131 #work_mem = 4MB # min 64kB 132 #maintenance_work_mem = 64MB # min 1MB 133 #autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem 134 #max_stack_depth = 2MB # min 100kB 135 #shared_memory_type = mmap # the default is the first option 136 # supported by the operating system: 137 # mmap 138 # sysv 139 # windows 140 # (change requires restart) 141 dynamic_shared_memory_type = posix # the default is the first option 142 # supported by the operating system: 143 # posix 144 # sysv 145 # windows 146 # mmap 147 # (change requires restart) 148 149 # - Disk - 150 151 #temp_file_limit = -1 # limits per-process temp file space 152 # in kB, or -1 for no limit 153 154 # - Kernel Resources - 155 156 #max_files_per_process = 1000 # min 25 157 # (change requires restart) 158 159 # - Cost-Based Vacuum Delay - 160 161 #vacuum_cost_delay = 0 # 0-100 milliseconds (0 disables) 162 #vacuum_cost_page_hit = 1 # 0-10000 credits 163 #vacuum_cost_page_miss = 10 # 0-10000 credits 164 #vacuum_cost_page_dirty = 20 # 0-10000 credits 165 #vacuum_cost_limit = 200 # 1-10000 credits 166 167 # - Background Writer - 168 169 #bgwriter_delay = 200ms # 10-10000ms between rounds 170 #bgwriter_lru_maxpages = 100 # max buffers written/round, 0 disables 171 #bgwriter_lru_multiplier = 2.0 # 0-10.0 multiplier on buffers scanned/round 172 #bgwriter_flush_after = 512kB # measured in pages, 0 disables 173 174 # - Asynchronous Behavior - 175 176 #effective_io_concurrency = 1 # 1-1000; 0 disables prefetching 177 #max_worker_processes = 8 # (change requires restart) 178 #max_parallel_maintenance_workers = 2 # taken from max_parallel_workers 179 #max_parallel_workers_per_gather = 2 # taken from max_parallel_workers 180 #parallel_leader_participation = on 181 #max_parallel_workers = 8 # maximum number of max_worker_processes that 182 # can be used in parallel operations 183 #old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate 184 # (change requires restart) 185 #backend_flush_after = 0 # measured in pages, 0 disables 186 187 188 #------------------------------------------------------------------------------ 189 # WRITE-AHEAD LOG 190 #------------------------------------------------------------------------------ 191 192 # - Settings - 193 194 #wal_level = replica # minimal, replica, or logical 195 # (change requires restart) 196 #fsync = on # flush data to disk for crash safety 197 # (turning this off can cause 198 # unrecoverable data corruption) 199 #synchronous_commit = on # synchronization level; 200 # off, local, remote_write, remote_apply, or on 201 #wal_sync_method = fsync # the default is the first option 202 # supported by the operating system: 203 # open_datasync 204 # fdatasync (default on Linux) 205 # fsync 206 # fsync_writethrough 207 # open_sync 208 #full_page_writes = on # recover from partial page writes 209 #wal_compression = off # enable compression of full-page writes 210 #wal_log_hints = off # also do full page writes of non-critical updates 211 # (change requires restart) 212 #wal_init_zero = on # zero-fill new WAL files 213 #wal_recycle = on # recycle WAL files 214 #wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers 215 # (change requires restart) 216 #wal_writer_delay = 200ms # 1-10000 milliseconds 217 #wal_writer_flush_after = 1MB # measured in pages, 0 disables 218 219 #commit_delay = 0 # range 0-100000, in microseconds 220 #commit_siblings = 5 # range 1-1000 221 222 # - Checkpoints - 223 224 #checkpoint_timeout = 5min # range 30s-1d 225 max_wal_size = 1GB 226 min_wal_size = 80MB 227 #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0 228 #checkpoint_flush_after = 256kB # measured in pages, 0 disables 229 #checkpoint_warning = 30s # 0 disables 230 231 # - Archiving - 232 233 #archive_mode = off # enables archiving; off, on, or always 234 # (change requires restart) 235 #archive_command = '' # command to use to archive a logfile segment 236 # placeholders: %p = path of file to archive 237 # %f = file name only 238 # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' 239 #archive_timeout = 0 # force a logfile segment switch after this 240 # number of seconds; 0 disables 241 242 # - Archive Recovery - 243 244 # These are only used in recovery mode. 245 246 #restore_command = '' # command to use to restore an archived logfile segment 247 # placeholders: %p = path of file to restore 248 # %f = file name only 249 # e.g. 'cp /mnt/server/archivedir/%f %p' 250 # (change requires restart) 251 #archive_cleanup_command = '' # command to execute at every restartpoint 252 #recovery_end_command = '' # command to execute at completion of recovery 253 254 # - Recovery Target - 255 256 # Set these only when performing a targeted recovery. 257 258 #recovery_target = '' # 'immediate' to end recovery as soon as a 259 # consistent state is reached 260 # (change requires restart) 261 #recovery_target_name = '' # the named restore point to which recovery will proceed 262 # (change requires restart) 263 #recovery_target_time = '' # the time stamp up to which recovery will proceed 264 # (change requires restart) 265 #recovery_target_xid = '' # the transaction ID up to which recovery will proceed 266 # (change requires restart) 267 #recovery_target_lsn = '' # the WAL LSN up to which recovery will proceed 268 # (change requires restart) 269 #recovery_target_inclusive = on # Specifies whether to stop: 270 # just after the specified recovery target (on) 271 # just before the recovery target (off) 272 # (change requires restart) 273 #recovery_target_timeline = 'latest' # 'current', 'latest', or timeline ID 274 # (change requires restart) 275 #recovery_target_action = 'pause' # 'pause', 'promote', 'shutdown' 276 # (change requires restart) 277 278 279 #------------------------------------------------------------------------------ 280 # REPLICATION 281 #------------------------------------------------------------------------------ 282 283 # - Sending Servers - 284 285 # Set these on the master and on any standby that will send replication data. 286 287 #max_wal_senders = 10 # max number of walsender processes 288 # (change requires restart) 289 #wal_keep_segments = 0 # in logfile segments; 0 disables 290 #wal_sender_timeout = 60s # in milliseconds; 0 disables 291 292 #max_replication_slots = 10 # max number of replication slots 293 # (change requires restart) 294 #track_commit_timestamp = off # collect timestamp of transaction commit 295 # (change requires restart) 296 297 # - Master Server - 298 299 # These settings are ignored on a standby server. 300 301 #synchronous_standby_names = '' # standby servers that provide sync rep 302 # method to choose sync standbys, number of sync standbys, 303 # and comma-separated list of application_name 304 # from standby(s); '*' = all 305 #vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed 306 307 # - Standby Servers - 308 309 # These settings are ignored on a master server. 310 311 #primary_conninfo = '' # connection string to sending server 312 # (change requires restart) 313 #primary_slot_name = '' # replication slot on sending server 314 # (change requires restart) 315 #promote_trigger_file = '' # file name whose presence ends recovery 316 #hot_standby = on # "off" disallows queries during recovery 317 # (change requires restart) 318 #max_standby_archive_delay = 30s # max delay before canceling queries 319 # when reading WAL from archive; 320 # -1 allows indefinite delay 321 #max_standby_streaming_delay = 30s # max delay before canceling queries 322 # when reading streaming WAL; 323 # -1 allows indefinite delay 324 #wal_receiver_status_interval = 10s # send replies at least this often 325 # 0 disables 326 #hot_standby_feedback = off # send info from standby to prevent 327 # query conflicts 328 #wal_receiver_timeout = 60s # time that receiver waits for 329 # communication from master 330 # in milliseconds; 0 disables 331 #wal_retrieve_retry_interval = 5s # time to wait before retrying to 332 # retrieve WAL after a failed attempt 333 #recovery_min_apply_delay = 0 # minimum delay for applying changes during recovery 334 335 # - Subscribers - 336 337 # These settings are ignored on a publisher. 338 339 #max_logical_replication_workers = 4 # taken from max_worker_processes 340 # (change requires restart) 341 #max_sync_workers_per_subscription = 2 # taken from max_logical_replication_workers 342 343 344 #------------------------------------------------------------------------------ 345 # QUERY TUNING 346 #------------------------------------------------------------------------------ 347 348 # - Planner Method Configuration - 349 350 #enable_bitmapscan = on 351 #enable_hashagg = on 352 #enable_hashjoin = on 353 #enable_indexscan = on 354 #enable_indexonlyscan = on 355 #enable_material = on 356 #enable_mergejoin = on 357 #enable_nestloop = on 358 #enable_parallel_append = on 359 #enable_seqscan = on 360 #enable_sort = on 361 #enable_tidscan = on 362 #enable_partitionwise_join = off 363 #enable_partitionwise_aggregate = off 364 #enable_parallel_hash = on 365 #enable_partition_pruning = on 366 367 # - Planner Cost Constants - 368 369 #seq_page_cost = 1.0 # measured on an arbitrary scale 370 #random_page_cost = 4.0 # same scale as above 371 #cpu_tuple_cost = 0.01 # same scale as above 372 #cpu_index_tuple_cost = 0.005 # same scale as above 373 #cpu_operator_cost = 0.0025 # same scale as above 374 #parallel_tuple_cost = 0.1 # same scale as above 375 #parallel_setup_cost = 1000.0 # same scale as above 376 377 #jit_above_cost = 100000 # perform JIT compilation if available 378 # and query more expensive than this; 379 # -1 disables 380 #jit_inline_above_cost = 500000 # inline small functions if query is 381 # more expensive than this; -1 disables 382 #jit_optimize_above_cost = 500000 # use expensive JIT optimizations if 383 # query is more expensive than this; 384 # -1 disables 385 386 #min_parallel_table_scan_size = 8MB 387 #min_parallel_index_scan_size = 512kB 388 #effective_cache_size = 4GB 389 390 # - Genetic Query Optimizer - 391 392 #geqo = on 393 #geqo_threshold = 12 394 #geqo_effort = 5 # range 1-10 395 #geqo_pool_size = 0 # selects default based on effort 396 #geqo_generations = 0 # selects default based on effort 397 #geqo_selection_bias = 2.0 # range 1.5-2.0 398 #geqo_seed = 0.0 # range 0.0-1.0 399 400 # - Other Planner Options - 401 402 #default_statistics_target = 100 # range 1-10000 403 #constraint_exclusion = partition # on, off, or partition 404 #cursor_tuple_fraction = 0.1 # range 0.0-1.0 405 #from_collapse_limit = 8 406 #join_collapse_limit = 8 # 1 disables collapsing of explicit 407 # JOIN clauses 408 #force_parallel_mode = off 409 #jit = on # allow JIT compilation 410 #plan_cache_mode = auto # auto, force_generic_plan or 411 # force_custom_plan 412 413 414 #------------------------------------------------------------------------------ 415 # REPORTING AND LOGGING 416 #------------------------------------------------------------------------------ 417 418 # - Where to Log - 419 420 log_destination = 'stderr' # Valid values are combinations of 421 # stderr, csvlog, syslog, and eventlog, 422 # depending on platform. csvlog 423 # requires logging_collector to be on. 424 425 # This is used when logging to stderr: 426 logging_collector = on # Enable capturing of stderr and csvlog 427 # into log files. Required to be on for 428 # csvlogs. 429 # (change requires restart) 430 431 # These are only used if logging_collector is on: 432 log_directory = 'log' # directory where log files are written, 433 # can be absolute or relative to PGDATA 434 log_filename = 'postgresql-%a.log' # log file name pattern, 435 # can include strftime() escapes 436 #log_file_mode = 0600 # creation mode for log files, 437 # begin with 0 to use octal notation 438 log_truncate_on_rotation = on # If on, an existing log file with the 439 # same name as the new log file will be 440 # truncated rather than appended to. 441 # But such truncation only occurs on 442 # time-driven rotation, not on restarts 443 # or size-driven rotation. Default is 444 # off, meaning append to existing files 445 # in all cases. 446 log_rotation_age = 1d # Automatic rotation of logfiles will 447 # happen after that time. 0 disables. 448 log_rotation_size = 0 # Automatic rotation of logfiles will 449 # happen after that much log output. 450 # 0 disables. 451 452 # These are relevant when logging to syslog: 453 #syslog_facility = 'LOCAL0' 454 #syslog_ident = 'postgres' 455 #syslog_sequence_numbers = on 456 #syslog_split_messages = on 457 458 # This is only relevant when logging to eventlog (win32): 459 # (change requires restart) 460 #event_source = 'PostgreSQL' 461 462 # - When to Log - 463 464 #log_min_messages = warning # values in order of decreasing detail: 465 # debug5 466 # debug4 467 # debug3 468 # debug2 469 # debug1 470 # info 471 # notice 472 # warning 473 # error 474 # log 475 # fatal 476 # panic 477 478 #log_min_error_statement = error # values in order of decreasing detail: 479 # debug5 480 # debug4 481 # debug3 482 # debug2 483 # debug1 484 # info 485 # notice 486 # warning 487 # error 488 # log 489 # fatal 490 # panic (effectively off) 491 492 #log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements 493 # and their durations, > 0 logs only 494 # statements running at least this number 495 # of milliseconds 496 497 #log_transaction_sample_rate = 0.0 # Fraction of transactions whose statements 498 # are logged regardless of their duration. 1.0 logs all 499 # statements from all transactions, 0.0 never logs. 500 501 # - What to Log - 502 503 #debug_print_parse = off 504 #debug_print_rewritten = off 505 #debug_print_plan = off 506 #debug_pretty_print = on 507 #log_checkpoints = off 508 #log_connections = off 509 #log_disconnections = off 510 #log_duration = off 511 #log_error_verbosity = default # terse, default, or verbose messages 512 #log_hostname = off 513 log_line_prefix = '%m [%p] ' # special values: 514 # %a = application name 515 # %u = user name 516 # %d = database name 517 # %r = remote host and port 518 # %h = remote host 519 # %p = process ID 520 # %t = timestamp without milliseconds 521 # %m = timestamp with milliseconds 522 # %n = timestamp with milliseconds (as a Unix epoch) 523 # %i = command tag 524 # %e = SQL state 525 # %c = session ID 526 # %l = session line number 527 # %s = session start timestamp 528 # %v = virtual transaction ID 529 # %x = transaction ID (0 if none) 530 # %q = stop here in non-session 531 # processes 532 # %% = '%' 533 # e.g. '<%u%%%d> ' 534 #log_lock_waits = off # log lock waits >= deadlock_timeout 535 #log_statement = 'none' # none, ddl, mod, all 536 #log_replication_commands = off 537 #log_temp_files = -1 # log temporary files equal or larger 538 # than the specified size in kilobytes; 539 # -1 disables, 0 logs all temp files 540 log_timezone = 'Asia/Tokyo' 541 542 #------------------------------------------------------------------------------ 543 # PROCESS TITLE 544 #------------------------------------------------------------------------------ 545 546 #cluster_name = '' # added to process titles if nonempty 547 # (change requires restart) 548 #update_process_title = on 549 550 551 #------------------------------------------------------------------------------ 552 # STATISTICS 553 #------------------------------------------------------------------------------ 554 555 # - Query and Index Statistics Collector - 556 557 #track_activities = on 558 #track_counts = on 559 #track_io_timing = off 560 #track_functions = none # none, pl, all 561 #track_activity_query_size = 1024 # (change requires restart) 562 #stats_temp_directory = 'pg_stat_tmp' 563 564 565 # - Monitoring - 566 567 #log_parser_stats = off 568 #log_planner_stats = off 569 #log_executor_stats = off 570 #log_statement_stats = off 571 572 573 #------------------------------------------------------------------------------ 574 # AUTOVACUUM 575 #------------------------------------------------------------------------------ 576 577 #autovacuum = on # Enable autovacuum subprocess? 'on' 578 # requires track_counts to also be on. 579 #log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and 580 # their durations, > 0 logs only 581 # actions running at least this number 582 # of milliseconds. 583 #autovacuum_max_workers = 3 # max number of autovacuum subprocesses 584 # (change requires restart) 585 #autovacuum_naptime = 1min # time between autovacuum runs 586 #autovacuum_vacuum_threshold = 50 # min number of row updates before 587 # vacuum 588 #autovacuum_analyze_threshold = 50 # min number of row updates before 589 # analyze 590 #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum 591 #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze 592 #autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum 593 # (change requires restart) 594 #autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age 595 # before forced vacuum 596 # (change requires restart) 597 #autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for 598 # autovacuum, in milliseconds; 599 # -1 means use vacuum_cost_delay 600 #autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for 601 # autovacuum, -1 means use 602 # vacuum_cost_limit 603 604 605 #------------------------------------------------------------------------------ 606 # CLIENT CONNECTION DEFAULTS 607 #------------------------------------------------------------------------------ 608 609 # - Statement Behavior - 610 611 #client_min_messages = notice # values in order of decreasing detail: 612 # debug5 613 # debug4 614 # debug3 615 # debug2 616 # debug1 617 # log 618 # notice 619 # warning 620 # error 621 #search_path = '"$user", public' # schema names 622 #row_security = on 623 #default_tablespace = '' # a tablespace name, '' uses the default 624 #temp_tablespaces = '' # a list of tablespace names, '' uses 625 # only default tablespace 626 #default_table_access_method = 'heap' 627 #check_function_bodies = on 628 #default_transaction_isolation = 'read committed' 629 #default_transaction_read_only = off 630 #default_transaction_deferrable = off 631 #session_replication_role = 'origin' 632 #statement_timeout = 0 # in milliseconds, 0 is disabled 633 #lock_timeout = 0 # in milliseconds, 0 is disabled 634 #idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled 635 #vacuum_freeze_min_age = 50000000 636 #vacuum_freeze_table_age = 150000000 637 #vacuum_multixact_freeze_min_age = 5000000 638 #vacuum_multixact_freeze_table_age = 150000000 639 #vacuum_cleanup_index_scale_factor = 0.1 # fraction of total number of tuples 640 # before index cleanup, 0 always performs 641 # index cleanup 642 #bytea_output = 'hex' # hex, escape 643 #xmlbinary = 'base64' 644 #xmloption = 'content' 645 #gin_fuzzy_search_limit = 0 646 #gin_pending_list_limit = 4MB 647 648 # - Locale and Formatting - 649 650 datestyle = 'iso, ymd' 651 #intervalstyle = 'postgres' 652 timezone = 'Asia/Tokyo' 653 #timezone_abbreviations = 'Default' # Select the set of available time zone 654 # abbreviations. Currently, there are 655 # Default 656 # Australia (historical usage) 657 # India 658 # You can create your own file in 659 # share/timezonesets/. 660 #extra_float_digits = 1 # min -15, max 3; any value >0 actually 661 # selects precise output mode 662 #client_encoding = sql_ascii # actually, defaults to database 663 # encoding 664 665 # These settings are initialized by initdb, but they can be changed. 666 lc_messages = 'ja_JP.UTF-8' # locale for system error message 667 # strings 668 lc_monetary = 'ja_JP.UTF-8' # locale for monetary formatting 669 lc_numeric = 'ja_JP.UTF-8' # locale for number formatting 670 lc_time = 'ja_JP.UTF-8' # locale for time formatting 671 672 # default configuration for text search 673 default_text_search_config = 'pg_catalog.simple' 674 675 # - Shared Library Preloading - 676 677 #shared_preload_libraries = '' # (change requires restart) 678 #local_preload_libraries = '' 679 #session_preload_libraries = '' 680 #jit_provider = 'llvmjit' # JIT library to use 681 682 # - Other Defaults - 683 684 #dynamic_library_path = '$libdir' 685 686 687 #------------------------------------------------------------------------------ 688 # LOCK MANAGEMENT 689 #------------------------------------------------------------------------------ 690 691 #deadlock_timeout = 1s 692 #max_locks_per_transaction = 64 # min 10 693 # (change requires restart) 694 #max_pred_locks_per_transaction = 64 # min 10 695 # (change requires restart) 696 #max_pred_locks_per_relation = -2 # negative values mean 697 # (max_pred_locks_per_transaction 698 # / -max_pred_locks_per_relation) - 1 699 #max_pred_locks_per_page = 2 # min 0 700 701 702 #------------------------------------------------------------------------------ 703 # VERSION AND PLATFORM COMPATIBILITY 704 #------------------------------------------------------------------------------ 705 706 # - Previous PostgreSQL Versions - 707 708 #array_nulls = on 709 #backslash_quote = safe_encoding # on, off, or safe_encoding 710 #escape_string_warning = on 711 #lo_compat_privileges = off 712 #operator_precedence_warning = off 713 #quote_all_identifiers = off 714 #standard_conforming_strings = on 715 #synchronize_seqscans = on 716 717 # - Other Platforms and Clients - 718 719 #transform_null_equals = off 720 721 722 #------------------------------------------------------------------------------ 723 # ERROR HANDLING 724 #------------------------------------------------------------------------------ 725 726 #exit_on_error = off # terminate session on any error? 727 #restart_after_crash = on # reinitialize after backend crash? 728 #data_sync_retry = off # retry or panic on failure to fsync 729 # data? 730 # (change requires restart) 731 732 733 #------------------------------------------------------------------------------ 734 # CONFIG FILE INCLUDES
そしてもう一つ。PostgreSQLのアクセス制御設定を編集します。
79行目から92行目がそれです。
[root@zabbix5 tmp]# vi /var/lib/pgsql/12/data/pg_hba.conf [root@zabbix5 tmp]# cat -n /var/lib/pgsql/12/data/pg_hba.conf 1 # PostgreSQL Client Authentication Configuration File 2 # =================================================== 3 # 4 # Refer to the "Client Authentication" section in the PostgreSQL 5 # documentation for a complete description of this file. A short 6 # synopsis follows. 7 # 8 # This file controls: which hosts are allowed to connect, how clients 9 # are authenticated, which PostgreSQL user names they can use, which 10 # databases they can access. Records take one of these forms: 11 # 12 # local DATABASE USER METHOD [OPTIONS] 13 # host DATABASE USER ADDRESS METHOD [OPTIONS] 14 # hostssl DATABASE USER ADDRESS METHOD [OPTIONS] 15 # hostnossl DATABASE USER ADDRESS METHOD [OPTIONS] 16 # 17 # (The uppercase items must be replaced by actual values.) 18 # 19 # The first field is the connection type: "local" is a Unix-domain 20 # socket, "host" is either a plain or SSL-encrypted TCP/IP socket, 21 # "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a 22 # plain TCP/IP socket. 23 # 24 # DATABASE can be "all", "sameuser", "samerole", "replication", a 25 # database name, or a comma-separated list thereof. The "all" 26 # keyword does not match "replication". Access to replication 27 # must be enabled in a separate record (see example below). 28 # 29 # USER can be "all", a user name, a group name prefixed with "+", or a 30 # comma-separated list thereof. In both the DATABASE and USER fields 31 # you can also write a file name prefixed with "@" to include names 32 # from a separate file. 33 # 34 # ADDRESS specifies the set of hosts the record matches. It can be a 35 # host name, or it is made up of an IP address and a CIDR mask that is 36 # an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that 37 # specifies the number of significant bits in the mask. A host name 38 # that starts with a dot (.) matches a suffix of the actual host name. 39 # Alternatively, you can write an IP address and netmask in separate 40 # columns to specify the set of hosts. Instead of a CIDR-address, you 41 # can write "samehost" to match any of the server's own IP addresses, 42 # or "samenet" to match any address in any subnet that the server is 43 # directly connected to. 44 # 45 # METHOD can be "trust", "reject", "md5", "password", "scram-sha-256", 46 # "gss", "sspi", "ident", "peer", "pam", "ldap", "radius" or "cert". 47 # Note that "password" sends passwords in clear text; "md5" or 48 # "scram-sha-256" are preferred since they send encrypted passwords. 49 # 50 # OPTIONS are a set of options for the authentication in the format 51 # NAME=VALUE. The available options depend on the different 52 # authentication methods -- refer to the "Client Authentication" 53 # section in the documentation for a list of which options are 54 # available for which authentication methods. 55 # 56 # Database and user names containing spaces, commas, quotes and other 57 # special characters must be quoted. Quoting one of the keywords 58 # "all", "sameuser", "samerole" or "replication" makes the name lose 59 # its special character, and just match a database or username with 60 # that name. 61 # 62 # This file is read on server startup and when the server receives a 63 # SIGHUP signal. If you edit the file on a running system, you have to 64 # SIGHUP the server for the changes to take effect, run "pg_ctl reload", 65 # or execute "SELECT pg_reload_conf()". 66 # 67 # Put your actual configuration here 68 # ---------------------------------- 69 # 70 # If you want to allow non-local connections, you need to add more 71 # "host" records. In that case you will also need to make PostgreSQL 72 # listen on a non-local interface via the listen_addresses 73 # configuration parameter, or via the -i or -h command line switches. 74 75 76 77 # TYPE DATABASE USER ADDRESS METHOD 78 79 # "local" is for Unix domain socket connections only 80 local all all trust 81 #local all all peer 82 # IPv4 local connections: 83 host all all 127.0.0.1/32 trust 84 #host all all 127.0.0.1/32 ident 85 # IPv6 local connections: 86 host all all ::1/128 trust 87 #host all all ::1/128 ident 88 # Allow replication connections from localhost, by a user with the 89 # replication privilege. 90 #local replication all peer 91 #host replication all 127.0.0.1/32 ident 92 #host replication all ::1/128 ident
設定を反映させるため、PostgreSQLを再起動します。
[root@zabbix5 tmp]# systemctl restart postgresql-12 [root@zabbix5 tmp]# systemctl status postgresql-12 ● postgresql-12.service - PostgreSQL 12 database server Loaded: loaded (/usr/lib/systemd/system/postgresql-12.service; disabled; vendor preset: disabled) Active: active (running) since 火 2020-06-23 20:02:39 JST; 5s ago Docs: https://www.postgresql.org/docs/12/static/ Process: 17779 ExecStartPre=/usr/pgsql-12/bin/postgresql-12-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS) Main PID: 17784 (postmaster) CGroup: /system.slice/postgresql-12.service tq17784 /usr/pgsql-12/bin/postmaster -D /var/lib/pgsql/12/data/ tq17786 postgres: logger tq17788 postgres: checkpointer tq17789 postgres: background writer tq17790 postgres: walwriter tq17791 postgres: autovacuum launcher tq17792 postgres: stats collector mq17793 postgres: logical replication launcher 6月 23 20:02:39 zabbix5.0lts.centos7 systemd[1]: Stopped PostgreSQL 12 database server. 6月 23 20:02:39 zabbix5.0lts.centos7 systemd[1]: Starting PostgreSQL 12 database server... 6月 23 20:02:39 zabbix5.0lts.centos7 postmaster[17784]: 2020-06-23 20:02:39.388 JST [17784] LOG…ます 6月 23 20:02:39 zabbix5.0lts.centos7 postmaster[17784]: 2020-06-23 20:02:39.389 JST [17784] LOG…ます 6月 23 20:02:39 zabbix5.0lts.centos7 postmaster[17784]: 2020-06-23 20:02:39.389 JST [17784] LOG…ます 6月 23 20:02:39 zabbix5.0lts.centos7 postmaster[17784]: 2020-06-23 20:02:39.394 JST [17784] LOG…ます 6月 23 20:02:39 zabbix5.0lts.centos7 postmaster[17784]: 2020-06-23 20:02:39.399 JST [17784] LOG…ます 6月 23 20:02:39 zabbix5.0lts.centos7 postmaster[17784]: 2020-06-23 20:02:39.406 JST [17784] LOG…ます 6月 23 20:02:39 zabbix5.0lts.centos7 postmaster[17784]: 2020-06-23 20:02:39.406 JST [17784] ヒン…。 6月 23 20:02:39 zabbix5.0lts.centos7 systemd[1]: Started PostgreSQL 12 database server. Hint: Some lines were ellipsized, use -l to show in full.
念のため、PostgreSQLの確認。
[root@zabbix5 tmp]# psql zabbix zabbix psql (12.3) "help"でヘルプを表示します。 zabbix=> help PostgreSQL へのコマンド ライン インターフェイス、psql を使用しています。 ヒント: \copyright とタイプすると、配布条件を表示します。 \h とタイプすると、SQL コマンドのヘルプを表示します。 \? とタイプすると、psql コマンドのヘルプを表示します。 \g と打つかセミコロンで閉じると、問い合わせを実行します。 \q で終了します。 zabbix=> \l データベース一覧 名前 | 所有者 | エンコーディング | 照合順序 | Ctype(変換演算子) | アクセス権限 -----------+----------+------------------+-------------+-------------------+----------------------- postgres | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | template0 | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres zabbix | zabbix | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | (4 行) zabbix=> select * from users; userid | alias | name | surname | passwd | url | autologin | autologout | lang | refresh | type | theme | attempt_failed | attempt_ip | at tempt_clock | rows_per_page --------+-------+--------+---------------+------------------------------------------------------------ --+-----+-----------+------------+-------+---------+------+---------+----------------+------------+--- ------------+--------------- 1 | Admin | Zabbix | Administrator | $2y$10$92nDno4n0Zm7Ej7Jfsz8WukBfgSS/U0QkIuu8WkJPihXBb2A1UrE K | | 1 | 0 | en_GB | 30s | 3 | default | 0 | | 0 | 50 2 | guest | | | $2y$10$89otZrRNmde97rIyzclecuk6LwKAsHN0BcvoOKGjbT.BwMBfm7G0 6 | | 0 | 15m | en_GB | 30s | 1 | default | 0 | | 0 | 50 (2 行) zabbix=> \d users; テーブル"public.users" 列 | 型 | 照合順序 | Null 値を許容 | デフォルト ----------------+------------------------+----------+---------------+------------------------------ userid | bigint | | not null | alias | character varying(100) | | not null | ''::character varying name | character varying(100) | | not null | ''::character varying surname | character varying(100) | | not null | ''::character varying passwd | character varying(60) | | not null | ''::character varying url | character varying(255) | | not null | ''::character varying autologin | integer | | not null | 0 autologout | character varying(32) | | not null | '15m'::character varying lang | character varying(5) | | not null | 'en_GB'::character varying refresh | character varying(32) | | not null | '30s'::character varying type | integer | | not null | 1 theme | character varying(128) | | not null | 'default'::character varying attempt_failed | integer | | not null | 0 attempt_ip | character varying(39) | | not null | ''::character varying attempt_clock | integer | | not null | 0 rows_per_page | integer | | not null | 50 インデックス: "users_pkey" PRIMARY KEY, btree (userid) "users_1" UNIQUE, btree (alias) 参照元: TABLE "acknowledges" CONSTRAINT "c_acknowledges_1" FOREIGN KEY (userid) REFERENCES users(userid) O N DELETE CASCADE TABLE "alerts" CONSTRAINT "c_alerts_3" FOREIGN KEY (userid) REFERENCES users(userid) ON DELETE CAS CADE TABLE "auditlog" CONSTRAINT "c_auditlog_1" FOREIGN KEY (userid) REFERENCES users(userid) ON DELETE CASCADE TABLE "dashboard" CONSTRAINT "c_dashboard_1" FOREIGN KEY (userid) REFERENCES users(userid) TABLE "dashboard_user" CONSTRAINT "c_dashboard_user_2" FOREIGN KEY (userid) REFERENCES users(useri d) ON DELETE CASCADE TABLE "media" CONSTRAINT "c_media_1" FOREIGN KEY (userid) REFERENCES users(userid) ON DELETE CASCA DE TABLE "opmessage_usr" CONSTRAINT "c_opmessage_usr_2" FOREIGN KEY (userid) REFERENCES users(userid) TABLE "profiles" CONSTRAINT "c_profiles_1" FOREIGN KEY (userid) REFERENCES users(userid) ON DELETE CASCADE TABLE "screen_user" CONSTRAINT "c_screen_user_2" FOREIGN KEY (userid) REFERENCES users(userid) ON DELETE CASCADE TABLE "screens" CONSTRAINT "c_screens_3" FOREIGN KEY (userid) REFERENCES users(userid) TABLE "sessions" CONSTRAINT "c_sessions_1" FOREIGN KEY (userid) REFERENCES users(userid) ON DELETE CASCADE TABLE "slideshow_user" CONSTRAINT "c_slideshow_user_2" FOREIGN KEY (userid) REFERENCES users(useri d) ON DELETE CASCADE TABLE "slideshows" CONSTRAINT "c_slideshows_3" FOREIGN KEY (userid) REFERENCES users(userid) TABLE "sysmap_user" CONSTRAINT "c_sysmap_user_2" FOREIGN KEY (userid) REFERENCES users(userid) ON DELETE CASCADE TABLE "sysmaps" CONSTRAINT "c_sysmaps_3" FOREIGN KEY (userid) REFERENCES users(userid) TABLE "users_groups" CONSTRAINT "c_users_groups_2" FOREIGN KEY (userid) REFERENCES users(userid) O N DELETE CASCADE zabbix=> exit
大丈夫そうですね。
次は、Zabbix Serverの設定です。
124行目にあるDBPassword=を設定します。
[root@zabbix5 tmp]# vi /etc/zabbix/zabbix_server.conf [root@zabbix5 tmp]# cat -n /etc/zabbix/zabbix_server.conf 1 # This is a configuration file for Zabbix server daemon 2 # To get more information about Zabbix, visit http://www.zabbix.com 3 4 ############ GENERAL PARAMETERS ################# 5 6 ### Option: ListenPort 7 # Listen port for trapper. 8 # 9 # Mandatory: no 10 # Range: 1024-32767 11 # Default: 12 # ListenPort=10051 13 14 ### Option: SourceIP 15 # Source IP address for outgoing connections. 16 # 17 # Mandatory: no 18 # Default: 19 # SourceIP= 20 21 ### Option: LogType 22 # Specifies where log messages are written to: 23 # system - syslog 24 # file - file specified with LogFile parameter 25 # console - standard output 26 # 27 # Mandatory: no 28 # Default: 29 # LogType=file 30 31 ### Option: LogFile 32 # Log file name for LogType 'file' parameter. 33 # 34 # Mandatory: yes, if LogType is set to file, otherwise no 35 # Default: 36 # LogFile= 37 38 LogFile=/var/log/zabbix/zabbix_server.log 39 40 ### Option: LogFileSize 41 # Maximum size of log file in MB. 42 # 0 - disable automatic log rotation. 43 # 44 # Mandatory: no 45 # Range: 0-1024 46 # Default: 47 # LogFileSize=1 48 49 LogFileSize=0 50 51 ### Option: DebugLevel 52 # Specifies debug level: 53 # 0 - basic information about starting and stopping of Zabbix processes 54 # 1 - critical information 55 # 2 - error information 56 # 3 - warnings 57 # 4 - for debugging (produces lots of information) 58 # 5 - extended debugging (produces even more information) 59 # 60 # Mandatory: no 61 # Range: 0-5 62 # Default: 63 # DebugLevel=3 64 65 ### Option: PidFile 66 # Name of PID file. 67 # 68 # Mandatory: no 69 # Default: 70 # PidFile=/tmp/zabbix_server.pid 71 72 PidFile=/var/run/zabbix/zabbix_server.pid 73 74 ### Option: SocketDir 75 # IPC socket directory. 76 # Directory to store IPC sockets used by internal Zabbix services. 77 # 78 # Mandatory: no 79 # Default: 80 # SocketDir=/tmp 81 82 SocketDir=/var/run/zabbix 83 84 ### Option: DBHost 85 # Database host name. 86 # If set to localhost, socket is used for MySQL. 87 # If set to empty string, socket is used for PostgreSQL. 88 # 89 # Mandatory: no 90 # Default: 91 # DBHost=localhost 92 93 ### Option: DBName 94 # Database name. 95 # 96 # Mandatory: yes 97 # Default: 98 # DBName= 99 100 DBName=zabbix 101 102 ### Option: DBSchema 103 # Schema name. Used for PostgreSQL. 104 # 105 # Mandatory: no 106 # Default: 107 # DBSchema= 108 109 ### Option: DBUser 110 # Database user. 111 # 112 # Mandatory: no 113 # Default: 114 # DBUser= 115 116 DBUser=zabbix 117 118 ### Option: DBPassword 119 # Database password. 120 # Comment this line if no password is used. 121 # 122 # Mandatory: no 123 # Default: 124 DBPassword=zabbix 125 126 ### Option: DBSocket 127 # Path to MySQL socket. 128 # 129 # Mandatory: no 130 # Default: 131 # DBSocket= 132 133 ### Option: DBPort 134 # Database port when not using local socket. 135 # 136 # Mandatory: no 137 # Range: 1024-65535 138 # Default: 139 # DBPort= 140 141 ### Option: HistoryStorageURL 142 # History storage HTTP[S] URL. 143 # 144 # Mandatory: no 145 # Default: 146 # HistoryStorageURL= 147 148 ### Option: HistoryStorageTypes 149 # Comma separated list of value types to be sent to the history storage. 150 # 151 # Mandatory: no 152 # Default: 153 # HistoryStorageTypes=uint,dbl,str,log,text 154 155 ### Option: HistoryStorageDateIndex 156 # Enable preprocessing of history values in history storage to store values in different indices based on date. 157 # 0 - disable 158 # 1 - enable 159 # 160 # Mandatory: no 161 # Default: 162 # HistoryStorageDateIndex=0 163 164 ### Option: ExportDir 165 # Directory for real time export of events, history and trends in newline delimited JSON format. 166 # If set, enables real time export. 167 # 168 # Mandatory: no 169 # Default: 170 # ExportDir= 171 172 ### Option: ExportFileSize 173 # Maximum size per export file in bytes. 174 # Only used for rotation if ExportDir is set. 175 # 176 # Mandatory: no 177 # Range: 1M-1G 178 # Default: 179 # ExportFileSize=1G 180 181 ############ ADVANCED PARAMETERS ################ 182 183 ### Option: StartPollers 184 # Number of pre-forked instances of pollers. 185 # 186 # Mandatory: no 187 # Range: 0-1000 188 # Default: 189 # StartPollers=5 190 191 ### Option: StartIPMIPollers 192 # Number of pre-forked instances of IPMI pollers. 193 # The IPMI manager process is automatically started when at least one IPMI poller is started. 194 # 195 # Mandatory: no 196 # Range: 0-1000 197 # Default: 198 # StartIPMIPollers=0 199 200 ### Option: StartPreprocessors 201 # Number of pre-forked instances of preprocessing workers. 202 # The preprocessing manager process is automatically started when preprocessor worker is started. 203 # 204 # Mandatory: no 205 # Range: 1-1000 206 # Default: 207 # StartPreprocessors=3 208 209 ### Option: StartPollersUnreachable 210 # Number of pre-forked instances of pollers for unreachable hosts (including IPMI and Java). 211 # At least one poller for unreachable hosts must be running if regular, IPMI or Java pollers 212 # are started. 213 # 214 # Mandatory: no 215 # Range: 0-1000 216 # Default: 217 # StartPollersUnreachable=1 218 219 ### Option: StartTrappers 220 # Number of pre-forked instances of trappers. 221 # Trappers accept incoming connections from Zabbix sender, active agents and active proxies. 222 # At least one trapper process must be running to display server availability and view queue 223 # in the frontend. 224 # 225 # Mandatory: no 226 # Range: 0-1000 227 # Default: 228 # StartTrappers=5 229 230 ### Option: StartPingers 231 # Number of pre-forked instances of ICMP pingers. 232 # 233 # Mandatory: no 234 # Range: 0-1000 235 # Default: 236 # StartPingers=1 237 238 ### Option: StartDiscoverers 239 # Number of pre-forked instances of discoverers. 240 # 241 # Mandatory: no 242 # Range: 0-250 243 # Default: 244 # StartDiscoverers=1 245 246 ### Option: StartHTTPPollers 247 # Number of pre-forked instances of HTTP pollers. 248 # 249 # Mandatory: no 250 # Range: 0-1000 251 # Default: 252 # StartHTTPPollers=1 253 254 ### Option: StartTimers 255 # Number of pre-forked instances of timers. 256 # Timers process maintenance periods. 257 # Only the first timer process handles host maintenance updates. Problem suppression updates are shared 258 # between all timers. 259 # 260 # Mandatory: no 261 # Range: 1-1000 262 # Default: 263 # StartTimers=1 264 265 ### Option: StartEscalators 266 # Number of pre-forked instances of escalators. 267 # 268 # Mandatory: no 269 # Range: 0-100 270 # Default: 271 # StartEscalators=1 272 273 ### Option: StartAlerters 274 # Number of pre-forked instances of alerters. 275 # Alerters send the notifications created by action operations. 276 # 277 # Mandatory: no 278 # Range: 0-100 279 # Default: 280 # StartAlerters=3 281 282 ### Option: JavaGateway 283 # IP address (or hostname) of Zabbix Java gateway. 284 # Only required if Java pollers are started. 285 # 286 # Mandatory: no 287 # Default: 288 # JavaGateway= 289 290 ### Option: JavaGatewayPort 291 # Port that Zabbix Java gateway listens on. 292 # 293 # Mandatory: no 294 # Range: 1024-32767 295 # Default: 296 # JavaGatewayPort=10052 297 298 ### Option: StartJavaPollers 299 # Number of pre-forked instances of Java pollers. 300 # 301 # Mandatory: no 302 # Range: 0-1000 303 # Default: 304 # StartJavaPollers=0 305 306 ### Option: StartVMwareCollectors 307 # Number of pre-forked vmware collector instances. 308 # 309 # Mandatory: no 310 # Range: 0-250 311 # Default: 312 # StartVMwareCollectors=0 313 314 ### Option: VMwareFrequency 315 # How often Zabbix will connect to VMware service to obtain a new data. 316 # 317 # Mandatory: no 318 # Range: 10-86400 319 # Default: 320 # VMwareFrequency=60 321 322 ### Option: VMwarePerfFrequency 323 # How often Zabbix will connect to VMware service to obtain performance data. 324 # 325 # Mandatory: no 326 # Range: 10-86400 327 # Default: 328 # VMwarePerfFrequency=60 329 330 ### Option: VMwareCacheSize 331 # Size of VMware cache, in bytes. 332 # Shared memory size for storing VMware data. 333 # Only used if VMware collectors are started. 334 # 335 # Mandatory: no 336 # Range: 256K-2G 337 # Default: 338 # VMwareCacheSize=8M 339 340 ### Option: VMwareTimeout 341 # Specifies how many seconds vmware collector waits for response from VMware service. 342 # 343 # Mandatory: no 344 # Range: 1-300 345 # Default: 346 # VMwareTimeout=10 347 348 ### Option: SNMPTrapperFile 349 # Temporary file used for passing data from SNMP trap daemon to the server. 350 # Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file. 351 # 352 # Mandatory: no 353 # Default: 354 # SNMPTrapperFile=/tmp/zabbix_traps.tmp 355 356 SNMPTrapperFile=/var/log/snmptrap/snmptrap.log 357 358 ### Option: StartSNMPTrapper 359 # If 1, SNMP trapper process is started. 360 # 361 # Mandatory: no 362 # Range: 0-1 363 # Default: 364 # StartSNMPTrapper=0 365 366 ### Option: ListenIP 367 # List of comma delimited IP addresses that the trapper should listen on. 368 # Trapper will listen on all network interfaces if this parameter is missing. 369 # 370 # Mandatory: no 371 # Default: 372 # ListenIP=0.0.0.0 373 374 # ListenIP=127.0.0.1 375 376 ### Option: HousekeepingFrequency 377 # How often Zabbix will perform housekeeping procedure (in hours). 378 # Housekeeping is removing outdated information from the database. 379 # To prevent Housekeeper from being overloaded, no more than 4 times HousekeepingFrequency 380 # hours of outdated information are deleted in one housekeeping cycle, for each item. 381 # To lower load on server startup housekeeping is postponed for 30 minutes after server start. 382 # With HousekeepingFrequency=0 the housekeeper can be only executed using the runtime control option. 383 # In this case the period of outdated information deleted in one housekeeping cycle is 4 times the 384 # period since the last housekeeping cycle, but not less than 4 hours and not greater than 4 days. 385 # 386 # Mandatory: no 387 # Range: 0-24 388 # Default: 389 # HousekeepingFrequency=1 390 391 ### Option: MaxHousekeeperDelete 392 # The table "housekeeper" contains "tasks" for housekeeping procedure in the format: 393 # [housekeeperid], [tablename], [field], [value]. 394 # No more than 'MaxHousekeeperDelete' rows (corresponding to [tablename], [field], [value]) 395 # will be deleted per one task in one housekeeping cycle. 396 # If set to 0 then no limit is used at all. In this case you must know what you are doing! 397 # 398 # Mandatory: no 399 # Range: 0-1000000 400 # Default: 401 # MaxHousekeeperDelete=5000 402 403 ### Option: CacheSize 404 # Size of configuration cache, in bytes. 405 # Shared memory size for storing host, item and trigger data. 406 # 407 # Mandatory: no 408 # Range: 128K-64G 409 # Default: 410 # CacheSize=8M 411 412 ### Option: CacheUpdateFrequency 413 # How often Zabbix will perform update of configuration cache, in seconds. 414 # 415 # Mandatory: no 416 # Range: 1-3600 417 # Default: 418 # CacheUpdateFrequency=60 419 420 ### Option: StartDBSyncers 421 # Number of pre-forked instances of DB Syncers. 422 # 423 # Mandatory: no 424 # Range: 1-100 425 # Default: 426 # StartDBSyncers=4 427 428 ### Option: HistoryCacheSize 429 # Size of history cache, in bytes. 430 # Shared memory size for storing history data. 431 # 432 # Mandatory: no 433 # Range: 128K-2G 434 # Default: 435 # HistoryCacheSize=16M 436 437 ### Option: HistoryIndexCacheSize 438 # Size of history index cache, in bytes. 439 # Shared memory size for indexing history cache. 440 # 441 # Mandatory: no 442 # Range: 128K-2G 443 # Default: 444 # HistoryIndexCacheSize=4M 445 446 ### Option: TrendCacheSize 447 # Size of trend cache, in bytes. 448 # Shared memory size for storing trends data. 449 # 450 # Mandatory: no 451 # Range: 128K-2G 452 # Default: 453 # TrendCacheSize=4M 454 455 ### Option: ValueCacheSize 456 # Size of history value cache, in bytes. 457 # Shared memory size for caching item history data requests. 458 # Setting to 0 disables value cache. 459 # 460 # Mandatory: no 461 # Range: 0,128K-64G 462 # Default: 463 # ValueCacheSize=8M 464 465 ### Option: Timeout 466 # Specifies how long we wait for agent, SNMP device or external check (in seconds). 467 # 468 # Mandatory: no 469 # Range: 1-30 470 # Default: 471 # Timeout=3 472 473 Timeout=4 474 475 ### Option: TrapperTimeout 476 # Specifies how many seconds trapper may spend processing new data. 477 # 478 # Mandatory: no 479 # Range: 1-300 480 # Default: 481 # TrapperTimeout=300 482 483 ### Option: UnreachablePeriod 484 # After how many seconds of unreachability treat a host as unavailable. 485 # 486 # Mandatory: no 487 # Range: 1-3600 488 # Default: 489 # UnreachablePeriod=45 490 491 ### Option: UnavailableDelay 492 # How often host is checked for availability during the unavailability period, in seconds. 493 # 494 # Mandatory: no 495 # Range: 1-3600 496 # Default: 497 # UnavailableDelay=60 498 499 ### Option: UnreachableDelay 500 # How often host is checked for availability during the unreachability period, in seconds. 501 # 502 # Mandatory: no 503 # Range: 1-3600 504 # Default: 505 # UnreachableDelay=15 506 507 ### Option: AlertScriptsPath 508 # Full path to location of custom alert scripts. 509 # Default depends on compilation options. 510 # To see the default path run command "zabbix_server --help". 511 # 512 # Mandatory: no 513 # Default: 514 # AlertScriptsPath=${datadir}/zabbix/alertscripts 515 516 AlertScriptsPath=/usr/lib/zabbix/alertscripts 517 518 ### Option: ExternalScripts 519 # Full path to location of external scripts. 520 # Default depends on compilation options. 521 # To see the default path run command "zabbix_server --help". 522 # 523 # Mandatory: no 524 # Default: 525 # ExternalScripts=${datadir}/zabbix/externalscripts 526 527 ExternalScripts=/usr/lib/zabbix/externalscripts 528 529 ### Option: FpingLocation 530 # Location of fping. 531 # Make sure that fping binary has root ownership and SUID flag set. 532 # 533 # Mandatory: no 534 # Default: 535 # FpingLocation=/usr/sbin/fping 536 537 ### Option: Fping6Location 538 # Location of fping6. 539 # Make sure that fping6 binary has root ownership and SUID flag set. 540 # Make empty if your fping utility is capable to process IPv6 addresses. 541 # 542 # Mandatory: no 543 # Default: 544 # Fping6Location=/usr/sbin/fping6 545 546 ### Option: SSHKeyLocation 547 # Location of public and private keys for SSH checks and actions. 548 # 549 # Mandatory: no 550 # Default: 551 # SSHKeyLocation= 552 553 ### Option: LogSlowQueries 554 # How long a database query may take before being logged (in milliseconds). 555 # Only works if DebugLevel set to 3, 4 or 5. 556 # 0 - don't log slow queries. 557 # 558 # Mandatory: no 559 # Range: 1-3600000 560 # Default: 561 # LogSlowQueries=0 562 563 LogSlowQueries=3000 564 565 ### Option: TmpDir 566 # Temporary directory. 567 # 568 # Mandatory: no 569 # Default: 570 # TmpDir=/tmp 571 572 ### Option: StartProxyPollers 573 # Number of pre-forked instances of pollers for passive proxies. 574 # 575 # Mandatory: no 576 # Range: 0-250 577 # Default: 578 # StartProxyPollers=1 579 580 ### Option: ProxyConfigFrequency 581 # How often Zabbix Server sends configuration data to a Zabbix Proxy in seconds. 582 # This parameter is used only for proxies in the passive mode. 583 # 584 # Mandatory: no 585 # Range: 1-3600*24*7 586 # Default: 587 # ProxyConfigFrequency=3600 588 589 ### Option: ProxyDataFrequency 590 # How often Zabbix Server requests history data from a Zabbix Proxy in seconds. 591 # This parameter is used only for proxies in the passive mode. 592 # 593 # Mandatory: no 594 # Range: 1-3600 595 # Default: 596 # ProxyDataFrequency=1 597 598 ### Option: StartLLDProcessors 599 # Number of pre-forked instances of low level discovery processors. 600 # 601 # Mandatory: no 602 # Range: 1-100 603 # Default: 604 # StartLLDProcessors=2 605 606 ### Option: AllowRoot 607 # Allow the server to run as 'root'. If disabled and the server is started by 'root', the server 608 # will try to switch to the user specified by the User configuration option instead. 609 # Has no effect if started under a regular user. 610 # 0 - do not allow 611 # 1 - allow 612 # 613 # Mandatory: no 614 # Default: 615 # AllowRoot=0 616 617 ### Option: User 618 # Drop privileges to a specific, existing user on the system. 619 # Only has effect if run as 'root' and AllowRoot is disabled. 620 # 621 # Mandatory: no 622 # Default: 623 # User=zabbix 624 625 ### Option: Include 626 # You may include individual files or all files in a directory in the configuration file. 627 # Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time. 628 # 629 # Mandatory: no 630 # Default: 631 # Include= 632 633 # Include=/usr/local/etc/zabbix_server.general.conf 634 # Include=/usr/local/etc/zabbix_server.conf.d/ 635 # Include=/usr/local/etc/zabbix_server.conf.d/*.conf 636 637 ### Option: SSLCertLocation 638 # Location of SSL client certificates. 639 # This parameter is used only in web monitoring. 640 # Default depends on compilation options. 641 # To see the default path run command "zabbix_server --help". 642 # 643 # Mandatory: no 644 # Default: 645 # SSLCertLocation=${datadir}/zabbix/ssl/certs 646 647 ### Option: SSLKeyLocation 648 # Location of private keys for SSL client certificates. 649 # This parameter is used only in web monitoring. 650 # Default depends on compilation options. 651 # To see the default path run command "zabbix_server --help". 652 # 653 # Mandatory: no 654 # Default: 655 # SSLKeyLocation=${datadir}/zabbix/ssl/keys 656 657 ### Option: SSLCALocation 658 # Override the location of certificate authority (CA) files for SSL server certificate verification. 659 # If not set, system-wide directory will be used. 660 # This parameter is used only in web monitoring and SMTP authentication. 661 # 662 # Mandatory: no 663 # Default: 664 # SSLCALocation= 665 666 ### Option: StatsAllowedIP 667 # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of external Zabbix instances. 668 # Stats request will be accepted only from the addresses listed here. If this parameter is not set no stats requests 669 # will be accepted. 670 # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally 671 # and '::/0' will allow any IPv4 or IPv6 address. 672 # '0.0.0.0/0' can be used to allow any IPv4 address. 673 # Example: StatsAllowedIP=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com 674 # 675 # Mandatory: no 676 # Default: 677 # StatsAllowedIP= 678 StatsAllowedIP=127.0.0.1 679 680 ####### LOADABLE MODULES ####### 681 682 ### Option: LoadModulePath 683 # Full path to location of server modules. 684 # Default depends on compilation options. 685 # To see the default path run command "zabbix_server --help". 686 # 687 # Mandatory: no 688 # Default: 689 # LoadModulePath=${libdir}/modules 690 691 ### Option: LoadModule 692 # Module to load at server startup. Modules are used to extend functionality of the server. 693 # Formats: 694 # LoadModule=<module.so> 695 # LoadModule=<path/module.so> 696 # LoadModule=</abs_path/module.so> 697 # Either the module must be located in directory specified by LoadModulePath or the path must precede the module name. 698 # If the preceding path is absolute (starts with '/') then LoadModulePath is ignored. 699 # It is allowed to include multiple LoadModule parameters. 700 # 701 # Mandatory: no 702 # Default: 703 # LoadModule= 704 705 ####### TLS-RELATED PARAMETERS ####### 706 707 ### Option: TLSCAFile 708 # Full pathname of a file containing the top-level CA(s) certificates for 709 # peer certificate verification. 710 # 711 # Mandatory: no 712 # Default: 713 # TLSCAFile= 714 715 ### Option: TLSCRLFile 716 # Full pathname of a file containing revoked certificates. 717 # 718 # Mandatory: no 719 # Default: 720 # TLSCRLFile= 721 722 ### Option: TLSCertFile 723 # Full pathname of a file containing the server certificate or certificate chain. 724 # 725 # Mandatory: no 726 # Default: 727 # TLSCertFile= 728 729 ### Option: TLSKeyFile 730 # Full pathname of a file containing the server private key. 731 # 732 # Mandatory: no 733 # Default: 734 # TLSKeyFile= 735 736 ####### For advanced users - TLS ciphersuite selection criteria ####### 737 738 ### Option: TLSCipherCert13 739 # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3. 740 # Override the default ciphersuite selection criteria for certificate-based encryption. 741 # 742 # Mandatory: no 743 # Default: 744 # TLSCipherCert13= 745 746 ### Option: TLSCipherCert 747 # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string. 748 # Override the default ciphersuite selection criteria for certificate-based encryption. 749 # Example for GnuTLS: 750 # NONE:+VERS-TLS1.2:+ECDHE-RSA:+RSA:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL:+CTYPE-X.509 751 # Example for OpenSSL: 752 # EECDH+aRSA+AES128:RSA+aRSA+AES128 753 # 754 # Mandatory: no 755 # Default: 756 # TLSCipherCert= 757 758 ### Option: TLSCipherPSK13 759 # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3. 760 # Override the default ciphersuite selection criteria for PSK-based encryption. 761 # Example: 762 # TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256 763 # 764 # Mandatory: no 765 # Default: 766 # TLSCipherPSK13= 767 768 ### Option: TLSCipherPSK 769 # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string. 770 # Override the default ciphersuite selection criteria for PSK-based encryption. 771 # Example for GnuTLS: 772 # NONE:+VERS-TLS1.2:+ECDHE-PSK:+PSK:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL 773 # Example for OpenSSL: 774 # kECDHEPSK+AES128:kPSK+AES128 775 # 776 # Mandatory: no 777 # Default: 778 # TLSCipherPSK= 779 780 ### Option: TLSCipherAll13 781 # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3. 782 # Override the default ciphersuite selection criteria for certificate- and PSK-based encryption. 783 # Example: 784 # TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256 785 # 786 # Mandatory: no 787 # Default: 788 # TLSCipherAll13= 789 790 ### Option: TLSCipherAll 791 # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string. 792 # Override the default ciphersuite selection criteria for certificate- and PSK-based encryption. 793 # Example for GnuTLS: 794 # NONE:+VERS-TLS1.2:+ECDHE-RSA:+RSA:+ECDHE-PSK:+PSK:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL:+CTYPE-X.509 795 # Example for OpenSSL: 796 # EECDH+aRSA+AES128:RSA+aRSA+AES128:kECDHEPSK+AES128:kPSK+AES128 797 # 798 # Mandatory: no 799 # Default: 800 # TLSCipherAll= 801 802 ### Option: DBTLSConnect 803 # Setting this option enforces to use TLS connection to database. 804 # required - connect using TLS 805 # verify_ca - connect using TLS and verify certificate 806 # verify_full - connect using TLS, verify certificate and verify that database identity specified by DBHost 807 # matches its certificate 808 # On MySQL starting from 5.7.11 and PostgreSQL following values are supported: "required", "verify_ca" and 809 # "verify_full". 810 # On MariaDB starting from version 10.2.6 "required" and "verify_full" values are supported. 811 # Default is not to set any option and behavior depends on database configuration 812 # 813 # Mandatory: no 814 # Default: 815 # DBTLSConnect= 816 817 ### Option: DBTLSCAFile 818 # Full pathname of a file containing the top-level CA(s) certificates for database certificate verification. 819 # Supported only for MySQL and PostgreSQL 820 # 821 # Mandatory: no 822 # (yes, if DBTLSConnect set to one of: verify_ca, verify_full) 823 # Default: 824 # DBTLSCAFile= 825 826 ### Option: DBTLSCertFile 827 # Full pathname of file containing Zabbix server certificate for authenticating to database. 828 # Supported only for MySQL and PostgreSQL 829 # 830 # Mandatory: no 831 # Default: 832 # DBTLSCertFile= 833 834 ### Option: DBTLSKeyFile 835 # Full pathname of file containing the private key for authenticating to database. 836 # Supported only for MySQL and PostgreSQL 837 # 838 # Mandatory: no 839 # Default: 840 # DBTLSKeyFile= 841 842 ### Option: DBTLSCipher 843 # The list of encryption ciphers that Zabbix server permits for TLS protocols up through TLSv1.2 844 # Supported only for MySQL 845 # 846 # Mandatory no 847 # Default: 848 # DBTLSCipher= 849 850 ### Option: DBTLSCipher13 851 # The list of encryption ciphersuites that Zabbix server permits for TLSv1.3 protocol 852 # Supported only for MySQL, starting from version 8.0.16 853 # 854 # Mandatory no 855 # Default: 856 # DBTLSCipher13=
そして、Webサーバとして動作するnginxの設定。
1行目と2行目(適当なホスト名をつけて下さい)を有効化します。
[root@zabbix5 tmp]# vi /etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf [root@zabbix5 tmp]# cat -n /etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf 1 server { 2 listen 80; 3 server_name zabbix.opensourcetech.tokyo; 4 5 root /usr/share/zabbix; 6 7 index index.php; 8 9 location = /favicon.ico { 10 log_not_found off; 11 } 12 13 location / { 14 try_files $uri $uri/ =404; 15 } 16 17 location /assets { 18 access_log off; 19 expires 10d; 20 } 21 22 location ~ /\.ht { 23 deny all; 24 } 25 26 location ~ /(api\/|conf[^\.]|include|locale) { 27 deny all; 28 return 404; 29 } 30 31 location ~ [^/]\.php(/|$) { 32 fastcgi_pass unix:/var/opt/rh/rh-php72/run/php-fpm/zabbix.sock; 33 fastcgi_split_path_info ^(.+\.php)(/.+)$; 34 fastcgi_index index.php; 35 36 fastcgi_param DOCUMENT_ROOT /usr/share/zabbix; 37 fastcgi_param SCRIPT_FILENAME /usr/share/zabbix$fastcgi_script_name; 38 fastcgi_param PATH_TRANSLATED /usr/share/zabbix$fastcgi_script_name; 39 40 include fastcgi_params; 41 fastcgi_param QUERY_STRING $query_string; 42 fastcgi_param REQUEST_METHOD $request_method; 43 fastcgi_param CONTENT_TYPE $content_type; 44 fastcgi_param CONTENT_LENGTH $content_length; 45 46 fastcgi_intercept_errors on; 47 fastcgi_ignore_client_abort off; 48 fastcgi_connect_timeout 60; 49 fastcgi_send_timeout 180; 50 fastcgi_read_timeout 180; 51 fastcgi_buffer_size 128k; 52 fastcgi_buffers 4 256k; 53 fastcgi_busy_buffers_size 256k; 54 fastcgi_temp_file_write_size 256k; 55 } 56 }
また、PHP関連の設定も編集します。
6行目にnginxユーザを追加するのと、24行目のタイムゾーン設定です。
[root@zabbix5 tmp]# vi /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf [root@zabbix5 tmp]# cat -n /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf 1 [zabbix] 2 user = apache 3 group = apache 4 5 listen = /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock 6 listen.acl_users = apache,nginx 7 listen.allowed_clients = 127.0.0.1 8 9 pm = dynamic 10 pm.max_children = 50 11 pm.start_servers = 5 12 pm.min_spare_servers = 5 13 pm.max_spare_servers = 35 14 15 php_value[session.save_handler] = files 16 php_value[session.save_path] = /var/opt/rh/rh-php72/lib/php/session/ 17 18 php_value[max_execution_time] = 300 19 php_value[memory_limit] = 128M 20 php_value[post_max_size] = 16M 21 php_value[upload_max_filesize] = 2M 22 php_value[max_input_time] = 300 23 php_value[max_input_vars] = 10000 24 php_value[date.timezone] = Asia/Tokyo
ここでSELinuxを一旦Permmisive(ログのみ出力するモード)にします。
[root@zabbix5 tmp]# getenforce Enforcing [root@zabbix5 tmp]# setenforce 0 [root@zabbix5 tmp]# getenforce Permissive
では、いよいよzabbix/nginxの起動です。
[root@zabbix5 tmp]# systemctl status zabbix-server zabbix-agent rh-nginx116-nginx rh-php72-php-fpm ● zabbix-server.service - Zabbix Server Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled) Active: inactive (dead) ● zabbix-agent.service - Zabbix Agent Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; disabled; vendor preset: disabled) Active: inactive (dead) ● rh-nginx116-nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded (/usr/lib/systemd/system/rh-nginx116-nginx.service; disabled; vendor preset: disabled) Active: inactive (dead) ● rh-php72-php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/rh-php72-php-fpm.service; disabled; vendor preset: disabled) Active: inactive (dead) [root@zabbix5 tmp]# systemctl start zabbix-server zabbix-agent rh-nginx116-nginx rh-php72-php-fpm [root@zabbix5 tmp]# systemctl status zabbix-server zabbix-agent rh-nginx116-nginx rh-php72-php-fpm ● zabbix-server.service - Zabbix Server Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled) Active: active (running) since 火 2020-06-23 20:22:09 JST; 12s ago Process: 18226 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS) Main PID: 18234 (zabbix_server) CGroup: /system.slice/zabbix-server.service tq18234 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf tq18274 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.026456 ... tq18284 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes] tq18285 /usr/sbin/zabbix_server: timer #1 [updated 0 hosts, suppressed 0 events in 0.011... tq18286 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.001180 sec, idle 5 se... tq18287 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.001014 sec, idle ... tq18288 /usr/sbin/zabbix_server: history syncer #1 [processed 0 values, 0 triggers in 0.... tq18289 /usr/sbin/zabbix_server: history syncer #2 [processed 1 values, 0 triggers in 0.... tq18290 /usr/sbin/zabbix_server: history syncer #3 [processed 0 values, 0 triggers in 0.... tq18291 /usr/sbin/zabbix_server: history syncer #4 [processed 0 values, 0 triggers in 0.... tq18292 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001758 sec, ... tq18293 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000... tq18294 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000034 sec, idle 1... tq18295 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000631 sec, idle... tq18296 /usr/sbin/zabbix_server: poller #1 [got 1 values in 0.000491 sec, idle 1 sec] tq18297 /usr/sbin/zabbix_server: poller #2 [got 1 values in 0.000078 sec, idle 1 sec] tq18298 /usr/sbin/zabbix_server: poller #3 [got 0 values in 0.000008 sec, idle 1 sec] tq18299 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000010 sec, idle 1 sec] tq18300 /usr/sbin/zabbix_server: poller #5 [got 0 values in 0.000007 sec, idle 1 sec] tq18301 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000032 sec, id... tq18302 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for... tq18303 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for... tq18304 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.000000 sec, waiting for... tq18305 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for... tq18306 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for... tq18307 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000030 sec, idle 5 se... tq18308 /usr/sbin/zabbix_server: alert manager #1 [sent 0, failed 0 alerts, idle 5.01108... tq18309 /usr/sbin/zabbix_server: alerter #1 started tq18310 /usr/sbin/zabbix_server: alerter #2 started tq18311 /usr/sbin/zabbix_server: alerter #3 started tq18312 /usr/sbin/zabbix_server: preprocessing manager #1 [queued 0, processed 6 values,... tq18313 /usr/sbin/zabbix_server: preprocessing worker #1 started tq18314 /usr/sbin/zabbix_server: preprocessing worker #2 started tq18315 /usr/sbin/zabbix_server: preprocessing worker #3 started tq18316 /usr/sbin/zabbix_server: lld manager #1 [processed 0 LLD rules during 5.007881 s... tq18317 /usr/sbin/zabbix_server: lld worker #1 started tq18318 /usr/sbin/zabbix_server: lld worker #2 started mq18319 /usr/sbin/zabbix_server: alert syncer [queued 0 alerts(s), flushed 0 result(s) i... 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Starting Zabbix Server... 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Can't open PID file /run/zabbix/zabbix_server...ory 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Started Zabbix Server. ● zabbix-agent.service - Zabbix Agent Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; disabled; vendor preset: disabled) Active: active (running) since 火 2020-06-23 20:22:09 JST; 12s ago Process: 18227 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS) Main PID: 18235 (zabbix_agentd) CGroup: /system.slice/zabbix-agent.service tq18235 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf tq18239 /usr/sbin/zabbix_agentd: collector [idle 1 sec] tq18240 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection] tq18241 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection] tq18242 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection] mq18243 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec] 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Starting Zabbix Agent... 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Can't open PID file /run/zabbix/zabbix_agentd...ory 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Started Zabbix Agent. ● rh-nginx116-nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded (/usr/lib/systemd/system/rh-nginx116-nginx.service; disabled; vendor preset: disabled) Active: active (running) since 火 2020-06-23 20:22:09 JST; 12s ago Process: 18272 ExecStart=/opt/rh/rh-nginx116/root/usr/libexec/nginx-scl-helper enable $RH_NGINX116_SCLS_ENABLED -- /opt/rh/rh-nginx116/root/usr/sbin/nginx (code=exited, status=0/SUCCESS) Process: 18262 ExecStartPre=/opt/rh/rh-nginx116/root/usr/libexec/nginx-scl-helper enable $RH_NGINX116_SCLS_ENABLED -- /opt/rh/rh-nginx116/root/usr/sbin/nginx -t (code=exited, status=0/SUCCESS) Process: 18233 ExecStartPre=/opt/rh/rh-nginx116/root/usr/libexec/nginx-scl-helper enable $RH_NGINX116_SCLS_ENABLED -- /usr/bin/scl_enabled rh-nginx116 (code=exited, status=0/SUCCESS) Process: 18228 ExecStartPre=/usr/bin/rm -f /var/opt/rh/rh-nginx116/run/nginx/nginx.pid (code=exited, status=0/SUCCESS) Main PID: 18281 (nginx) CGroup: /system.slice/rh-nginx116-nginx.service tq18281 nginx: master process /opt/rh/rh-nginx116/root/usr/sbin/nginx mq18282 nginx: worker process 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Starting The nginx HTTP and reverse proxy server... 6月 23 20:22:09 zabbix5.0lts.centos7 nginx-scl-helper[18262]: nginx: the configuration file /etc...k 6月 23 20:22:09 zabbix5.0lts.centos7 nginx-scl-helper[18262]: nginx: configuration file /etc/opt...l 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Failed to parse PID from file /var/opt/rh/rh-...ent 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Started The nginx HTTP and reverse proxy server. ● rh-php72-php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/rh-php72-php-fpm.service; disabled; vendor preset: disabled) Active: active (running) since 火 2020-06-23 20:22:09 JST; 12s ago Main PID: 18231 (php-fpm) Status: "Processes active: 0, idle: 10, Requests: 0, slow: 0, Traffic: 0req/sec" CGroup: /system.slice/rh-php72-php-fpm.service tq18231 php-fpm: master process (/etc/opt/rh/rh-php72/php-fpm.conf) tq18245 php-fpm: pool www tq18246 php-fpm: pool www tq18247 php-fpm: pool www tq18248 php-fpm: pool www tq18249 php-fpm: pool www tq18250 php-fpm: pool zabbix tq18251 php-fpm: pool zabbix tq18252 php-fpm: pool zabbix tq18253 php-fpm: pool zabbix mq18254 php-fpm: pool zabbix 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Starting The PHP FastCGI Process Manager... 6月 23 20:22:09 zabbix5.0lts.centos7 systemd[1]: Started The PHP FastCGI Process Manager. Hint: Some lines were ellipsized, use -l to show in full.
次は、ファイアウォール(firewalld)でhttpアクセスを許可します。
[root@zabbix5 tmp]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: enp0s3 sources: services: dhcpv6-client ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: [root@zabbix5 tmp]# firewall-cmd --list-services --zone=public --permanent dhcpv6-client ssh [root@zabbix5 tmp]# firewall-cmd --add-service=http --zone=public --permanent success [root@zabbix5 tmp]# firewall-cmd --list-services --zone=public --permanent dhcpv6-client http ssh [root@zabbix5 tmp]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: enp0s3 sources: services: dhcpv6-client ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: [root@zabbix5 tmp]# systemctl stop firewalld [root@zabbix5 tmp]# systemctl start firewalld [root@zabbix5 tmp]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: enp0s3 sources: services: dhcpv6-client http ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules:
さぁ、ようやくWeb画面にアクセスできます。
Web画面にアクセスして、フロントエンドの設定をします。
が、しかし、phpファイルがダウンロードされるだけで、表示されない???
原因はおそらく、nginxのPHP関連なのでちょっとあがいてみます。
[root@zabbix5 tmp]# ls /opt/rh/rh-nginx116/root/usr/share/nginx/html 404.html 50x.html index.html nginx-logo.png poweredby.png [root@zabbix5 tmp]# ls /usr/share/zabbix/ actionconf.php disc_prototypes.php index_http.php screenconf.php api_jsonrpc.php discoveryconf.php index_sso.php screenedit.php app favicon.ico items.php screens.php applications.php graphs.php js services.php assets history.php jsLoader.php setup.php audio host_discovery.php jsrpc.php slideconf.php auditacts.php host_prototypes.php local slides.php browserwarning.php host_screen.php locale srv_status.php chart.php hostgroups.php maintenance.php sysmap.php chart2.php hostinventories.php map.import.php sysmaps.php chart3.php hostinventoriesoverview.php map.php templates.php chart4.php hosts.php modules toptriggers.php chart5.php httpconf.php overview.php tr_events.php chart6.php httpdetails.php queue.php trigger_prototypes.php chart7.php image.php report2.php triggers.php conf imgstore.php report4.php vendor conf.import.php include robots.txt zabbix.php correlation.php index.php screen.import.php [root@zabbix5 tmp]# ln -s /usr/share/zabbix/ /opt/rh/rh-nginx116/root/usr/share/nginx/html/zabbix [root@zabbix5 tmp]# ls -l /opt/rh/rh-nginx116/root/usr/share/nginx/html 合計 28 -rw-r--r--. 1 root root 4014 10月 7 2019 404.html -rw-r--r--. 1 root root 4063 10月 7 2019 50x.html -rw-r--r--. 1 root root 4100 10月 7 2019 index.html -rw-r--r--. 1 root root 368 10月 7 2019 nginx-logo.png -rw-r--r--. 1 root root 4148 10月 7 2019 poweredby.png lrwxrwxrwx. 1 root root 18 6月 23 20:45 zabbix -> /usr/share/zabbix/ [root@zabbix5 tmp]# ls -l /etc/zabbix/ 合計 40 drwxr-xr-x. 2 apache apache 33 6月 23 18:19 web -rw-r--r--. 1 root root 15018 5月 28 18:09 zabbix_agentd.conf drwxr-xr-x. 2 root root 6 5月 28 18:09 zabbix_agentd.d -rw-r-----. 1 root zabbix 21535 6月 23 20:07 zabbix_server.conf [root@zabbix5 tmp]# ls -ld /var/opt/rh/rh-php72/lib/php/session drwxrwx---. 2 root apache 6 11月 4 2019 /var/opt/rh/rh-php72/lib/php/session [root@zabbix5 tmp]# ls -l /etc/zabbix/ 合計 40 drwxr-xr-x. 2 nginx nginx 33 6月 23 18:19 web -rw-r--r--. 1 root root 15018 5月 28 18:09 zabbix_agentd.conf drwxr-xr-x. 2 root root 6 5月 28 18:09 zabbix_agentd.d -rw-r-----. 1 root zabbix 21535 6月 23 20:07 zabbix_server.conf [root@zabbix5 tmp]# chgrp nginx /var/opt/rh/rh-php72/lib/php/session [root@zabbix5 tmp]# ls -ld /var/opt/rh/rh-php72/lib/php/session drwxrwx---. 2 root nginx 6 11月 4 2019 /var/opt/rh/rh-php72/lib/php/session [root@zabbix5 zabbix]# vi /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf [root@zabbix5 zabbix]# cat -n /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf 1 [zabbix] 2 #user = apache 3 user = nginx 4 #group = apache 5 group = nginx 6 7 listen = /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock 8 listen.acl_users = apache,nginx 9 #listen.allowed_clients = 127.0.0.1 10 listen.allowed_clients = * 11 12 pm = dynamic 13 pm.max_children = 50 14 pm.start_servers = 5 15 pm.min_spare_servers = 5 16 pm.max_spare_servers = 35 17 18 php_value[session.save_handler] = files 19 php_value[session.save_path] = /var/opt/rh/rh-php72/lib/php/session/ 20 21 php_value[max_execution_time] = 300 22 php_value[memory_limit] = 128M 23 php_value[post_max_size] = 16M 24 php_value[upload_max_filesize] = 2M 25 php_value[max_input_time] = 300 26 php_value[max_input_vars] = 10000 27 php_value[date.timezone] = Asia/Tokyo [root@zabbix5 zabbix]# vi /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf [root@zabbix5 zabbix]# cat -n /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf 1 [zabbix] 2 ;user = apache 3 user = nginx 4 ;group = apache 5 group = nginx 6 7 listen = /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock 8 listen.acl_users = apache,nginx 9 ;listen.allowed_clients = 127.0.0.1 10 listen.allowed_clients = 11 12 pm = dynamic 13 pm.max_children = 50 14 pm.start_servers = 5 15 pm.min_spare_servers = 5 16 pm.max_spare_servers = 35 17 18 php_value[session.save_handler] = files 19 php_value[session.save_path] = /var/opt/rh/rh-php72/lib/php/session/ 20 21 php_value[max_execution_time] = 300 22 php_value[memory_limit] = 128M 23 php_value[post_max_size] = 16M 24 php_value[upload_max_filesize] = 2M 25 php_value[max_input_time] = 300 26 php_value[max_input_vars] = 10000 27 php_value[date.timezone] = Asia/Tokyo [root@zabbix5 zabbix]# systemctl restart zabbix-server zabbix-agent rh-nginx116-nginx rh-php72-php-fpm [root@zabbix5 html]# find / -name session /var/opt/rh/rh-php72/lib/php/session /opt/rh/rh-php72/register.content/var/opt/rh/rh-php72/lib/php/session [root@zabbix5 php]# cd /var/opt/rh/rh-php72/lib/php/ [root@zabbix5 php]# ll 合計 0 drwxrwx---. 2 root apache 6 11月 4 2019 opcache drwxrwx---. 2 root nginx 6 11月 4 2019 session drwxrwx---. 2 root apache 6 11月 4 2019 wsdlcache [root@zabbix5 php]# chgrp nginx opcache [root@zabbix5 php]# chgrp nginx wsdlcache [root@zabbix5 php]# ll 合計 0 drwxrwx---. 2 root nginx 6 11月 4 2019 opcache drwxrwx---. 2 root nginx 6 11月 4 2019 session drwxrwx---. 2 root nginx 6 11月 4 2019 wsdlcache [root@zabbix5 php]# vi /etc/opt/rh/rh-php72/php.ini [root@zabbix5 php]# cat -n /etc/opt/rh/rh-php72/php.ini 1 [PHP] 2 3 ;;;;;;;;;;;;;;;;;;; 4 ; About php.ini ; 5 ;;;;;;;;;;;;;;;;;;; 6 ; PHP's initialization file, generally called php.ini, is responsible for 7 ; configuring many of the aspects of PHP's behavior. 8 9 ; PHP attempts to find and load this configuration from a number of locations. 10 ; The following is a summary of its search order: 11 ; 1. SAPI module specific location. 12 ; 2. The PHPRC environment variable. (As of PHP 5.2.0) 13 ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) 14 ; 4. Current working directory (except CLI) 15 ; 5. The web server's directory (for SAPI modules), or directory of PHP 16 ; (otherwise in Windows) 17 ; 6. The directory from the --with-config-file-path compile time option, or the 18 ; Windows directory (C:\windows or C:\winnt) 19 ; See the PHP docs for more specific information. 20 ; http://php.net/configuration.file 21 22 ; The syntax of the file is extremely simple. Whitespace and lines 23 ; beginning with a semicolon are silently ignored (as you probably guessed). 24 ; Section headers (e.g. [Foo]) are also silently ignored, even though 25 ; they might mean something in the future. 26 27 ; Directives following the section heading [PATH=/www/mysite] only 28 ; apply to PHP files in the /www/mysite directory. Directives 29 ; following the section heading [HOST=www.example.com] only apply to 30 ; PHP files served from www.example.com. Directives set in these 31 ; special sections cannot be overridden by user-defined INI files or 32 ; at runtime. Currently, [PATH=] and [HOST=] sections only work under 33 ; CGI/FastCGI. 34 ; http://php.net/ini.sections 35 36 ; Directives are specified using the following syntax: 37 ; directive = value 38 ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. 39 ; Directives are variables used to configure PHP or PHP extensions. 40 ; There is no name validation. If PHP can't find an expected 41 ; directive because it is not set or is mistyped, a default value will be used. 42 43 ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one 44 ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression 45 ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a 46 ; previously set variable or directive (e.g. ${foo}) 47 48 ; Expressions in the INI file are limited to bitwise operators and parentheses: 49 ; | bitwise OR 50 ; ^ bitwise XOR 51 ; & bitwise AND 52 ; ~ bitwise NOT 53 ; ! boolean NOT 54 55 ; Boolean flags can be turned on using the values 1, On, True or Yes. 56 ; They can be turned off using the values 0, Off, False or No. 57 58 ; An empty string can be denoted by simply not writing anything after the equal 59 ; sign, or by using the None keyword: 60 61 ; foo = ; sets foo to an empty string 62 ; foo = None ; sets foo to an empty string 63 ; foo = "None" ; sets foo to the string 'None' 64 65 ; If you use constants in your value, and these constants belong to a 66 ; dynamically loaded extension (either a PHP extension or a Zend extension), 67 ; you may only use these constants *after* the line that loads the extension. 68 69 ;;;;;;;;;;;;;;;;;;; 70 ; About this file ; 71 ;;;;;;;;;;;;;;;;;;; 72 ; PHP comes packaged with two INI files. One that is recommended to be used 73 ; in production environments and one that is recommended to be used in 74 ; development environments. 75 76 ; php.ini-production contains settings which hold security, performance and 77 ; best practices at its core. But please be aware, these settings may break 78 ; compatibility with older or less security conscience applications. We 79 ; recommending using the production ini in production and testing environments. 80 81 ; php.ini-development is very similar to its production variant, except it is 82 ; much more verbose when it comes to errors. We recommend using the 83 ; development version only in development environments, as errors shown to 84 ; application users can inadvertently leak otherwise secure information. 85 86 ; This is php.ini-production INI file. 87 88 ;;;;;;;;;;;;;;;;;;; 89 ; Quick Reference ; 90 ;;;;;;;;;;;;;;;;;;; 91 ; The following are all the settings which are different in either the production 92 ; or development versions of the INIs with respect to PHP's default behavior. 93 ; Please see the actual settings later in the document for more details as to why 94 ; we recommend these changes in PHP's behavior. 95 96 ; display_errors 97 ; Default Value: On 98 ; Development Value: On 99 ; Production Value: Off 100 101 ; display_startup_errors 102 ; Default Value: Off 103 ; Development Value: On 104 ; Production Value: Off 105 106 ; error_reporting 107 ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 108 ; Development Value: E_ALL 109 ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 110 111 ; html_errors 112 ; Default Value: On 113 ; Development Value: On 114 ; Production value: On 115 116 ; log_errors 117 ; Default Value: Off 118 ; Development Value: On 119 ; Production Value: On 120 121 ; max_input_time 122 ; Default Value: -1 (Unlimited) 123 ; Development Value: 60 (60 seconds) 124 ; Production Value: 60 (60 seconds) 125 126 ; output_buffering 127 ; Default Value: Off 128 ; Development Value: 4096 129 ; Production Value: 4096 130 131 ; register_argc_argv 132 ; Default Value: On 133 ; Development Value: Off 134 ; Production Value: Off 135 136 ; request_order 137 ; Default Value: None 138 ; Development Value: "GP" 139 ; Production Value: "GP" 140 141 ; session.gc_divisor 142 ; Default Value: 100 143 ; Development Value: 1000 144 ; Production Value: 1000 145 146 ; session.sid_bits_per_character 147 ; Default Value: 4 148 ; Development Value: 5 149 ; Production Value: 5 150 151 ; short_open_tag 152 ; Default Value: On 153 ; Development Value: Off 154 ; Production Value: Off 155 156 ; track_errors 157 ; Default Value: Off 158 ; Development Value: On 159 ; Production Value: Off 160 161 ; variables_order 162 ; Default Value: "EGPCS" 163 ; Development Value: "GPCS" 164 ; Production Value: "GPCS" 165 166 ;;;;;;;;;;;;;;;;;;;; 167 ; php.ini Options ; 168 ;;;;;;;;;;;;;;;;;;;; 169 ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 170 ;user_ini.filename = ".user.ini" 171 172 ; To disable this feature set this option to empty value 173 ;user_ini.filename = 174 175 ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 176 ;user_ini.cache_ttl = 300 177 178 ;;;;;;;;;;;;;;;;;;;; 179 ; Language Options ; 180 ;;;;;;;;;;;;;;;;;;;; 181 182 ; Enable the PHP scripting language engine under Apache. 183 ; http://php.net/engine 184 engine = On 185 186 ; This directive determines whether or not PHP will recognize code between 187 ; <? and ?> tags as PHP source which should be processed as such. It is 188 ; generally recommended that <?php and ?> should be used and that this feature 189 ; should be disabled, as enabling it may result in issues when generating XML 190 ; documents, however this remains supported for backward compatibility reasons. 191 ; Note that this directive does not control the <?= shorthand tag, which can be 192 ; used regardless of this directive. 193 ; Default Value: On 194 ; Development Value: Off 195 ; Production Value: Off 196 ; http://php.net/short-open-tag 197 short_open_tag = Off 198 199 ; The number of significant digits displayed in floating point numbers. 200 ; http://php.net/precision 201 precision = 14 202 203 ; Output buffering is a mechanism for controlling how much output data 204 ; (excluding headers and cookies) PHP should keep internally before pushing that 205 ; data to the client. If your application's output exceeds this setting, PHP 206 ; will send that data in chunks of roughly the size you specify. 207 ; Turning on this setting and managing its maximum buffer size can yield some 208 ; interesting side-effects depending on your application and web server. 209 ; You may be able to send headers and cookies after you've already sent output 210 ; through print or echo. You also may see performance benefits if your server is 211 ; emitting less packets due to buffered output versus PHP streaming the output 212 ; as it gets it. On production servers, 4096 bytes is a good setting for performance 213 ; reasons. 214 ; Note: Output buffering can also be controlled via Output Buffering Control 215 ; functions. 216 ; Possible Values: 217 ; On = Enabled and buffer is unlimited. (Use with caution) 218 ; Off = Disabled 219 ; Integer = Enables the buffer and sets its maximum size in bytes. 220 ; Note: This directive is hardcoded to Off for the CLI SAPI 221 ; Default Value: Off 222 ; Development Value: 4096 223 ; Production Value: 4096 224 ; http://php.net/output-buffering 225 output_buffering = 4096 226 227 ; You can redirect all of the output of your scripts to a function. For 228 ; example, if you set output_handler to "mb_output_handler", character 229 ; encoding will be transparently converted to the specified encoding. 230 ; Setting any output handler automatically turns on output buffering. 231 ; Note: People who wrote portable scripts should not depend on this ini 232 ; directive. Instead, explicitly set the output handler using ob_start(). 233 ; Using this ini directive may cause problems unless you know what script 234 ; is doing. 235 ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" 236 ; and you cannot use both "ob_gzhandler" and "zlib.output_compression". 237 ; Note: output_handler must be empty if this is set 'On' !!!! 238 ; Instead you must use zlib.output_handler. 239 ; http://php.net/output-handler 240 ;output_handler = 241 242 ; URL rewriter function rewrites URL on the fly by using 243 ; output buffer. You can set target tags by this configuration. 244 ; "form" tag is special tag. It will add hidden input tag to pass values. 245 ; Refer to session.trans_sid_tags for usage. 246 ; Default Value: "form=" 247 ; Development Value: "form=" 248 ; Production Value: "form=" 249 ;url_rewriter.tags 250 251 ; URL rewriter will not rewrites absolute URL nor form by default. To enable 252 ; absolute URL rewrite, allowed hosts must be defined at RUNTIME. 253 ; Refer to session.trans_sid_hosts for more details. 254 ; Default Value: "" 255 ; Development Value: "" 256 ; Production Value: "" 257 ;url_rewriter.hosts 258 259 ; Transparent output compression using the zlib library 260 ; Valid values for this option are 'off', 'on', or a specific buffer size 261 ; to be used for compression (default is 4KB) 262 ; Note: Resulting chunk size may vary due to nature of compression. PHP 263 ; outputs chunks that are few hundreds bytes each as a result of 264 ; compression. If you prefer a larger chunk size for better 265 ; performance, enable output_buffering in addition. 266 ; Note: You need to use zlib.output_handler instead of the standard 267 ; output_handler, or otherwise the output will be corrupted. 268 ; http://php.net/zlib.output-compression 269 zlib.output_compression = Off 270 271 ; http://php.net/zlib.output-compression-level 272 ;zlib.output_compression_level = -1 273 274 ; You cannot specify additional output handlers if zlib.output_compression 275 ; is activated here. This setting does the same as output_handler but in 276 ; a different order. 277 ; http://php.net/zlib.output-handler 278 ;zlib.output_handler = 279 280 ; Implicit flush tells PHP to tell the output layer to flush itself 281 ; automatically after every output block. This is equivalent to calling the 282 ; PHP function flush() after each and every call to print() or echo() and each 283 ; and every HTML block. Turning this option on has serious performance 284 ; implications and is generally recommended for debugging purposes only. 285 ; http://php.net/implicit-flush 286 ; Note: This directive is hardcoded to On for the CLI SAPI 287 implicit_flush = Off 288 289 ; The unserialize callback function will be called (with the undefined class' 290 ; name as parameter), if the unserializer finds an undefined class 291 ; which should be instantiated. A warning appears if the specified function is 292 ; not defined, or if the function doesn't include/implement the missing class. 293 ; So only set this entry, if you really want to implement such a 294 ; callback-function. 295 unserialize_callback_func = 296 297 ; When floats & doubles are serialized, store serialize_precision significant 298 ; digits after the floating point. The default value ensures that when floats 299 ; are decoded with unserialize, the data will remain the same. 300 ; The value is also used for json_encode when encoding double values. 301 ; If -1 is used, then dtoa mode 0 is used which automatically select the best 302 ; precision. 303 serialize_precision = -1 304 305 ; open_basedir, if set, limits all file operations to the defined directory 306 ; and below. This directive makes most sense if used in a per-directory 307 ; or per-virtualhost web server configuration file. 308 ; http://php.net/open-basedir 309 ;open_basedir = 310 311 ; This directive allows you to disable certain functions for security reasons. 312 ; It receives a comma-delimited list of function names. 313 ; http://php.net/disable-functions 314 disable_functions = 315 316 ; This directive allows you to disable certain classes for security reasons. 317 ; It receives a comma-delimited list of class names. 318 ; http://php.net/disable-classes 319 disable_classes = 320 321 ; Colors for Syntax Highlighting mode. Anything that's acceptable in 322 ; <span style="color: ???????"> would work. 323 ; http://php.net/syntax-highlighting 324 ;highlight.string = #DD0000 325 ;highlight.comment = #FF9900 326 ;highlight.keyword = #007700 327 ;highlight.default = #0000BB 328 ;highlight.html = #000000 329 330 ; If enabled, the request will be allowed to complete even if the user aborts 331 ; the request. Consider enabling it if executing long requests, which may end up 332 ; being interrupted by the user or a browser timing out. PHP's default behavior 333 ; is to disable this feature. 334 ; http://php.net/ignore-user-abort 335 ;ignore_user_abort = On 336 337 ; Determines the size of the realpath cache to be used by PHP. This value should 338 ; be increased on systems where PHP opens many files to reflect the quantity of 339 ; the file operations performed. 340 ; http://php.net/realpath-cache-size 341 ;realpath_cache_size = 4096k 342 343 ; Duration of time, in seconds for which to cache realpath information for a given 344 ; file or directory. For systems with rarely changing files, consider increasing this 345 ; value. 346 ; http://php.net/realpath-cache-ttl 347 ;realpath_cache_ttl = 120 348 349 ; Enables or disables the circular reference collector. 350 ; http://php.net/zend.enable-gc 351 zend.enable_gc = On 352 353 ; If enabled, scripts may be written in encodings that are incompatible with 354 ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such 355 ; encodings. To use this feature, mbstring extension must be enabled. 356 ; Default: Off 357 ;zend.multibyte = Off 358 359 ; Allows to set the default encoding for the scripts. This value will be used 360 ; unless "declare(encoding=...)" directive appears at the top of the script. 361 ; Only affects if zend.multibyte is set. 362 ; Default: "" 363 ;zend.script_encoding = 364 365 ;;;;;;;;;;;;;;;;; 366 ; Miscellaneous ; 367 ;;;;;;;;;;;;;;;;; 368 369 ; Decides whether PHP may expose the fact that it is installed on the server 370 ; (e.g. by adding its signature to the Web server header). It is no security 371 ; threat in any way, but it makes it possible to determine whether you use PHP 372 ; on your server or not. 373 ; http://php.net/expose-php 374 expose_php = On 375 376 ;;;;;;;;;;;;;;;;;;; 377 ; Resource Limits ; 378 ;;;;;;;;;;;;;;;;;;; 379 380 ; Maximum execution time of each script, in seconds 381 ; http://php.net/max-execution-time 382 ; Note: This directive is hardcoded to 0 for the CLI SAPI 383 max_execution_time = 30 384 385 ; Maximum amount of time each script may spend parsing request data. It's a good 386 ; idea to limit this time on productions servers in order to eliminate unexpectedly 387 ; long running scripts. 388 ; Note: This directive is hardcoded to -1 for the CLI SAPI 389 ; Default Value: -1 (Unlimited) 390 ; Development Value: 60 (60 seconds) 391 ; Production Value: 60 (60 seconds) 392 ; http://php.net/max-input-time 393 max_input_time = 60 394 395 ; Maximum input variable nesting level 396 ; http://php.net/max-input-nesting-level 397 ;max_input_nesting_level = 64 398 399 ; How many GET/POST/COOKIE input variables may be accepted 400 ; max_input_vars = 1000 401 402 ; Maximum amount of memory a script may consume (128MB) 403 ; http://php.net/memory-limit 404 memory_limit = 128M 405 406 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 407 ; Error handling and logging ; 408 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 409 410 ; This directive informs PHP of which errors, warnings and notices you would like 411 ; it to take action for. The recommended way of setting values for this 412 ; directive is through the use of the error level constants and bitwise 413 ; operators. The error level constants are below here for convenience as well as 414 ; some common settings and their meanings. 415 ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 416 ; those related to E_NOTICE and E_STRICT, which together cover best practices and 417 ; recommended coding standards in PHP. For performance reasons, this is the 418 ; recommend error reporting setting. Your production server shouldn't be wasting 419 ; resources complaining about best practices and coding standards. That's what 420 ; development servers and development settings are for. 421 ; Note: The php.ini-development file has this setting as E_ALL. This 422 ; means it pretty much reports everything which is exactly what you want during 423 ; development and early testing. 424 ; 425 ; Error Level Constants: 426 ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) 427 ; E_ERROR - fatal run-time errors 428 ; E_RECOVERABLE_ERROR - almost fatal run-time errors 429 ; E_WARNING - run-time warnings (non-fatal errors) 430 ; E_PARSE - compile-time parse errors 431 ; E_NOTICE - run-time notices (these are warnings which often result 432 ; from a bug in your code, but it's possible that it was 433 ; intentional (e.g., using an uninitialized variable and 434 ; relying on the fact it is automatically initialized to an 435 ; empty string) 436 ; E_STRICT - run-time notices, enable to have PHP suggest changes 437 ; to your code which will ensure the best interoperability 438 ; and forward compatibility of your code 439 ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 440 ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 441 ; initial startup 442 ; E_COMPILE_ERROR - fatal compile-time errors 443 ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 444 ; E_USER_ERROR - user-generated error message 445 ; E_USER_WARNING - user-generated warning message 446 ; E_USER_NOTICE - user-generated notice message 447 ; E_DEPRECATED - warn about code that will not work in future versions 448 ; of PHP 449 ; E_USER_DEPRECATED - user-generated deprecation warnings 450 ; 451 ; Common Values: 452 ; E_ALL (Show all errors, warnings and notices including coding standards.) 453 ; E_ALL & ~E_NOTICE (Show all errors, except for notices) 454 ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) 455 ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 456 ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 457 ; Development Value: E_ALL 458 ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 459 ; http://php.net/error-reporting 460 error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT 461 462 ; This directive controls whether or not and where PHP will output errors, 463 ; notices and warnings too. Error output is very useful during development, but 464 ; it could be very dangerous in production environments. Depending on the code 465 ; which is triggering the error, sensitive information could potentially leak 466 ; out of your application such as database usernames and passwords or worse. 467 ; For production environments, we recommend logging errors rather than 468 ; sending them to STDOUT. 469 ; Possible Values: 470 ; Off = Do not display any errors 471 ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 472 ; On or stdout = Display errors to STDOUT 473 ; Default Value: On 474 ; Development Value: On 475 ; Production Value: Off 476 ; http://php.net/display-errors 477 display_errors = Off 478 479 ; The display of errors which occur during PHP's startup sequence are handled 480 ; separately from display_errors. PHP's default behavior is to suppress those 481 ; errors from clients. Turning the display of startup errors on can be useful in 482 ; debugging configuration problems. We strongly recommend you 483 ; set this to 'off' for production servers. 484 ; Default Value: Off 485 ; Development Value: On 486 ; Production Value: Off 487 ; http://php.net/display-startup-errors 488 display_startup_errors = Off 489 490 ; Besides displaying errors, PHP can also log errors to locations such as a 491 ; server-specific log, STDERR, or a location specified by the error_log 492 ; directive found below. While errors should not be displayed on productions 493 ; servers they should still be monitored and logging is a great way to do that. 494 ; Default Value: Off 495 ; Development Value: On 496 ; Production Value: On 497 ; http://php.net/log-errors 498 log_errors = On 499 500 ; Set maximum length of log_errors. In error_log information about the source is 501 ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 502 ; http://php.net/log-errors-max-len 503 log_errors_max_len = 1024 504 505 ; Do not log repeated messages. Repeated errors must occur in same file on same 506 ; line unless ignore_repeated_source is set true. 507 ; http://php.net/ignore-repeated-errors 508 ignore_repeated_errors = Off 509 510 ; Ignore source of message when ignoring repeated messages. When this setting 511 ; is On you will not log errors with repeated messages from different files or 512 ; source lines. 513 ; http://php.net/ignore-repeated-source 514 ignore_repeated_source = Off 515 516 ; If this parameter is set to Off, then memory leaks will not be shown (on 517 ; stdout or in the log). This has only effect in a debug compile, and if 518 ; error reporting includes E_WARNING in the allowed list 519 ; http://php.net/report-memleaks 520 report_memleaks = On 521 522 ; This setting is on by default. 523 ;report_zend_debug = 0 524 525 ; Store the last error/warning message in $php_errormsg (boolean). Setting this value 526 ; to On can assist in debugging and is appropriate for development servers. It should 527 ; however be disabled on production servers. 528 ; This directive is DEPRECATED. 529 ; Default Value: Off 530 ; Development Value: Off 531 ; Production Value: Off 532 ; http://php.net/track-errors 533 ;track_errors = Off 534 535 ; Turn off normal error reporting and emit XML-RPC error XML 536 ; http://php.net/xmlrpc-errors 537 ;xmlrpc_errors = 0 538 539 ; An XML-RPC faultCode 540 ;xmlrpc_error_number = 0 541 542 ; When PHP displays or logs an error, it has the capability of formatting the 543 ; error message as HTML for easier reading. This directive controls whether 544 ; the error message is formatted as HTML or not. 545 ; Note: This directive is hardcoded to Off for the CLI SAPI 546 ; Default Value: On 547 ; Development Value: On 548 ; Production value: On 549 ; http://php.net/html-errors 550 html_errors = On 551 552 ; If html_errors is set to On *and* docref_root is not empty, then PHP 553 ; produces clickable error messages that direct to a page describing the error 554 ; or function causing the error in detail. 555 ; You can download a copy of the PHP manual from http://php.net/docs 556 ; and change docref_root to the base URL of your local copy including the 557 ; leading '/'. You must also specify the file extension being used including 558 ; the dot. PHP's default behavior is to leave these settings empty, in which 559 ; case no links to documentation are generated. 560 ; Note: Never use this feature for production boxes. 561 ; http://php.net/docref-root 562 ; Examples 563 ;docref_root = "/phpmanual/" 564 565 ; http://php.net/docref-ext 566 ;docref_ext = .html 567 568 ; String to output before an error message. PHP's default behavior is to leave 569 ; this setting blank. 570 ; http://php.net/error-prepend-string 571 ; Example: 572 ;error_prepend_string = "<span style='color: #ff0000'>" 573 574 ; String to output after an error message. PHP's default behavior is to leave 575 ; this setting blank. 576 ; http://php.net/error-append-string 577 ; Example: 578 ;error_append_string = "</span>" 579 580 ; Log errors to specified file. PHP's default behavior is to leave this value 581 ; empty. 582 ; http://php.net/error-log 583 ; Example: 584 ;error_log = php_errors.log 585 ; Log errors to syslog. 586 ;error_log = syslog 587 588 ;windows.show_crt_warning 589 ; Default value: 0 590 ; Development value: 0 591 ; Production value: 0 592 593 ;;;;;;;;;;;;;;;;; 594 ; Data Handling ; 595 ;;;;;;;;;;;;;;;;; 596 597 ; The separator used in PHP generated URLs to separate arguments. 598 ; PHP's default setting is "&". 599 ; http://php.net/arg-separator.output 600 ; Example: 601 ;arg_separator.output = "&" 602 603 ; List of separator(s) used by PHP to parse input URLs into variables. 604 ; PHP's default setting is "&". 605 ; NOTE: Every character in this directive is considered as separator! 606 ; http://php.net/arg-separator.input 607 ; Example: 608 ;arg_separator.input = ";&" 609 610 ; This directive determines which super global arrays are registered when PHP 611 ; starts up. G,P,C,E & S are abbreviations for the following respective super 612 ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty 613 ; paid for the registration of these arrays and because ENV is not as commonly 614 ; used as the others, ENV is not recommended on productions servers. You 615 ; can still get access to the environment variables through getenv() should you 616 ; need to. 617 ; Default Value: "EGPCS" 618 ; Development Value: "GPCS" 619 ; Production Value: "GPCS"; 620 ; http://php.net/variables-order 621 variables_order = "GPCS" 622 623 ; This directive determines which super global data (G,P & C) should be 624 ; registered into the super global array REQUEST. If so, it also determines 625 ; the order in which that data is registered. The values for this directive 626 ; are specified in the same manner as the variables_order directive, 627 ; EXCEPT one. Leaving this value empty will cause PHP to use the value set 628 ; in the variables_order directive. It does not mean it will leave the super 629 ; globals array REQUEST empty. 630 ; Default Value: None 631 ; Development Value: "GP" 632 ; Production Value: "GP" 633 ; http://php.net/request-order 634 request_order = "GP" 635 636 ; This directive determines whether PHP registers $argv & $argc each time it 637 ; runs. $argv contains an array of all the arguments passed to PHP when a script 638 ; is invoked. $argc contains an integer representing the number of arguments 639 ; that were passed when the script was invoked. These arrays are extremely 640 ; useful when running scripts from the command line. When this directive is 641 ; enabled, registering these variables consumes CPU cycles and memory each time 642 ; a script is executed. For performance reasons, this feature should be disabled 643 ; on production servers. 644 ; Note: This directive is hardcoded to On for the CLI SAPI 645 ; Default Value: On 646 ; Development Value: Off 647 ; Production Value: Off 648 ; http://php.net/register-argc-argv 649 register_argc_argv = Off 650 651 ; When enabled, the ENV, REQUEST and SERVER variables are created when they're 652 ; first used (Just In Time) instead of when the script starts. If these 653 ; variables are not used within a script, having this directive on will result 654 ; in a performance gain. The PHP directive register_argc_argv must be disabled 655 ; for this directive to have any affect. 656 ; http://php.net/auto-globals-jit 657 auto_globals_jit = On 658 659 ; Whether PHP will read the POST data. 660 ; This option is enabled by default. 661 ; Most likely, you won't want to disable this option globally. It causes $_POST 662 ; and $_FILES to always be empty; the only way you will be able to read the 663 ; POST data will be through the php://input stream wrapper. This can be useful 664 ; to proxy requests or to process the POST data in a memory efficient fashion. 665 ; http://php.net/enable-post-data-reading 666 ;enable_post_data_reading = Off 667 668 ; Maximum size of POST data that PHP will accept. 669 ; Its value may be 0 to disable the limit. It is ignored if POST data reading 670 ; is disabled through enable_post_data_reading. 671 ; http://php.net/post-max-size 672 post_max_size = 8M 673 674 ; Automatically add files before PHP document. 675 ; http://php.net/auto-prepend-file 676 auto_prepend_file = 677 678 ; Automatically add files after PHP document. 679 ; http://php.net/auto-append-file 680 auto_append_file = 681 682 ; By default, PHP will output a media type using the Content-Type header. To 683 ; disable this, simply set it to be empty. 684 ; 685 ; PHP's built-in default media type is set to text/html. 686 ; http://php.net/default-mimetype 687 default_mimetype = "text/html" 688 689 ; PHP's default character set is set to UTF-8. 690 ; http://php.net/default-charset 691 default_charset = "UTF-8" 692 693 ; PHP internal character encoding is set to empty. 694 ; If empty, default_charset is used. 695 ; http://php.net/internal-encoding 696 ;internal_encoding = 697 698 ; PHP input character encoding is set to empty. 699 ; If empty, default_charset is used. 700 ; http://php.net/input-encoding 701 ;input_encoding = 702 703 ; PHP output character encoding is set to empty. 704 ; If empty, default_charset is used. 705 ; See also output_buffer. 706 ; http://php.net/output-encoding 707 ;output_encoding = 708 709 ;;;;;;;;;;;;;;;;;;;;;;;;; 710 ; Paths and Directories ; 711 ;;;;;;;;;;;;;;;;;;;;;;;;; 712 713 ; UNIX: "/path1:/path2" 714 ;include_path = ".:/php/includes" 715 ; 716 ; Windows: "\path1;\path2" 717 ;include_path = ".;c:\php\includes" 718 ; 719 ; PHP's default setting for include_path is ".;/path/to/php/pear" 720 ; http://php.net/include-path 721 722 ; The root of the PHP pages, used only if nonempty. 723 ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 724 ; if you are running php as a CGI under any web server (other than IIS) 725 ; see documentation for security issues. The alternate is to use the 726 ; cgi.force_redirect configuration below 727 ; http://php.net/doc-root 728 doc_root = 729 730 ; The directory under which PHP opens the script using /~username used only 731 ; if nonempty. 732 ; http://php.net/user-dir 733 user_dir = 734 735 ; Directory in which the loadable extensions (modules) reside. 736 ; http://php.net/extension-dir 737 ; extension_dir = "./" 738 ; On windows: 739 ; extension_dir = "ext" 740 741 ; Directory where the temporary files should be placed. 742 ; Defaults to the system default (see sys_get_temp_dir) 743 ; sys_temp_dir = "/tmp" 744 745 ; Whether or not to enable the dl() function. The dl() function does NOT work 746 ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 747 ; disabled on them. 748 ; http://php.net/enable-dl 749 enable_dl = Off 750 751 ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 752 ; most web servers. Left undefined, PHP turns this on by default. You can 753 ; turn it off here AT YOUR OWN RISK 754 ; **You CAN safely turn this off for IIS, in fact, you MUST.** 755 ; http://php.net/cgi.force-redirect 756 ;cgi.force_redirect = 1 757 758 ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 759 ; every request. PHP's default behavior is to disable this feature. 760 ;cgi.nph = 1 761 762 ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 763 ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 764 ; will look for to know it is OK to continue execution. Setting this variable MAY 765 ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 766 ; http://php.net/cgi.redirect-status-env 767 ;cgi.redirect_status_env = 768 769 ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 770 ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 771 ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 772 ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 773 ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 774 ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 775 ; http://php.net/cgi.fix-pathinfo 776 ;cgi.fix_pathinfo=1 777 cgi.fix_pathinfo=0 778 779 ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside 780 ; of the web tree and people will not be able to circumvent .htaccess security. 781 ; http://php.net/cgi.dicard-path 782 ;cgi.discard_path=1 783 784 ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate 785 ; security tokens of the calling client. This allows IIS to define the 786 ; security context that the request runs under. mod_fastcgi under Apache 787 ; does not currently support this feature (03/17/2002) 788 ; Set to 1 if running under IIS. Default is zero. 789 ; http://php.net/fastcgi.impersonate 790 ;fastcgi.impersonate = 1 791 792 ; Disable logging through FastCGI connection. PHP's default behavior is to enable 793 ; this feature. 794 ;fastcgi.logging = 0 795 796 ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 797 ; use when sending HTTP response code. If set to 0, PHP sends Status: header that 798 ; is supported by Apache. When this option is set to 1, PHP will send 799 ; RFC2616 compliant header. 800 ; Default is zero. 801 ; http://php.net/cgi.rfc2616-headers 802 ;cgi.rfc2616_headers = 0 803 804 ; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! 805 ; (shebang) at the top of the running script. This line might be needed if the 806 ; script support running both as stand-alone script and via PHP CGI<. PHP in CGI 807 ; mode skips this line and ignores its content if this directive is turned on. 808 ; http://php.net/cgi.check-shebang-line 809 ;cgi.check_shebang_line=1 810 811 ;;;;;;;;;;;;;;;; 812 ; File Uploads ; 813 ;;;;;;;;;;;;;;;; 814 815 ; Whether to allow HTTP file uploads. 816 ; http://php.net/file-uploads 817 file_uploads = On 818 819 ; Temporary directory for HTTP uploaded files (will use system default if not 820 ; specified). 821 ; http://php.net/upload-tmp-dir 822 ;upload_tmp_dir = 823 824 ; Maximum allowed size for uploaded files. 825 ; http://php.net/upload-max-filesize 826 upload_max_filesize = 2M 827 828 ; Maximum number of files that can be uploaded via a single request 829 max_file_uploads = 20 830 831 ;;;;;;;;;;;;;;;;;; 832 ; Fopen wrappers ; 833 ;;;;;;;;;;;;;;;;;; 834 835 ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 836 ; http://php.net/allow-url-fopen 837 allow_url_fopen = On 838 839 ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 840 ; http://php.net/allow-url-include 841 allow_url_include = Off 842 843 ; Define the anonymous ftp password (your email address). PHP's default setting 844 ; for this is empty. 845 ; http://php.net/from 846 ;from="john@doe.com" 847 848 ; Define the User-Agent string. PHP's default setting for this is empty. 849 ; http://php.net/user-agent 850 ;user_agent="PHP" 851 852 ; Default timeout for socket based streams (seconds) 853 ; http://php.net/default-socket-timeout 854 default_socket_timeout = 60 855 856 ; If your scripts have to deal with files from Macintosh systems, 857 ; or you are running on a Mac and need to deal with files from 858 ; unix or win32 systems, setting this flag will cause PHP to 859 ; automatically detect the EOL character in those files so that 860 ; fgets() and file() will work regardless of the source of the file. 861 ; http://php.net/auto-detect-line-endings 862 ;auto_detect_line_endings = Off 863 864 ;;;;;;;;;;;;;;;;;;;;;; 865 ; Dynamic Extensions ; 866 ;;;;;;;;;;;;;;;;;;;;;; 867 868 ; If you wish to have an extension loaded automatically, use the following 869 ; syntax: 870 ; 871 ; extension=modulename 872 ; 873 ; For example: 874 ; 875 ; extension=mysqli 876 ; 877 ; When the extension library to load is not located in the default extension 878 ; directory, You may specify an absolute path to the library file: 879 ; 880 ; extension=/path/to/extension/mysqli.so 881 ; 882 ; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and 883 ; 'extension='php_<ext>.dll') is supported for legacy reasons and may be 884 ; deprecated in a future PHP major version. So, when it is possible, please 885 ; move to the new ('extension=<ext>) syntax. 886 887 ;;;; 888 ; Note: packaged extension modules are now loaded via the .ini files 889 ; found in the directory /etc/php.d; these are loaded by default. 890 ;;;; 891 892 ;;;;;;;;;;;;;;;;;;; 893 ; Module Settings ; 894 ;;;;;;;;;;;;;;;;;;; 895 896 [CLI Server] 897 ; Whether the CLI web server uses ANSI color coding in its terminal output. 898 cli_server.color = On 899 900 [Date] 901 ; Defines the default timezone used by the date functions 902 ; http://php.net/date.timezone 903 ;date.timezone = 904 905 ; http://php.net/date.default-latitude 906 ;date.default_latitude = 31.7667 907 908 ; http://php.net/date.default-longitude 909 ;date.default_longitude = 35.2333 910 911 ; http://php.net/date.sunrise-zenith 912 ;date.sunrise_zenith = 90.583333 913 914 ; http://php.net/date.sunset-zenith 915 ;date.sunset_zenith = 90.583333 916 917 [filter] 918 ; http://php.net/filter.default 919 ;filter.default = unsafe_raw 920 921 ; http://php.net/filter.default-flags 922 ;filter.default_flags = 923 924 [iconv] 925 ; Use of this INI entry is deprecated, use global input_encoding instead. 926 ; If empty, default_charset or input_encoding or iconv.input_encoding is used. 927 ; The precedence is: default_charset < intput_encoding < iconv.input_encoding 928 ;iconv.input_encoding = 929 930 ; Use of this INI entry is deprecated, use global internal_encoding instead. 931 ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 932 ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 933 ;iconv.internal_encoding = 934 935 ; Use of this INI entry is deprecated, use global output_encoding instead. 936 ; If empty, default_charset or output_encoding or iconv.output_encoding is used. 937 ; The precedence is: default_charset < output_encoding < iconv.output_encoding 938 ; To use an output encoding conversion, iconv's output handler must be set 939 ; otherwise output encoding conversion cannot be performed. 940 ;iconv.output_encoding = 941 942 [intl] 943 ;intl.default_locale = 944 ; This directive allows you to produce PHP errors when some error 945 ; happens within intl functions. The value is the level of the error produced. 946 ; Default is 0, which does not produce any errors. 947 ;intl.error_level = E_WARNING 948 ;intl.use_exceptions = 0 949 950 [sqlite3] 951 ;sqlite3.extension_dir = 952 953 [Pcre] 954 ;PCRE library backtracking limit. 955 ; http://php.net/pcre.backtrack-limit 956 ;pcre.backtrack_limit=100000 957 958 ;PCRE library recursion limit. 959 ;Please note that if you set this value to a high number you may consume all 960 ;the available process stack and eventually crash PHP (due to reaching the 961 ;stack size limit imposed by the Operating System). 962 ; http://php.net/pcre.recursion-limit 963 ;pcre.recursion_limit=100000 964 965 ;Enables or disables JIT compilation of patterns. This requires the PCRE 966 ;library to be compiled with JIT support. 967 pcre.jit=0 968 969 [Pdo] 970 ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 971 ; http://php.net/pdo-odbc.connection-pooling 972 ;pdo_odbc.connection_pooling=strict 973 974 ;pdo_odbc.db2_instance_name 975 976 [Pdo_mysql] 977 ; If mysqlnd is used: Number of cache slots for the internal result set cache 978 ; http://php.net/pdo_mysql.cache_size 979 pdo_mysql.cache_size = 2000 980 981 ; Default socket name for local MySQL connects. If empty, uses the built-in 982 ; MySQL defaults. 983 ; http://php.net/pdo_mysql.default-socket 984 pdo_mysql.default_socket= 985 986 [Phar] 987 ; http://php.net/phar.readonly 988 ;phar.readonly = On 989 990 ; http://php.net/phar.require-hash 991 ;phar.require_hash = On 992 993 ;phar.cache_list = 994 995 [mail function] 996 ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 997 ; http://php.net/sendmail-path 998 sendmail_path = /usr/sbin/sendmail -t -i 999 1000 ; Force the addition of the specified parameters to be passed as extra parameters 1001 ; to the sendmail binary. These parameters will always replace the value of 1002 ; the 5th parameter to mail(). 1003 ;mail.force_extra_parameters = 1004 1005 ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 1006 mail.add_x_header = On 1007 1008 ; The path to a log file that will log all mail() calls. Log entries include 1009 ; the full path of the script, line number, To address and headers. 1010 ;mail.log = 1011 ; Log mail to syslog; 1012 ;mail.log = syslog 1013 1014 [ODBC] 1015 ; http://php.net/odbc.default-db 1016 ;odbc.default_db = Not yet implemented 1017 1018 ; http://php.net/odbc.default-user 1019 ;odbc.default_user = Not yet implemented 1020 1021 ; http://php.net/odbc.default-pw 1022 ;odbc.default_pw = Not yet implemented 1023 1024 ; Controls the ODBC cursor model. 1025 ; Default: SQL_CURSOR_STATIC (default). 1026 ;odbc.default_cursortype 1027 1028 ; Allow or prevent persistent links. 1029 ; http://php.net/odbc.allow-persistent 1030 odbc.allow_persistent = On 1031 1032 ; Check that a connection is still valid before reuse. 1033 ; http://php.net/odbc.check-persistent 1034 odbc.check_persistent = On 1035 1036 ; Maximum number of persistent links. -1 means no limit. 1037 ; http://php.net/odbc.max-persistent 1038 odbc.max_persistent = -1 1039 1040 ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1041 ; http://php.net/odbc.max-links 1042 odbc.max_links = -1 1043 1044 ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1045 ; passthru. 1046 ; http://php.net/odbc.defaultlrl 1047 odbc.defaultlrl = 4096 1048 1049 ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1050 ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1051 ; of odbc.defaultlrl and odbc.defaultbinmode 1052 ; http://php.net/odbc.defaultbinmode 1053 odbc.defaultbinmode = 1 1054 1055 ;birdstep.max_links = -1 1056 1057 [Interbase] 1058 ; Allow or prevent persistent links. 1059 ibase.allow_persistent = 1 1060 1061 ; Maximum number of persistent links. -1 means no limit. 1062 ibase.max_persistent = -1 1063 1064 ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1065 ibase.max_links = -1 1066 1067 ; Default database name for ibase_connect(). 1068 ;ibase.default_db = 1069 1070 ; Default username for ibase_connect(). 1071 ;ibase.default_user = 1072 1073 ; Default password for ibase_connect(). 1074 ;ibase.default_password = 1075 1076 ; Default charset for ibase_connect(). 1077 ;ibase.default_charset = 1078 1079 ; Default timestamp format. 1080 ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1081 1082 ; Default date format. 1083 ibase.dateformat = "%Y-%m-%d" 1084 1085 ; Default time format. 1086 ibase.timeformat = "%H:%M:%S" 1087 1088 [MySQLi] 1089 1090 ; Maximum number of persistent links. -1 means no limit. 1091 ; http://php.net/mysqli.max-persistent 1092 mysqli.max_persistent = -1 1093 1094 ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1095 ; http://php.net/mysqli.allow_local_infile 1096 ;mysqli.allow_local_infile = On 1097 1098 ; Allow or prevent persistent links. 1099 ; http://php.net/mysqli.allow-persistent 1100 mysqli.allow_persistent = On 1101 1102 ; Maximum number of links. -1 means no limit. 1103 ; http://php.net/mysqli.max-links 1104 mysqli.max_links = -1 1105 1106 ; If mysqlnd is used: Number of cache slots for the internal result set cache 1107 ; http://php.net/mysqli.cache_size 1108 mysqli.cache_size = 2000 1109 1110 ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1111 ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1112 ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1113 ; at MYSQL_PORT. 1114 ; http://php.net/mysqli.default-port 1115 mysqli.default_port = 3306 1116 1117 ; Default socket name for local MySQL connects. If empty, uses the built-in 1118 ; MySQL defaults. 1119 ; http://php.net/mysqli.default-socket 1120 mysqli.default_socket = 1121 1122 ; Default host for mysql_connect() (doesn't apply in safe mode). 1123 ; http://php.net/mysqli.default-host 1124 mysqli.default_host = 1125 1126 ; Default user for mysql_connect() (doesn't apply in safe mode). 1127 ; http://php.net/mysqli.default-user 1128 mysqli.default_user = 1129 1130 ; Default password for mysqli_connect() (doesn't apply in safe mode). 1131 ; Note that this is generally a *bad* idea to store passwords in this file. 1132 ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1133 ; and reveal this password! And of course, any users with read access to this 1134 ; file will be able to reveal the password as well. 1135 ; http://php.net/mysqli.default-pw 1136 mysqli.default_pw = 1137 1138 ; Allow or prevent reconnect 1139 mysqli.reconnect = Off 1140 1141 [mysqlnd] 1142 ; Enable / Disable collection of general statistics by mysqlnd which can be 1143 ; used to tune and monitor MySQL operations. 1144 ; http://php.net/mysqlnd.collect_statistics 1145 mysqlnd.collect_statistics = On 1146 1147 ; Enable / Disable collection of memory usage statistics by mysqlnd which can be 1148 ; used to tune and monitor MySQL operations. 1149 ; http://php.net/mysqlnd.collect_memory_statistics 1150 mysqlnd.collect_memory_statistics = Off 1151 1152 ; Records communication from all extensions using mysqlnd to the specified log 1153 ; file. 1154 ; http://php.net/mysqlnd.debug 1155 ;mysqlnd.debug = 1156 1157 ; Defines which queries will be logged. 1158 ; http://php.net/mysqlnd.log_mask 1159 ;mysqlnd.log_mask = 0 1160 1161 ; Default size of the mysqlnd memory pool, which is used by result sets. 1162 ; http://php.net/mysqlnd.mempool_default_size 1163 ;mysqlnd.mempool_default_size = 16000 1164 1165 ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1166 ; http://php.net/mysqlnd.net_cmd_buffer_size 1167 ;mysqlnd.net_cmd_buffer_size = 2048 1168 1169 ; Size of a pre-allocated buffer used for reading data sent by the server in 1170 ; bytes. 1171 ; http://php.net/mysqlnd.net_read_buffer_size 1172 ;mysqlnd.net_read_buffer_size = 32768 1173 1174 ; Timeout for network requests in seconds. 1175 ; http://php.net/mysqlnd.net_read_timeout 1176 ;mysqlnd.net_read_timeout = 31536000 1177 1178 ; SHA-256 Authentication Plugin related. File with the MySQL server public RSA 1179 ; key. 1180 ; http://php.net/mysqlnd.sha256_server_public_key 1181 ;mysqlnd.sha256_server_public_key = 1182 1183 [PostgreSQL] 1184 ; Allow or prevent persistent links. 1185 ; http://php.net/pgsql.allow-persistent 1186 pgsql.allow_persistent = On 1187 1188 ; Detect broken persistent links always with pg_pconnect(). 1189 ; Auto reset feature requires a little overheads. 1190 ; http://php.net/pgsql.auto-reset-persistent 1191 pgsql.auto_reset_persistent = Off 1192 1193 ; Maximum number of persistent links. -1 means no limit. 1194 ; http://php.net/pgsql.max-persistent 1195 pgsql.max_persistent = -1 1196 1197 ; Maximum number of links (persistent+non persistent). -1 means no limit. 1198 ; http://php.net/pgsql.max-links 1199 pgsql.max_links = -1 1200 1201 ; Ignore PostgreSQL backends Notice message or not. 1202 ; Notice message logging require a little overheads. 1203 ; http://php.net/pgsql.ignore-notice 1204 pgsql.ignore_notice = 0 1205 1206 ; Log PostgreSQL backends Notice message or not. 1207 ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1208 ; http://php.net/pgsql.log-notice 1209 pgsql.log_notice = 0 1210 1211 [bcmath] 1212 ; Number of decimal digits for all bcmath functions. 1213 ; http://php.net/bcmath.scale 1214 bcmath.scale = 0 1215 1216 [browscap] 1217 ; http://php.net/browscap 1218 ;browscap = extra/browscap.ini 1219 1220 [Session] 1221 ; Handler used to store/retrieve data. 1222 ; http://php.net/session.save-handler 1223 session.save_handler = files 1224 1225 ; Argument passed to save_handler. In the case of files, this is the path 1226 ; where data files are stored. Note: Windows users have to change this 1227 ; variable in order to use PHP's session functions. 1228 ; 1229 ; The path can be defined as: 1230 ; 1231 ; session.save_path = "N;/path" 1232 ; 1233 ; where N is an integer. Instead of storing all the session files in 1234 ; /path, what this will do is use subdirectories N-levels deep, and 1235 ; store the session data in those directories. This is useful if 1236 ; your OS has problems with many files in one directory, and is 1237 ; a more efficient layout for servers that handle many sessions. 1238 ; 1239 ; NOTE 1: PHP will not create this directory structure automatically. 1240 ; You can use the script in the ext/session dir for that purpose. 1241 ; NOTE 2: See the section on garbage collection below if you choose to 1242 ; use subdirectories for session storage 1243 ; 1244 ; The file storage module creates files using mode 600 by default. 1245 ; You can change that by using 1246 ; 1247 ; session.save_path = "N;MODE;/path" 1248 ; 1249 ; where MODE is the octal representation of the mode. Note that this 1250 ; does not overwrite the process's umask. 1251 ; http://php.net/session.save-path 1252 1253 ; RPM note : session directory must be owned by process owner 1254 ; for mod_php, see /etc/httpd/conf.d/php.conf 1255 ; for php-fpm, see /etc/php-fpm.d/*conf 1256 ;session.save_path = "/tmp" 1257 1258 ; Whether to use strict session mode. 1259 ; Strict session mode does not accept uninitialized session ID and regenerate 1260 ; session ID if browser sends uninitialized session ID. Strict mode protects 1261 ; applications from session fixation via session adoption vulnerability. It is 1262 ; disabled by default for maximum compatibility, but enabling it is encouraged. 1263 ; https://wiki.php.net/rfc/strict_sessions 1264 session.use_strict_mode = 0 1265 1266 ; Whether to use cookies. 1267 ; http://php.net/session.use-cookies 1268 session.use_cookies = 1 1269 1270 ; http://php.net/session.cookie-secure 1271 ;session.cookie_secure = 1272 1273 ; This option forces PHP to fetch and use a cookie for storing and maintaining 1274 ; the session id. We encourage this operation as it's very helpful in combating 1275 ; session hijacking when not specifying and managing your own session id. It is 1276 ; not the be-all and end-all of session hijacking defense, but it's a good start. 1277 ; http://php.net/session.use-only-cookies 1278 session.use_only_cookies = 1 1279 1280 ; Name of the session (used as cookie name). 1281 ; http://php.net/session.name 1282 session.name = PHPSESSID 1283 1284 ; Initialize session on request startup. 1285 ; http://php.net/session.auto-start 1286 session.auto_start = 0 1287 1288 ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1289 ; http://php.net/session.cookie-lifetime 1290 session.cookie_lifetime = 0 1291 1292 ; The path for which the cookie is valid. 1293 ; http://php.net/session.cookie-path 1294 session.cookie_path = / 1295 1296 ; The domain for which the cookie is valid. 1297 ; http://php.net/session.cookie-domain 1298 session.cookie_domain = 1299 1300 ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. 1301 ; http://php.net/session.cookie-httponly 1302 session.cookie_httponly = 1303 1304 ; Handler used to serialize data. php is the standard serializer of PHP. 1305 ; http://php.net/session.serialize-handler 1306 session.serialize_handler = php 1307 1308 ; Defines the probability that the 'garbage collection' process is started 1309 ; on every session initialization. The probability is calculated by using 1310 ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1311 ; and gc_divisor is the denominator in the equation. Setting this value to 1 1312 ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1313 ; the gc will run on any give request. 1314 ; Default Value: 1 1315 ; Development Value: 1 1316 ; Production Value: 1 1317 ; http://php.net/session.gc-probability 1318 session.gc_probability = 1 1319 1320 ; Defines the probability that the 'garbage collection' process is started on every 1321 ; session initialization. The probability is calculated by using the following equation: 1322 ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1323 ; session.gc_divisor is the denominator in the equation. Setting this value to 1 1324 ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1325 ; the gc will run on any give request. Increasing this value to 1000 will give you 1326 ; a 0.1% chance the gc will run on any give request. For high volume production servers, 1327 ; this is a more efficient approach. 1328 ; Default Value: 100 1329 ; Development Value: 1000 1330 ; Production Value: 1000 1331 ; http://php.net/session.gc-divisor 1332 session.gc_divisor = 1000 1333 1334 ; After this number of seconds, stored data will be seen as 'garbage' and 1335 ; cleaned up by the garbage collection process. 1336 ; http://php.net/session.gc-maxlifetime 1337 session.gc_maxlifetime = 1440 1338 1339 ; NOTE: If you are using the subdirectory option for storing session files 1340 ; (see session.save_path above), then garbage collection does *not* 1341 ; happen automatically. You will need to do your own garbage 1342 ; collection through a shell script, cron entry, or some other method. 1343 ; For example, the following script would is the equivalent of 1344 ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1345 ; find /path/to/sessions -cmin +24 -type f | xargs rm 1346 1347 ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1348 ; HTTP_REFERER has to contain this substring for the session to be 1349 ; considered as valid. 1350 ; http://php.net/session.referer-check 1351 session.referer_check = 1352 1353 ; Set to {nocache,private,public,} to determine HTTP caching aspects 1354 ; or leave this empty to avoid sending anti-caching headers. 1355 ; http://php.net/session.cache-limiter 1356 session.cache_limiter = nocache 1357 1358 ; Document expires after n minutes. 1359 ; http://php.net/session.cache-expire 1360 session.cache_expire = 180 1361 1362 ; trans sid support is disabled by default. 1363 ; Use of trans sid may risk your users' security. 1364 ; Use this option with caution. 1365 ; - User may send URL contains active session ID 1366 ; to other person via. email/irc/etc. 1367 ; - URL that contains active session ID may be stored 1368 ; in publicly accessible computer. 1369 ; - User may access your site with the same session ID 1370 ; always using URL stored in browser's history or bookmarks. 1371 ; http://php.net/session.use-trans-sid 1372 session.use_trans_sid = 0 1373 1374 ; Set session ID character length. This value could be between 22 to 256. 1375 ; Shorter length than default is supported only for compatibility reason. 1376 ; Users should use 32 or more chars. 1377 ; http://php.net/session.sid_length 1378 ; Default Value: 32 1379 ; Development Value: 26 1380 ; Production Value: 26 1381 session.sid_length = 26 1382 1383 ; The URL rewriter will look for URLs in a defined set of HTML tags. 1384 ; <form> is special; if you include them here, the rewriter will 1385 ; add a hidden <input> field with the info which is otherwise appended 1386 ; to URLs. <form> tag's action attribute URL will not be modified 1387 ; unless it is specified. 1388 ; Note that all valid entries require a "=", even if no value follows. 1389 ; Default Value: "a=href,area=href,frame=src,form=" 1390 ; Development Value: "a=href,area=href,frame=src,form=" 1391 ; Production Value: "a=href,area=href,frame=src,form=" 1392 ; http://php.net/url-rewriter.tags 1393 session.trans_sid_tags = "a=href,area=href,frame=src,form=" 1394 1395 ; URL rewriter does not rewrite absolute URLs by default. 1396 ; To enable rewrites for absolute pathes, target hosts must be specified 1397 ; at RUNTIME. i.e. use ini_set() 1398 ; <form> tags is special. PHP will check action attribute's URL regardless 1399 ; of session.trans_sid_tags setting. 1400 ; If no host is defined, HTTP_HOST will be used for allowed host. 1401 ; Example value: php.net,www.php.net,wiki.php.net 1402 ; Use "," for multiple hosts. No spaces are allowed. 1403 ; Default Value: "" 1404 ; Development Value: "" 1405 ; Production Value: "" 1406 ;session.trans_sid_hosts="" 1407 1408 ; Define how many bits are stored in each character when converting 1409 ; the binary hash data to something readable. 1410 ; Possible values: 1411 ; 4 (4 bits: 0-9, a-f) 1412 ; 5 (5 bits: 0-9, a-v) 1413 ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1414 ; Default Value: 4 1415 ; Development Value: 5 1416 ; Production Value: 5 1417 ; http://php.net/session.hash-bits-per-character 1418 session.sid_bits_per_character = 5 1419 1420 ; Enable upload progress tracking in $_SESSION 1421 ; Default Value: On 1422 ; Development Value: On 1423 ; Production Value: On 1424 ; http://php.net/session.upload-progress.enabled 1425 ;session.upload_progress.enabled = On 1426 1427 ; Cleanup the progress information as soon as all POST data has been read 1428 ; (i.e. upload completed). 1429 ; Default Value: On 1430 ; Development Value: On 1431 ; Production Value: On 1432 ; http://php.net/session.upload-progress.cleanup 1433 ;session.upload_progress.cleanup = On 1434 1435 ; A prefix used for the upload progress key in $_SESSION 1436 ; Default Value: "upload_progress_" 1437 ; Development Value: "upload_progress_" 1438 ; Production Value: "upload_progress_" 1439 ; http://php.net/session.upload-progress.prefix 1440 ;session.upload_progress.prefix = "upload_progress_" 1441 1442 ; The index name (concatenated with the prefix) in $_SESSION 1443 ; containing the upload progress information 1444 ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" 1445 ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" 1446 ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" 1447 ; http://php.net/session.upload-progress.name 1448 ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" 1449 1450 ; How frequently the upload progress should be updated. 1451 ; Given either in percentages (per-file), or in bytes 1452 ; Default Value: "1%" 1453 ; Development Value: "1%" 1454 ; Production Value: "1%" 1455 ; http://php.net/session.upload-progress.freq 1456 ;session.upload_progress.freq = "1%" 1457 1458 ; The minimum delay between updates, in seconds 1459 ; Default Value: 1 1460 ; Development Value: 1 1461 ; Production Value: 1 1462 ; http://php.net/session.upload-progress.min-freq 1463 ;session.upload_progress.min_freq = "1" 1464 1465 ; Only write session data when session data is changed. Enabled by default. 1466 ; http://php.net/session.lazy-write 1467 ;session.lazy_write = On 1468 1469 [Assertion] 1470 ; Switch whether to compile assertions at all (to have no overhead at run-time) 1471 ; -1: Do not compile at all 1472 ; 0: Jump over assertion at run-time 1473 ; 1: Execute assertions 1474 ; Changing from or to a negative value is only possible in php.ini! (For turning assertions on and off at run-time, see assert.active, when zend.assertions = 1) 1475 ; Default Value: 1 1476 ; Development Value: 1 1477 ; Production Value: -1 1478 ; http://php.net/zend.assertions 1479 zend.assertions = -1 1480 1481 ; Assert(expr); active by default. 1482 ; http://php.net/assert.active 1483 ;assert.active = On 1484 1485 ; Throw an AssertationException on failed assertions 1486 ; http://php.net/assert.exception 1487 ;assert.exception = On 1488 1489 ; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) 1490 ; http://php.net/assert.warning 1491 ;assert.warning = On 1492 1493 ; Don't bail out by default. 1494 ; http://php.net/assert.bail 1495 ;assert.bail = Off 1496 1497 ; User-function to be called if an assertion fails. 1498 ; http://php.net/assert.callback 1499 ;assert.callback = 0 1500 1501 ; Eval the expression with current error_reporting(). Set to true if you want 1502 ; error_reporting(0) around the eval(). 1503 ; http://php.net/assert.quiet-eval 1504 ;assert.quiet_eval = 0 1505 1506 [mbstring] 1507 ; language for internal character representation. 1508 ; This affects mb_send_mail() and mbstring.detect_order. 1509 ; http://php.net/mbstring.language 1510 ;mbstring.language = Japanese 1511 1512 ; Use of this INI entry is deprecated, use global internal_encoding instead. 1513 ; internal/script encoding. 1514 ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) 1515 ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 1516 ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 1517 ;mbstring.internal_encoding = 1518 1519 ; Use of this INI entry is deprecated, use global input_encoding instead. 1520 ; http input encoding. 1521 ; mbstring.encoding_traslation = On is needed to use this setting. 1522 ; If empty, default_charset or input_encoding or mbstring.input is used. 1523 ; The precedence is: default_charset < intput_encoding < mbsting.http_input 1524 ; http://php.net/mbstring.http-input 1525 ;mbstring.http_input = 1526 1527 ; Use of this INI entry is deprecated, use global output_encoding instead. 1528 ; http output encoding. 1529 ; mb_output_handler must be registered as output buffer to function. 1530 ; If empty, default_charset or output_encoding or mbstring.http_output is used. 1531 ; The precedence is: default_charset < output_encoding < mbstring.http_output 1532 ; To use an output encoding conversion, mbstring's output handler must be set 1533 ; otherwise output encoding conversion cannot be performed. 1534 ; http://php.net/mbstring.http-output 1535 ;mbstring.http_output = 1536 1537 ; enable automatic encoding translation according to 1538 ; mbstring.internal_encoding setting. Input chars are 1539 ; converted to internal encoding by setting this to On. 1540 ; Note: Do _not_ use automatic encoding translation for 1541 ; portable libs/applications. 1542 ; http://php.net/mbstring.encoding-translation 1543 ;mbstring.encoding_translation = Off 1544 1545 ; automatic encoding detection order. 1546 ; "auto" detect order is changed according to mbstring.language 1547 ; http://php.net/mbstring.detect-order 1548 ;mbstring.detect_order = auto 1549 1550 ; substitute_character used when character cannot be converted 1551 ; one from another 1552 ; http://php.net/mbstring.substitute-character 1553 ;mbstring.substitute_character = none 1554 1555 ; overload(replace) single byte functions by mbstring functions. 1556 ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1557 ; etc. Possible values are 0,1,2,4 or combination of them. 1558 ; For example, 7 for overload everything. 1559 ; 0: No overload 1560 ; 1: Overload mail() function 1561 ; 2: Overload str*() functions 1562 ; 4: Overload ereg*() functions 1563 ; http://php.net/mbstring.func-overload 1564 ;mbstring.func_overload = 0 1565 1566 ; enable strict encoding detection. 1567 ; Default: Off 1568 ;mbstring.strict_detection = On 1569 1570 ; This directive specifies the regex pattern of content types for which mb_output_handler() 1571 ; is activated. 1572 ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1573 ;mbstring.http_output_conv_mimetype= 1574 1575 [gd] 1576 ; Tell the jpeg decode to ignore warnings and try to create 1577 ; a gd image. The warning will then be displayed as notices 1578 ; disabled by default 1579 ; http://php.net/gd.jpeg-ignore-warning 1580 ;gd.jpeg_ignore_warning = 1 1581 1582 [exif] 1583 ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1584 ; With mbstring support this will automatically be converted into the encoding 1585 ; given by corresponding encode setting. When empty mbstring.internal_encoding 1586 ; is used. For the decode settings you can distinguish between motorola and 1587 ; intel byte order. A decode setting cannot be empty. 1588 ; http://php.net/exif.encode-unicode 1589 ;exif.encode_unicode = ISO-8859-15 1590 1591 ; http://php.net/exif.decode-unicode-motorola 1592 ;exif.decode_unicode_motorola = UCS-2BE 1593 1594 ; http://php.net/exif.decode-unicode-intel 1595 ;exif.decode_unicode_intel = UCS-2LE 1596 1597 ; http://php.net/exif.encode-jis 1598 ;exif.encode_jis = 1599 1600 ; http://php.net/exif.decode-jis-motorola 1601 ;exif.decode_jis_motorola = JIS 1602 1603 ; http://php.net/exif.decode-jis-intel 1604 ;exif.decode_jis_intel = JIS 1605 1606 [Tidy] 1607 ; The path to a default tidy configuration file to use when using tidy 1608 ; http://php.net/tidy.default-config 1609 ;tidy.default_config = /usr/local/lib/php/default.tcfg 1610 1611 ; Should tidy clean and repair output automatically? 1612 ; WARNING: Do not use this option if you are generating non-html content 1613 ; such as dynamic images 1614 ; http://php.net/tidy.clean-output 1615 tidy.clean_output = Off 1616 1617 [soap] 1618 ; Enables or disables WSDL caching feature. 1619 ; http://php.net/soap.wsdl-cache-enabled 1620 soap.wsdl_cache_enabled=1 1621 1622 ; Sets the directory name where SOAP extension will put cache files. 1623 ; http://php.net/soap.wsdl-cache-dir 1624 1625 ; RPM note : cache directory must be owned by process owner 1626 ; for mod_php, see /etc/httpd/conf.d/php.conf 1627 ; for php-fpm, see /etc/php-fpm.d/*conf 1628 soap.wsdl_cache_dir="/tmp" 1629 1630 ; (time to live) Sets the number of second while cached file will be used 1631 ; instead of original one. 1632 ; http://php.net/soap.wsdl-cache-ttl 1633 soap.wsdl_cache_ttl=86400 1634 1635 ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1636 soap.wsdl_cache_limit = 5 1637 1638 [sysvshm] 1639 ; A default size of the shared memory segment 1640 ;sysvshm.init_mem = 10000 1641 1642 [ldap] 1643 ; Sets the maximum number of open links or -1 for unlimited. 1644 ldap.max_links = -1 1645 1646 [dba] 1647 ;dba.default_handler= 1648 1649 [curl] 1650 ; A default value for the CURLOPT_CAINFO option. This is required to be an 1651 ; absolute path. 1652 ;curl.cainfo = 1653 1654 [openssl] 1655 ; The location of a Certificate Authority (CA) file on the local filesystem 1656 ; to use when verifying the identity of SSL/TLS peers. Most users should 1657 ; not specify a value for this directive as PHP will attempt to use the 1658 ; OS-managed cert stores in its absence. If specified, this value may still 1659 ; be overridden on a per-stream basis via the "cafile" SSL stream context 1660 ; option. 1661 ;openssl.cafile= 1662 1663 ; If openssl.cafile is not specified or if the CA file is not found, the 1664 ; directory pointed to by openssl.capath is searched for a suitable 1665 ; certificate. This value must be a correctly hashed certificate directory. 1666 ; Most users should not specify a value for this directive as PHP will 1667 ; attempt to use the OS-managed cert stores in its absence. If specified, 1668 ; this value may still be overridden on a per-stream basis via the "capath" 1669 ; SSL stream context option. 1670 ;openssl.capath= 1671 1672 ; Local Variables: 1673 ; tab-width: 4 1674 ; End: [root@zabbix5 php]# vi /etc/opt/rh/rh-nginx116/nginx/nginx.conf [root@zabbix5 php]# cat -n /etc/opt/rh/rh-nginx116/nginx/nginx.conf 1 # For more information on configuration, see: 2 # * Official English Documentation: http://nginx.org/en/docs/ 3 # * Official Russian Documentation: http://nginx.org/ru/docs/ 4 5 user nginx; 6 worker_processes auto; 7 error_log /var/opt/rh/rh-nginx116/log/nginx/error.log; 8 pid /var/opt/rh/rh-nginx116/run/nginx/nginx.pid; 9 10 # Load dynamic modules. See /opt/rh/rh-nginx116/root/usr/share/doc/README.dynamic. 11 include /opt/rh/rh-nginx116/root/usr/share/nginx/modules/*.conf; 12 13 events { 14 worker_connections 1024; 15 } 16 17 http { 18 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 19 '$status $body_bytes_sent "$http_referer" ' 20 '"$http_user_agent" "$http_x_forwarded_for"'; 21 22 access_log /var/opt/rh/rh-nginx116/log/nginx/access.log main; 23 24 sendfile on; 25 tcp_nopush on; 26 tcp_nodelay on; 27 keepalive_timeout 65; 28 types_hash_max_size 2048; 29 30 include /etc/opt/rh/rh-nginx116/nginx/mime.types; 31 default_type application/octet-stream; 32 33 # Load modular configuration files from the /etc/nginx/conf.d directory. 34 # See http://nginx.org/en/docs/ngx_core_module.html#include 35 # for more information. 36 include /etc/opt/rh/rh-nginx116/nginx/conf.d/*.conf; 37 38 server { 39 listen 80 default_server; 40 listen [::]:80 default_server; 41 server_name _; 42 root /opt/rh/rh-nginx116/root/usr/share/nginx/html; 43 44 # Load configuration files for the default server block. 45 include /etc/opt/rh/rh-nginx116/nginx/default.d/*.conf; 46 47 location / { 48 } 49 50 error_page 404 /404.html; 51 location = /40x.html { 52 } 53 54 error_page 500 502 503 504 /50x.html; 55 location = /50x.html { 56 } 57 58 # proxy the PHP scripts to Apache listening on 127.0.0.1:80 59 # 60 #location ~ \.php$ { 61 # proxy_pass http://127.0.0.1; 62 #} 63 64 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 65 # 66 location ~ \.php$ { 67 root html; 68 fastcgi_pass 127.0.0.1:9000; 69 fastcgi_index index.php; 70 # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; 71 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 72 include fastcgi_params; 73 } 74 75 # deny access to .htaccess files, if Apache's document root 76 # concurs with nginx's one 77 # 78 #location ~ /\.ht { 79 # deny all; 80 #} 81 } 82 83 84 # another virtual host using mix of IP-, name-, and port-based configuration 85 # 86 #server { 87 # listen 8000; 88 # listen somename:8080; 89 # server_name somename alias another.alias; 90 91 # location / { 92 # root html; 93 # index index.html index.htm; 94 # } 95 #} 96 97 98 # HTTPS server 99 # 100 #server { 101 # listen 443; 102 # server_name localhost; 103 104 # ssl on; 105 # ssl_certificate cert.pem; 106 # ssl_certificate_key cert.key; 107 108 # ssl_session_timeout 5m; 109 110 # ssl_protocols SSLv2 SSLv3 TLSv1; 111 # ssl_ciphers HIGH:!aNULL:!MD5; 112 # ssl_prefer_server_ciphers on; 113 114 # location / { 115 # root html; 116 # index index.html index.htm; 117 # } 118 #} 119 120 } [root@zabbix5 php]# yum install zabbix-apache-conf-scl 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * centos-sclo-sclo: ftp-srv2.kddilabs.jp * epel: nrt.edge.kernel.org * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ zabbix-apache-conf-scl.noarch 0:5.0.1-1.el7 を インストール --> 依存性解決を終了しました。 依存性を解決しました ===================================================================================================== Package アーキテクチャー バージョン リポジトリー 容量 ===================================================================================================== インストール中: zabbix-apache-conf-scl noarch 5.0.1-1.el7 zabbix-frontend 13 k トランザクションの要約 ===================================================================================================== インストール 1 パッケージ 総ダウンロード容量: 13 k インストール容量: 720 Is this ok [y/d/N]: y Downloading packages: zabbix-apache-conf-scl-5.0.1-1.el7.noarch.rpm | 13 kB 00:00:15 Running transaction check Running transaction test Transaction test succeeded Running transaction インストール中 : zabbix-apache-conf-scl-5.0.1-1.el7.noarch 1/1 検証中 : zabbix-apache-conf-scl-5.0.1-1.el7.noarch 1/1 インストール: zabbix-apache-conf-scl.noarch 0:5.0.1-1.el7 完了しました! [root@zabbix5 php]# vi /etc/httpd/conf.d/zabbix.conf [root@zabbix5 php]# systemctl restart httpd
色々あがいてみましたが、あかんかったので、apache(httpd)をインストールしてnginxから切り替えてみました。
で、ブラウザから「http://サーバのIP/zabbix」へアクセスすると、
出ました!
PostgreSQL関連の接続設定をいれます。
成功!!
ログインします。
ダッシュボードが表示されました。
言語とテーマを変えてみます。
後始末。
各プログラムの自動起動設定。
[root@zabbix5 php]# systemctl is-enabled postgresql-12 httpd zabbix-server zabbix-agent rh-php72-php-fpm disabled disabled disabled disabled disabled [root@zabbix5 php]# systemctl enable postgresql-12 httpd zabbix-server zabbix-agent rh-php72-php-fpm Created symlink from /etc/systemd/system/multi-user.target.wants/postgresql-12.service to /usr/lib/systemd/system/postgresql-12.service. Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service. Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.service. Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-agent.service to /usr/lib/systemd/system/zabbix-agent.service. Created symlink from /etc/systemd/system/multi-user.target.wants/rh-php72-php-fpm.service to /usr/lib/systemd/system/rh-php72-php-fpm.service. [root@zabbix5 php]# systemctl is-enabled postgresql-12 httpd zabbix-server zabbix-agent rh-php72-php-fpm enabled enabled enabled enabled enabled
そして、SELinuxのPermissive固定。
[root@zabbix5 php]# vi /etc/selinux/config [root@zabbix5 php]# cat -n /etc/selinux/config 1 2 # This file controls the state of SELinux on the system. 3 # SELINUX= can take one of these three values: 4 # enforcing - SELinux security policy is enforced. 5 # permissive - SELinux prints warnings instead of enforcing. 6 # disabled - No SELinux policy is loaded. 7 #SELINUX=enforcing 8 SELINUX=permissive 9 # SELINUXTYPE= can take one of three values: 10 # targeted - Targeted processes are protected, 11 # minimum - Modification of targeted policy. Only selected processes are protected. 12 # mls - Multi Level Security protection. 13 SELINUXTYPE=targeted
固定IPアドレスの設定。
[root@zabbix5 php]# cat -n /etc/sysconfig/network-scripts/ifcfg-enp0s3 1 TYPE="Ethernet" 2 PROXY_METHOD="none" 3 BROWSER_ONLY="no" 4 BOOTPROTO="dhcp" 5 DEFROUTE="yes" 6 IPV4_FAILURE_FATAL="no" 7 IPV6INIT="yes" 8 IPV6_AUTOCONF="yes" 9 IPV6_DEFROUTE="yes" 10 IPV6_FAILURE_FATAL="no" 11 IPV6_ADDR_GEN_MODE="stable-privacy" 12 NAME="enp0s3" 13 UUID="1e9f2813-ecd0-452b-bc7f-f632c5184781" 14 DEVICE="enp0s3" 15 ONBOOT="yes" [root@zabbix5 php]# ip addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:67:50:c5 brd ff:ff:ff:ff:ff:ff inet 192.168.1.105/24 brd 192.168.1.255 scope global noprefixroute dynamic enp0s3 valid_lft 7005sec preferred_lft 7005sec inet6 240f:32:57b8:1:5a6b:384a:8de6:32c1/64 scope global noprefixroute dynamic valid_lft 300sec preferred_lft 300sec inet6 fe80::ae0a:767c:639c:6f05/64 scope link noprefixroute valid_lft forever preferred_lft forever [root@zabbix5 php]# ip route show default via 192.168.1.1 dev enp0s3 proto dhcp metric 100 192.168.1.0/24 dev enp0s3 proto kernel scope link src 192.168.1.105 metric 100 [root@zabbix5 php]# nmcli device DEVICE TYPE STATE CONNECTION enp0s3 ethernet 接続済み enp0s3 lo loopback 管理無し -- [root@zabbix5 php]# nmcli device show enp0s3 GENERAL.DEVICE: enp0s3 GENERAL.TYPE: ethernet GENERAL.HWADDR: 08:00:27:67:50:C5 GENERAL.MTU: 1500 GENERAL.STATE: 100 (接続済み) GENERAL.CONNECTION: enp0s3 GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1 WIRED-PROPERTIES.CARRIER: オン IP4.ADDRESS[1]: 192.168.1.105/24 IP4.GATEWAY: 192.168.1.1 IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.168.1.1, mt = 100 IP4.ROUTE[2]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 100 IP4.DNS[1]: 192.168.1.1 IP6.ADDRESS[1]: 240f:32:57b8:1:5a6b:384a:8de6:32c1/64 IP6.ADDRESS[2]: fe80::ae0a:767c:639c:6f05/64 IP6.GATEWAY: fe80::6ee4:daff:fedd:7400 IP6.ROUTE[1]: dst = 240f:32:57b8:1::/64, nh = ::, mt = 100 IP6.ROUTE[2]: dst = ::/0, nh = fe80::6ee4:daff:fedd:7400, mt = 100 IP6.ROUTE[3]: dst = ff00::/8, nh = ::, mt = 256, table=255 IP6.ROUTE[4]: dst = fe80::/64, nh = ::, mt = 100 [root@zabbix5 php]# nmcli connection show enp0s3 connection.id: enp0s3 connection.uuid: 1e9f2813-ecd0-452b-bc7f-f632c5184781 connection.stable-id: -- connection.type: 802-3-ethernet connection.interface-name: enp0s3 connection.autoconnect: はい connection.autoconnect-priority: 0 connection.autoconnect-retries: -1 (default) connection.multi-connect: 0 (default) connection.auth-retries: -1 connection.timestamp: 1592923686 connection.read-only: いいえ connection.permissions: -- connection.zone: -- connection.master: -- connection.slave-type: -- connection.autoconnect-slaves: -1 (default) connection.secondaries: -- connection.gateway-ping-timeout: 0 connection.metered: 不明 connection.lldp: default connection.mdns: -1 (default) connection.llmnr: -1 (default) 802-3-ethernet.port: -- 802-3-ethernet.speed: 0 802-3-ethernet.duplex: -- 802-3-ethernet.auto-negotiate: いいえ 802-3-ethernet.mac-address: -- 802-3-ethernet.cloned-mac-address: -- 802-3-ethernet.generate-mac-address-mask:-- 802-3-ethernet.mac-address-blacklist: -- 802-3-ethernet.mtu: 自動 802-3-ethernet.s390-subchannels: -- 802-3-ethernet.s390-nettype: -- 802-3-ethernet.s390-options: -- 802-3-ethernet.wake-on-lan: default 802-3-ethernet.wake-on-lan-password: -- ipv4.method: auto ipv4.dns: -- ipv4.dns-search: -- ipv4.dns-options: "" ipv4.dns-priority: 0 ipv4.addresses: -- ipv4.gateway: -- ipv4.routes: -- ipv4.route-metric: -1 ipv4.route-table: 0 (unspec) ipv4.routing-rules: -- ipv4.ignore-auto-routes: いいえ ipv4.ignore-auto-dns: いいえ ipv4.dhcp-client-id: -- ipv4.dhcp-timeout: 0 (default) ipv4.dhcp-send-hostname: はい ipv4.dhcp-hostname: -- ipv4.dhcp-fqdn: -- ipv4.never-default: いいえ ipv4.may-fail: はい ipv4.dad-timeout: -1 (default) ipv6.method: auto ipv6.dns: -- ipv6.dns-search: -- ipv6.dns-options: "" ipv6.dns-priority: 0 ipv6.addresses: -- ipv6.gateway: -- ipv6.routes: -- ipv6.route-metric: -1 ipv6.route-table: 0 (unspec) ipv6.routing-rules: -- ipv6.ignore-auto-routes: いいえ ipv6.ignore-auto-dns: いいえ ipv6.never-default: いいえ ipv6.may-fail: はい ipv6.ip6-privacy: -1 (unknown) ipv6.addr-gen-mode: stable-privacy ipv6.dhcp-duid: -- ipv6.dhcp-send-hostname: はい ipv6.dhcp-hostname: -- ipv6.token: -- proxy.method: none proxy.browser-only: いいえ proxy.pac-url: -- proxy.pac-script: -- GENERAL.NAME: enp0s3 GENERAL.UUID: 1e9f2813-ecd0-452b-bc7f-f632c5184781 GENERAL.DEVICES: enp0s3 GENERAL.STATE: アクティベート済み GENERAL.DEFAULT: はい GENERAL.DEFAULT6: はい GENERAL.SPEC-OBJECT: -- GENERAL.VPN: いいえ GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1 GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/1 GENERAL.ZONE: -- GENERAL.MASTER-PATH: -- IP4.ADDRESS[1]: 192.168.1.105/24 IP4.GATEWAY: 192.168.1.1 IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.168.1.1, mt = 100 IP4.ROUTE[2]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 100 IP4.DNS[1]: 192.168.1.1 DHCP4.OPTION[1]: broadcast_address = 192.168.1.255 DHCP4.OPTION[2]: dhcp_lease_time = 7200 DHCP4.OPTION[3]: dhcp_message_type = 5 DHCP4.OPTION[4]: dhcp_rebinding_time = 5882 DHCP4.OPTION[5]: dhcp_renewal_time = 3182 DHCP4.OPTION[6]: dhcp_server_identifier = 192.168.1.1 DHCP4.OPTION[7]: domain_name_servers = 192.168.1.1 DHCP4.OPTION[8]: expiry = 1592930688 DHCP4.OPTION[9]: host_name = zabbix5 DHCP4.OPTION[10]: ip_address = 192.168.1.105 DHCP4.OPTION[11]: network_number = 192.168.1.0 DHCP4.OPTION[12]: next_server = 192.168.1.1 DHCP4.OPTION[13]: requested_broadcast_address = 1 DHCP4.OPTION[14]: requested_classless_static_routes = 1 DHCP4.OPTION[15]: requested_domain_name = 1 DHCP4.OPTION[16]: requested_domain_name_servers = 1 DHCP4.OPTION[17]: requested_domain_search = 1 DHCP4.OPTION[18]: requested_host_name = 1 DHCP4.OPTION[19]: requested_interface_mtu = 1 DHCP4.OPTION[20]: requested_ms_classless_static_routes = 1 DHCP4.OPTION[21]: requested_nis_domain = 1 DHCP4.OPTION[22]: requested_nis_servers = 1 DHCP4.OPTION[23]: requested_ntp_servers = 1 DHCP4.OPTION[24]: requested_rfc3442_classless_static_routes = 1 DHCP4.OPTION[25]: requested_root_path = 1 DHCP4.OPTION[26]: requested_routers = 1 DHCP4.OPTION[27]: requested_static_routes = 1 DHCP4.OPTION[28]: requested_subnet_mask = 1 DHCP4.OPTION[29]: requested_time_offset = 1 DHCP4.OPTION[30]: requested_wpad = 1 DHCP4.OPTION[31]: routers = 192.168.1.1 DHCP4.OPTION[32]: subnet_mask = 255.255.255.0 IP6.ADDRESS[1]: 240f:32:57b8:1:5a6b:384a:8de6:32c1/64 IP6.ADDRESS[2]: fe80::ae0a:767c:639c:6f05/64 IP6.GATEWAY: fe80::6ee4:daff:fedd:7400 IP6.ROUTE[1]: dst = 240f:32:57b8:1::/64, nh = ::, mt = 100 IP6.ROUTE[2]: dst = ::/0, nh = fe80::6ee4:daff:fedd:7400, mt = 100 IP6.ROUTE[3]: dst = ff00::/8, nh = ::, mt = 256, table=255 IP6.ROUTE[4]: dst = fe80::/64, nh = ::, mt = 100 [root@zabbix5 php]# nmcli connection modify enp0s3 ipv4.method manual ipv4.addresses 192.168.1.105/24 ipv4.gateway 192.168.1.1 ipv4.dns 192.168.1.1 [root@zabbix5 php]# cat -n /etc/sysconfig/network-scripts/ifcfg-enp0s3 1 TYPE=Ethernet 2 PROXY_METHOD=none 3 BROWSER_ONLY=no 4 BOOTPROTO=none 5 DEFROUTE=yes 6 IPV4_FAILURE_FATAL=no 7 IPV6INIT=yes 8 IPV6_AUTOCONF=yes 9 IPV6_DEFROUTE=yes 10 IPV6_FAILURE_FATAL=no 11 IPV6_ADDR_GEN_MODE=stable-privacy 12 NAME=enp0s3 13 UUID=1e9f2813-ecd0-452b-bc7f-f632c5184781 14 DEVICE=enp0s3 15 ONBOOT=yes 16 IPADDR=192.168.1.105 17 PREFIX=24 18 GATEWAY=192.168.1.1 19 DNS1=192.168.1.1
最後の再起動して、きちんと立ち上がるかの確認。
何とか出来ました。。。