監視ツール prometheusをインストールする

サーバのリソース状況やソフトウェアの統計情報を収集し監視するツールは色々とありますが、今回は「prometheus」をインストールしてみます。「prometheus」は、SoundClo ...
SSL証明書の有効期限をメールで通知するスクリプト

無料のSSL証明書の「Let’s Encrypt」を利用しています。有償のSSL証明書と比べると有効期限が短いので更新を忘れそうなので、SSL証明書の有効期限をチェックしてその期限をメールするスクリプトを作成しました
ce ...
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」のパッケージをインストールすると下記の ...
PostgreSQLのバックアップとリストア(pg_dump・pg_restore)

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

サーバーの移設の話で、移行先のPostgreSQLのDBに移行前のDBを反映しようと思ったら、下記のエラーでレストアのエラーになります
# 移行前のサーバーよりDBの ...Apache 2.4 で「client denied by server configuration: 」のエラーがログに出力される

CentOS 6で動いていた、Apache 2.2を、CentOS 7のApache 2.4に移行したサイトでエラーログを確認すると以下のようなエラーが頻繁に出力されていました
AH01797: client denied ...PHP+LibreOfficeでEXCELファイルをPDFファイルを作成する

PHPを利用している環境でEXCELファイルをPDFファイルに変換する必要な開発案件がありました。
GUI環境をEXCELからPDFファ ...
OwnCloud がアドオンが原因でアップデートできない

OwnCloudで新しいバージョンが出ているのでバージョンする事しました。バージョンアップ手順は以前の記事で紹介した「ownCloudの手動バージョンアップ」手順です。
「occ upgrade」を叩くと、以下のエラーでバ ...
PostgreSQL データの格納場所を変更する

下記の環境で、PostgreSQLのデータベースの格納場所をデフォルトから違う場所に変更します。
デフォルトの「/var/lib/pgsql/」があるディレクトリの ...
PHPエラー : Warning: Use of undefined constant NONEXISTENT – assumed ‘NONEXISTENT’

php 5系からphp 7.3に移行する作業あって移行後以下のようなエラーが上がりました
Warning: Use of undefined constant NONEXISTENT - assumed 'xxxxxxxx' ( ...CentOS 7 MemcachedをPHPと連携して使用する

PHPでMemcachedを利用して高速化します。Memcachedはメモリを使ったキャッシュシステムでサーバーのメインメモリ上にファイルやデータベースの内容を一時保管して高速に読み出せます。特にデ ...