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で修正しました。その ...
シェルスクリプトでインクリメント(i++)処理をする

シェルスクリプトで、for文やwhile文でよく使う「i++」のインクルメント処理があります。
インクルメント処理は、変数に「1」を加算する処理です。
また、このインク ...
NextCloud ユーザーのパスワードをリセット方法

サーバー移設して、Nextcloudを新しいサーバーに引っ越ししました。WEB画面のログイン画面が表示されているのでログインしようと思いましたが、以前の設定したパスワードを入力しても受け付けてくれません。パスワードが間違っているようで ...
CentOS 9 でmailコマンドを使う

CentOS Stream 9 でmailコマンドを使おうと「mailx」をインストールしてみようと思ったけど下記のエラーになりました
$ sudo dnf install mailxLast metadata expirati ...dnf update後にサービスの再起動が必要か確認する

「dnf update」、「yum update」でパッケージのアップデートをおこなっても、起動しているプロセスが古いままで実行されています。「needs-restarting」コマンドでは、 ...
systemctl mask 解除する方法

「systemctl mask 」で、指定のサービスを無効化できます。「systemctl disable 」では指定したサービスの自動起動はしなくなりましたが、「systemctl start ...
MariaDBのインストールと初期設定 | CentOS Stream 9

CentOS Stream 9にMarinaDBをインストールする方法と初期設定を説明します。CentOS Stream 9でMariaDBをインストールすると「MarinaDB 10.5」のバージョンとなります
Maria ...Apacheインストール・設定 【CentOS Stream 9】

WebサーバーとしてNginxではなく、昔から使っているApacheを使用して構築しようと思います。CentOS Stream 9でインストールした場合では、「A ...
CentOS Stream 9 初期設定

CentOS Stream 9 を「Vultr.com」にインストールした際の初期設定です。
一般ユーザーの追加SSHの設定でrootログインは負荷とする予定ですので、一般ユーザーを作成してパスワードを設定します
# ...CentOS Stream9 で、SELinuxを無効に設定する

CentOS Stream 9 のSElinuxは大幅に強化され、使い勝手が良くなったと聞きましたが、今までSELinuxを使ってこなかったので使ってみると、何か設定をいれて動か ...
/var/log/wtmp の内容を確認する

ログインに成功したユーザーのIPアドレスの履歴を調べたくて、履歴が記載されているファイルの「/var/log/wtmp」を確認しようと思いましが、このファイルはバイナリファイルで「cat」,「vi」等のコマンドでは内容を確認できません ...
Nextcloudでサーバー移行したらエラーでアクセスできない

Nextcloudをインストールしているサーバーを違うサーバーに移設して初期設定を済ませてブラウザでアクセスすると「Internal Server Error」でアクセスできなくなりました
Internal Server Err ...