PostgreSQL レストア(インポート)[ psql ]

LinuxのPostgreSQLにあるDBをバックアップしたデータを、ローカル環境のWindowsで動いているPostgreSQLにレストア(インポート)する機会がありましたので、その時の備忘録です
Linuxサーバーでは ...
nslookupでネームサーバー(DNSサーバー)を指定する方法

DNSの切替などで、契約しているISPのDNSサーバーの反映が遅くDNSが新しい設定に切り替わっているのが、なかなか確認できません
いつもは、Linuxサーバーで「dig google.com @8.8.8.8」と、比較的に更 ...
tinydnsでSPFレコードを設定する

tinydnsは、小さく、信頼性の高いDNS権威サーバ/キャッシュサーバですは、開発がとまっているようで使っている人は少ないと思いますが、古いサーバーでこのDNSサーバーを利用している環境があって、そのサーバーに送信ドメイン認証のひと ...
「mod_rewrite」で、「.htaccess」と「httpd.conf」の違い

「mod_rewrite」を利用して、 のようなURLで、test.doへのアクセスでパラメータにuid=xxxxが含む場合は、uidのパラメータを削除したURLを渡すようにしたいので、下記のような「.htaccess」を作成してテス ...
Windows11で高速スタートアップを無効にする方法

一時期は落ち着いていましたが、ノートパソコンの指紋認証機器が認識されなくなりました。
デバイスマネージャーで指紋認証のUSBデバイスを削除しても解消されないので、色々と調べると高速スタートアップを ...
hostsファイルの場所 Windows11

Windows11 の「hosts」ファイルの場所は、Windows 10 と同じで「C:\Windows\System32\drivers\etc\hosts」になります。
hostsファイルの編集して保存するには、管理 ...
Nextcloud の警告「メモリキャッシュが設定されていません。」

Nextcloud で「概要」→「セキュリティ&セットアップ警告」を確認すると、警告メッセージが表示されてました。
メモリキャッシュが有効になっていない場合や ...
Nextcloud の警告「データベースにいくつかのインデックスがありません。」

Nextcloud で「概要」→「セキュリティ&セットアップ警告」を確認すると、下記のような警告メッセージが表示されてました。
データベースにいくつかのインデックスがありません。 大きなテーブルにインデックスを追加すると、自動的 ...mod_rewrite クエリー文字列でパーセントがあるエンコードされるのを避ける

「example.com/test.php?id=ID%2id1234」のようなクエリー付きのパラメータでmod_rewrite でリダイレクトをするときに「%」を含む場合に、「%2」が「%253」のように変更される場合があります
Nextcloudでアップデートに失敗して再度アップデートできなくなった場合の対処方法

NextcloudのWEB画面にログインしたらバージョンをみると古くなっていたので、「概要」ページ内で最新版にアップデートすると「Verify integrity」の所で失敗になりました。
再度、アップデートすると「Ste ...
DNFの自動アップデートを設定する(dnf-automatic)

CentOS 7 では、yum-cron で、パッケージのアップデートを自動実行できていましたが、CentOS 8 では「dnf-automatic」で、パッケージのダウ ...
Windows11 クイックアクセスに追加と削除

Windows11 の機能で「クイックアクセス」があります。エクスプローラーによく使うフォルダをピン留めしてアクセスしやすくする機能です。
このクイックアクセスにフォルダを追加したり削除したりする方 ...
Windows11 の右クリックメニューを以前に戻すソフト【W11ClassicMenu】

以前の記事「Windows11の右クリックメニューを以前のように表示する」に書きましたが、Window ...
I-O DATA の WN-AX1167GRを中継機器(リピーターモード)で利用する

自宅の環境を、 IPoE(IPv4 over IPv6)に移行してから家のルータは、IPoEに対応したルーターに買い替えました。
以前に使っていた「WN-AX1167 ...
Cockpit で、SSL証明書導入してSSL化

Web UI 上で Linux サーバの管理ができる「Cockpit」ですが、通常だと or のような、URLにアクセスすると利用できます。