「exiv2」jpegのExif情報を削除・編集するコマンド

CentOS Stream 9 をインストールしてからSSH接続した時に「exit」コマンドで抜けるですが、いつもは「exi」+「tab」でタブ補完を利用して「exit」コマンドを入力していましたが、CentOS Stream 9 で ...
シェルスクリプトで「integer expression expected」のエラー

昔作ったシェルスクリプトで久しぶりに実行してみたら、下記のように「integer expression expected」とエラーが上がって処理ができていませんでした
sh test.sh: line 6: ; then ec ...自動起動しているサービスの確認

CentOS 6では自動起動を設定しているサービスの確認は、下記のように「chkconfig」でおこなえました
# CentOS 6$ chkconfig --list ...タスクマネージャーを起動する方法

Windows11では、Windows10のようにタスクバーを右クリックメニューから起動できましたが、Windows11では「タスク バーの設定」しか表示されませんので、右クリックから ...
WordPress のバージョンを確認する

最近、WordPresで脆弱性が見つかったようで脆弱性のあるバージョンか確認する事にしました。
ダッシュボードのサイトヘルスステータスで確認WordPresの管理画面にログインして最初のページがダッシュボードになります、そ ...
ibdata1 肥大化対策

CentOS 7で運用している、少し古めのWebサーバーでMySQLの領域が増えてきたので不要なDBを削除しても容量が減りません。MySQLのdatadirを確認すると、ibdata ...
MariaDBで「ERROR 1040 (08004): Too many connections」のエラー

WEBサーバーが重くてアクセスできにくいと申告があったので、下記のようにWordpressのDBにログインしようと思ったら「ERROR 1040 (08004): ...
Let’s encrypt で別サーバーで稼働している証明書を取得

今回サーバー移設の話がありました。レンサバで運用していて別のクラウドに移設するとの事です。WebコンテンツやDBは移設側にコピーできたのですが、レンタルサ ...
ドメインのレジストラを確認する

ドメインを所有していて、どのレジストラ(ドメイン管理業者)で管理しているかわからなくなったので、whoisの情報で確認できるか試したら確認できました
1.whois.com のHPにアクセスします
2.ドメイン ...
実行中のコマンドをバックグランドで実行する

100G以上ある大きなデータベースをエクスポートしたら数時間かかりそうで、実行中のコマンドをバックグランドに回したくなりました。コマンド実行時に「nohup」を使えばいいですが忘れていました
実行途中でバックグランドで実行 ...
MySQL 外部から接続できるユーザーを追加する

開発環境のDBで外部から全許可したい要望があったので、全許可できるユーザーを追加してそのユーザーは外部接続できるようにします。
まずは、現状で接続できるユーザー等を確認します
mysql> select use ...Apache再起動でエラー「Address already in use: make_sock: could not bind to address 」

少し古めのサーバーで、Apacheを再起動したら下記のように「Address already in use: make_sock: could not bind to address …」とエラーになりました
$ s ...CentOS Stream 9 でロケールを日本語に設定する

CentOS Stream 9 でロケールを日本語に設定する方法です。ロケールは言語と地域の情報です。
デフォルトでは、下記のように LANG=en_US.UTF-8 となり英語の設定となっています。ロケールの確認には「loc ...
ファイルの最終行が空行かどうかを確認する

シェルスクリプトで、「while read」を使ってファイルを読み込んで1行づつ処理する事があると思います。
先日、あるファイルを読み込んでする処理があり、そのファイルが一部訂正する必要がありWindowsで修正しました。その ...
nslookupで、TXTレコード(SPFレコード)の確認

最近、Gmailを使っているアカウントからメールエラーが返ってきました。SPFレコードが怪しいと思いSPFレコードを確認します。普段はLinuxサーバーでdigコマンドで確認します。Linuxでの確認方法は「digコマンドでTXTレコ ...