hdparm で読取り速度のベンチ

ハードディスクの読取り速度のベンチマークですが「hdparm 」コマンドを利用すると簡単にディスクの読取り速度を計測することができます。
書式:hdparm -tT/dev/
【オプションの意味】
-t ...PHP-FPMで処理が遅いスローログを出力する

CentOS 7からRockyLinux8に移行したサーバーでPHPの一部の処理で遅くなっているので、原因究明のためPHP-FPMの処理の遅い処理のをログに出力するようにしました
設定は、「/etc/php-fpm.d/w ...
phpで「ERROR: Unable to set php_value ‘soap.wsdl_cache_dir’」のエラー

php・php-fpmの初期設定後に、エラーログを見ると下記のエラーがでていました
# view/var/log/php-fpm/error.logERROR: Unable to set php_value 'soap.wsd ...MariaDB5.5系からMariaDB10系に移行したDBでエクスポートするとエラー

MariaDB5.5系からMariaDB10系に移行したDBでエクスポートすると下記のエラー
$ mysqldump -u root -p --all-databases >/var/tmp/dump.dbmysqldum ...MariaDB(MySQL)でレプリケーションエラー

CentOS 7がサポート終了となるので、RHEL8系のRockyLinux 8に移行する作業で、旧DBをエクスポートして新サーバーインポートすると、データベースの停止時間が長いので、一旦レプリケーションを作成して、SlaveからMa ...
RHEL系(CentOS) にFTPクライアントをインストールする

お客様からプログラムからFTPクライアントを使用したいが、インストールされていないと報告がありました。「vsftpd」をインストールして起動しているので、FTPクライアントも一緒にインストールされていると思いましが、/usr/bin ...
CentOS 9のCockpitで、Let’s EncryptのSSL証明書を使う

この記事は、以前の「CentOS Stream release 9」で利用していました。
最新版のCockpitでは、マージした証明書とプライベートキーはサポート外となっているので、下記の記事の方法で対応して下さい
MariaDB5.5 系から MariaDB10系にデーターベースをインポートすると一部のユーザーログインできない

MariaDB5.5 系のデータベースをエクスポートしてから MariaDB10系にデーターベースをインポートを実施しました。エクスポート・インポートともエラーなく作業できましたが、rootを除く一部のユーザーでログインするとパスワー ...
Apache 2.4系で「NameVirtualHost」のエラー

RHEL8系のRockyLinux8 で、Apacheの有効しているモジュールを確認しようとしたら、「NameVirtualHost has no effect and will be removed in the next rele ...
grepとsedで特定のディレクトリ以下のファイルを一括置換

特定のディレクトリ内のファイルで特定の文字を一括置換するには「grep」と「sed」をコマンドを利用すると一括で置換できます
書式:grep -rl “置換対象 ...
Zabbixのバージョンを確認する方法

Zabbix Server・Zabbix Agent のバージョンを確認する方法を紹介します。CUIからコマンドで確認する方法とWEB管理画面での確認方法を紹介します
zabbix_serve ...Zabbix でメンテナンス期間を設定する

Zabbix 6.4で、Apache等バージョンアップ・バッチ処理等で、サービス停止を伴うメンテナンスを行う場合があります。その際にZabbixよりアラート通知が飛んできたりするのでメンテンス中はアラートを停止するメンテンス時間を指定 ...
新規テーブルを作成時に「Percona-XtraDB, Supports transactions, row-level locking, and foreign keys」でテーブルが作成できない

MySQLのログに下記のエラーが出て、リペアテーブルを実行しました。
231226 3:10:05 mysqld: Table './testdb/test1' is marked as crashed and should ...php-fpmのログファイルのログレベルについて

古いWordpressのブログがあって使用しているプラグインが古いので「/var/log/php-fpm/www-error.log」に下記のWarningのエラーが大量に出力されていました。このWarningを出力しないようにログレ ...
dnfコマンドの自動アップデートを無効にする

運用しているクラウドのサーバーで、下記のエラーがmessagesに出力されました
Dec 11 12:38:00 www01 systemd: Failed to start dnf makecache.手動で「dnf m ...