複数のファイルで実行権限があるかないかをチェックする方法

Cronでシェルスクリプトを実行する設定をしていましたは、指定した時間になっても実行されていませんでした。原因調査するとCronで実行するシェルスクリプトに実行権限が付与するのを忘れていたようです
シェルスクリプトは特定の ...
MailBoxに溜まったメールをmailコマンドで削除する

Cron等の通知メールやシステム関連のメールがユーザーやroot宛のMailboxに大量に溜まっているサーバーがありました。
普段は下記のようなコマンドをcronで設定してメールを削除しています
# cat/dev/ ...無償SSL署名書(Let’s Encrypt)で自動更新で失敗

無償SSL署名書のLet’s Encryptで自動更新で失敗していました。ログを確認すると以下のようなエラーとなっていました
$ sudo view/var/log/letsencrypt/letsencrypt.l ...NextCloudアップデート失敗の原因と解決方法(ダウンロードで止まる)

NextCloudのバージョンアップ通知が来たので、NextCloudのサーバー側をアップデートすると通常なら数分で終わるはずがダウンロードの手順です ...
rsyncコマンドで特定のディレクトリを除外してコピーする

scpコマンドで特定のディレクトリを除外してコピーしたい場合、scpコマンドでは直接そのような機能がないようです。
scpコマンドの代わりにrsyncコマンドを使用して特定のディレクトリを除外してディレクトリをコピーします。r ...
cerbot renewを個別のドメインのみ発行する方法

通常、「certbot renew」を実行すると、SSL証明書を発行している全てのドメインの証明書が更新されます。
しかし、自動更新時に特定のドメインのみが失敗し、そのドメイ ...
無料SSL証明書(Let’s Encrypt)の自動更新でエラーログ

Zabbixで「/var/log/messages」のログ監視をしていますが、以下のエラーが出ていました
Jun 13 00:56:37 WEB01 systemd: Failed to start This service a ...dnf コマンドで「 rpmdb: BDB0113~BDB1507 Thread died in Berkeley DB library」のエラー

dnfコマンドでパッケージのアップデートを実施しようとすると下記のエラーが発生しました
# RPMデータベース (rpmdb) が壊れてdnf コマンドでエラーとなる$ sudo dnf updateerror: rpmdb: ...Nextcloudでログのパラメータ変更(occコマンド)

Nextcloudでログ関係のパラメータを変更します。Nextcloudをアップデートして管理画面にログインするとログファイルにWARNINGが上がっていたりして警告が表示されるケースが多くなってきたのでロ ...
vsftpdでFTPS接続をできるように設定する

vsftpdでFTPS接続が必要になりFTPS接続できるように設定を追加しました。
FTP接続では制御用コネクションと ...
phpMyAdminで複数のサーバーを管理する

同一サーバーで、ポートを変更して複数のMariaDB(MySQL)が稼働しているサーバーがあります。以前はポートごとにphpMyAdminを設定して管理していましたが、「config.inc.php」に各ポートの設定をすれば1個のph ...
Linuxで「*.gz」ファイルを解凍する

ファイルのバックアップで容量節約のために圧縮していましたが、いつもは「tar.gz」で圧縮していますが、「gz」形式で圧縮したファイルがあって解凍する時に、コマンドがわからないので調べました
Curlでブログ内でアフィリエイト広告・Googleアドセンス広告が表示されているか確認する

Wordpressで運営しているブログでテーマを更新すると、たまにアフィリエイト広告・Googleアドセンス広告を設定しているウィジェットが外れている事があります。以前は一ヶ月広告が外れている状態に気付かなかった事がありました。
/var/log/messages のログを抑制する

CentOS 8以降、/var/log/messages に大量にログが出力されるようになりました。これはSystemdが導入されてSystemdがサービス ...
hdparm で読取り速度のベンチ

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