Let’s Encrypt のログローテションについて

CentOS 9でcertbotを利用して「Let’s Encrypt」の無料証明書を利用しています。以前のOSではログファイルは自動でローテションされていましたが、CentOS 9にしたらログローテーションがされてなくロ ...
MariaDB でデータベースインポート時に「 ERROR 1118 (42000) ~」のエラー

CentOS 6からCentOS 8に移行したサーバーで、旧サーバーのDBをインストールしたデータベースをインポートすると「ERROR 1118 (42000) at line 1278: Row size too large (&g ...
rsyncで所有者・グループを同期しないでコピー

リモート先のWEBコンテンツをバックアップ用途でrysncでコピーします。
リモート先のファイル等の所有者・グループは同期してもいいですが、ファイル・ディレクトリの所有者が「apache」だったりFTPユーザーとか複数の所 ...
Zabbix 6.4 で障害時のメール通知する

Zabbixで障害が発生した時に設定したメールアドレスにメールで通知するように設定します。設定は簡単でWEBの管理画面で設定すれば障害発生時にアラートメールが飛ぶようになります
1.ZabbixのWEBの管理画面にログイン ...
Zabbix 6.4 監視対象のホストを追加する

Zabbix 6.4 で監視対象のホスト追加していきます。
Zabbixサーバー・監視対象ホストとも「Rocky Linux 8.8」で稼働しています。Zabbixサーバーと監視対象のホストのIPアドレスは下記です ...
RHEL 8系で、CloudStack CLI(cs)を利用する

CentOS 7からRockyLinux 8に移行しているサーバーで以前の「cloudmonkey」を利用して、GMOクラウドのスナップショット情報を取得していましたが、RockyLinux 8では「cloudmonkey」でインスト ...
Postfix 「unavailable. unsupported dictionary type: mysql」でエラー

RockyLinux 8系でPostfixadminを利用したメールサーバーを構築していて、Mailコマンドでメールが送れないのでpostfixのステータスを確認すると「warning: mysql:/etc/postfix/mysq ...
CentOS 8系にZabbix 6.4インストール

CentOS 7がサポート終了となるので、RHEL8系に移行するので、RHEL8の互換の「RockyLinux 8」に移行します。また監視ソフトは最新のZabbix 6.4をインストールします。
Z ...
CentOS 8系で、MariaDBを10.3から10.5にアップグレードする

CentOS 7系のサポート終了が近づいているので、RockyLinux 8に入れ替え作業を行っています。以前のサーバーではZabbixを使用していて、せっかくRHEL8系にするので、Zabbixの最新バージョンのZabbix 6.4 ...
SCPコマンドでタイムスタンプ・パーミッションを保持してコピー

いつもサーバー間のデータコピーは、scpコマンドを利用しています。「-r」のオプションをつかって、ディレクトリ以下のファイルやディレクトリを再帰的に取得してコピーしてました。
ファイルのタイムスタンプやパーミッションを保持 ...
CentOS 8系でSSHのパスワードログインができなかった

CentOS6から下記の方法で、サーバー間はパスワードなしでログインしていました
接続先(サーバー)IP:192.168.0.10接続元(クライアント)IP:192.168.0.20
ユーザー:admin
# ...
CentOS 8系に「pdftk」をインストール

CentOS 7が2023/06にサポート終了となるので、RHEL8系に移行する案件で「pdftk」をインストールするよう必要になりました。以前は「Nux Dextop」のレポジトリを利用していてインストールしたのですが、RHEL8系 ...
CentOS8 系で「Ghostscript」をインストール・バージョン確認

CentOS 7からCentOS 8系の移行作業で「Ghostscript」のインストールが必要な案件がありました。
CentOS 7では、ソースからMakeしていましたが、RHEL8系互換 ...
curlコマンドで特定のポートを疎通確認をする

curlコマンドで80番・443番ポート以外のURLにアクセスするには、下記のようなコマンドで確認できます
curl -v :9090番ポートにアクセスしたい場合は、以下のようなコマンドとなります
【成功時】
grepで2桁の数字を含む行を抽出する

grepコマンドで2桁の数字を含む行を抽出する場合は、下記のコマンドで数字を2桁の行を抽出できます
grep -E "{2}"下記のような数字を含むテキストファイルで、2桁 ...