/var/log/messages で変更後のホスト名が反映されない場合の対処方法

ホスト名を変更後に「/var/log/messages」に出力されるホスト名は、変更前のホスト名がなっている場合の対処方法を紹介します
現在のホスト名が「www01」の場合で、ホスト名を「web01」に変更した場合に「/v ...
シェルスクリプトで小数点以下を四捨五入する方法

シェルスクリプトで小数点以下を四捨五入する方法ですが、awk コマンドを利用すればできます。
awkコマンドでは、「printf(“%d\n”,x)」とすれば整数として出力できるので、小数点以下を切 ...
WordPress用プラグイン File Manager の深刻な脆弱性について

2020年9月1日頃より、WordPress 用プラグイン File Manager の脆弱性を悪用した攻撃に関する情報が公開されています。
File Manager は、WordPress の管理画面上から、サーバ上のファイ ...
監視ツール NetDataインストール

リアルタイムでパフォーマンスがモニタリングできる「NetData」をインストールしてみます。インストールしてダッシュボードにアクセスすると下記のようにサーバーの状況を視覚化できます
インストール方法は至って簡単で下記のコマ ...
監視ツール prometheusをインストールする

サーバのリソース状況やソフトウェアの統計情報を収集し監視するツールは色々とありますが、今回は「prometheus」をインストールしてみます。「prometheus」は、SoundClo ...
CPU-Zでメモリ情報が表示されない

CPU-Zは、CPUのプロセッサー名やモデルナンバーキャッシュレベルや様々なハードウェアの情報が取得できます。メモリに関しても規格や空きスロット情報が表示されます。
自作のデスク ...
SSL証明書の有効期限をメールで通知するスクリプト

無料のSSL証明書の「Let’s Encrypt」を利用しています。有償のSSL証明書と比べると有効期限が短いので更新を忘れそうなので、SSL証明書の有効期限をチェックしてその期限をメールするスクリプトを作成しました
ce ...
OneDriveでデスクトップのバックアップ停止後、アイコンが消える場合の対処方法

OneDriveを利用しておりデスクトップのバックアップが不要になりバックアップするとデスクトップにあるアイコンやファイルがクラウドに保存されます。
自動でバックアップするので便利ですが容量が少な ...
MySQLTunerを利用して、MariaDB パフォーマンスのチューニング

DBのチューニングのツールで「MySQLTuner」があります。DBのパラメータの問題点を診断してくれるツールでこれをインストールしてMariaDBのパラメータの値を見直して ...
historyコマンドの履歴を削除する方法

コマンドの履歴を表示する「history」コマンドがあります。コマンドで引数にパスワードを付きのコマンドを利用したり、間違った内容をペーストしたりして「history」の履歴したい場合あるかと思います。個 ...
シンボリックリンクの作成と削除【CentOS】

Linuxでは、シンボリックリンクを作成するには「ln」コマンドを使用します。「-s」のオプションでハードリンクの代わりにシンボリックリンクを作成するように指定します
書式: ln -s
CentOS 7に「pdftk」をインストール

PDFを編集できるコマンドラインツールpdftkをCentOS 7.xにインストールしました。
pdftkは、PDFページの結合、削除、回転、透かしの追加、パスワードの解除、各ページを単一ファイルに分解する等PDFファイルを編 ...
CentOS 7, CentOS 8 に「pstree」をインストールする

CentOS 7, CentOS 8で最小インストールすると「pstree」がインストールされていません。「pstree」をインストールするには「psmisc」のパッケージをインストールすると下記の ...
ChromeでCentOS 5系のSSLサイトがアクセスできなくなった

ChromeでCentOS 5.5で稼働しているSSLサイトにアクセスすると、「プライバシエラー」と表示されサイトが表示されません
「NET::ERR_SSL_O ...
PostgreSQLのバックアップとリストア(pg_dump・pg_restore)

PostgreSQLのデータベースをバックアップするには「pg_dump」を使用して、リストアする時は「pg_restore」を利用してバックアップ及びリストアします
pg_du ...