変奏現実

パソコンやMMORPGのことなどを思いつくまま・・・記載されている会社名・製品名・システム名などは、各社の商標、または登録商標です。

この画面は、簡易表示です

[CentOS8]Node.jsとか

パッケージ管理がdnfに変わったので

# dnf info nodejs
利用可能なパッケージ
名前         : nodejs
エポック     : 1
バージョン   : 10.19.0
リリース     : 1.module_el8.1.0+277+2bccb1a9
Arch         : x86_64
サイズ       : 9.0 M
ソース       : nodejs-10.19.0-1.module_el8.1.0+277+2bccb1a9.src.rpm
リポジトリー : AppStream
概要         : JavaScript runtime
URL          : http://nodejs.org/
ライセンス   : MIT and ASL 2.0 and ISC and BSD
説明         : Node.js is a platform built on Chrome's JavaScript runtime
             : for easily building fast, scalable network applications.
             : Node.js uses an event-driven, non-blocking I/O model that
             : makes it lightweight and efficient, perfect for data-intensive
             : real-time applications that run across distributed devices.
# dnf info python36
インストール済みパッケージ
名前         : python36
バージョン   : 3.6.8
リリース     : 2.module_el8.1.0+245+c39af44f
Arch         : x86_64
サイズ       : 13 k
ソース       : python36-3.6.8-2.module_el8.1.0+245+c39af44f.src.rpm
リポジトリー : @System
repo から    : AppStream
概要         : Interpreter of the Python programming language
URL          : https://www.python.org/
ライセンス   : Python
説明         : Python is an accessible, high-level, dynamically typed,
             : interpreted programming language, designed with an emphasis on
             : code readibility. It includes an extensive standard library, and
             : has a vast ecosystem of third-party libraries.
             :
             : The python36 package provides the "python3.6" executable: the
             : reference interpreter for the Python language, version 3.
             : The package also installs the "python3" executable which is user
             : configurable using the "alternatives --config python3" command.
             : For the unversioned "python" command, see manual page
             : "unversioned-python".
             :
             : The python36-devel package contains files for dovelopment of
             : Python application and the python36-debug is helpful for
             : debugging.
             :
             : Packages containing additional libraries for Python 3.6 are
             : generally named with the "python3-" prefix.
# dnf info openssl
インストール済みパッケージ
名前         : openssl
エポック     : 1
バージョン   : 1.1.1c
リリース     : 2.el8
Arch         : x86_64
サイズ       : 1.2 M
ソース       : openssl-1.1.1c-2.el8.src.rpm
リポジトリー : @System
repo から    : anaconda
概要         : Utilities from the general purpose cryptography library with TLS
             : implementation
URL          : http://www.openssl.org/
ライセンス   : OpenSSL
説明         : The OpenSSL toolkit provides support for secure communications
             : between machines. OpenSSL includes a certificate management tool
             : and shared libraries which provide various cryptographic
             : algorithms and protocols.

おっとupdateしてなかった。

# dnf update
================================================================================
 パッケージ           Arch   バージョン                         Repo      サイズ
================================================================================
インストール:
 kernel               x86_64 4.18.0-147.5.1.el8_1               BaseOS    1.5 M
 kernel-core          x86_64 4.18.0-147.5.1.el8_1               BaseOS     25 M
 kernel-modules       x86_64 4.18.0-147.5.1.el8_1               BaseOS     22 M
アップグレード:
 qemu-guest-agent     x86_64 15:2.12.0-88.module_el8.1.0+266+ba744077.2
                                                                AppStream 206 k
 NetworkManager       x86_64 1:1.20.0-5.el8_1                   BaseOS    2.1 M
 NetworkManager-libnm x86_64 1:1.20.0-5.el8_1                   BaseOS    1.7 M
 NetworkManager-team  x86_64 1:1.20.0-5.el8_1                   BaseOS    133 k
 NetworkManager-tui   x86_64 1:1.20.0-5.el8_1                   BaseOS    308 k
 glibc                x86_64 2.28-72.el8_1.1                    BaseOS    3.7 M
 glibc-common         x86_64 2.28-72.el8_1.1                    BaseOS    836 k
 glibc-devel          x86_64 2.28-72.el8_1.1                    BaseOS    1.0 M
 glibc-headers        x86_64 2.28-72.el8_1.1                    BaseOS    469 k
 glibc-langpack-ja    x86_64 2.28-72.el8_1.1                    BaseOS    323 k
 grub2-common         noarch 1:2.02-78.el8_1.1                  BaseOS    882 k
 grub2-pc             x86_64 1:2.02-78.el8_1.1                  BaseOS     36 k
 grub2-pc-modules     noarch 1:2.02-78.el8_1.1                  BaseOS    859 k
 grub2-tools          x86_64 1:2.02-78.el8_1.1                  BaseOS    2.0 M
 grub2-tools-extra    x86_64 1:2.02-78.el8_1.1                  BaseOS    1.1 M
 grub2-tools-minimal  x86_64 1:2.02-78.el8_1.1                  BaseOS    201 k
 kernel-tools         x86_64 4.18.0-147.5.1.el8_1               BaseOS    1.7 M
 kernel-tools-libs    x86_64 4.18.0-147.5.1.el8_1               BaseOS    1.5 M
 libarchive           x86_64 3.3.2-8.el8_1                      BaseOS    359 k
 openldap             x86_64 2.4.46-11.el8_1                    BaseOS    352 k
 openldap-devel       x86_64 2.4.46-11.el8_1                    BaseOS    811 k
 openssh              x86_64 8.0p1-4.el8_1                      BaseOS    496 k
 openssh-clients      x86_64 8.0p1-4.el8_1                      BaseOS    704 k
 openssh-server       x86_64 8.0p1-4.el8_1                      BaseOS    485 k
 policycoreutils      x86_64 2.9-3.el8_1.1                      BaseOS    377 k
 python3-perf         x86_64 4.18.0-147.5.1.el8_1               BaseOS    1.6 M
 sqlite-libs          x86_64 3.26.0-4.el8_1                     BaseOS    579 k
 systemd              x86_64 239-18.el8_1.4                     BaseOS    3.5 M
 systemd-libs         x86_64 239-18.el8_1.4                     BaseOS    562 k
 systemd-pam          x86_64 239-18.el8_1.4                     BaseOS    232 k
 systemd-udev         x86_64 239-18.el8_1.4                     BaseOS    1.3 M
 tuned                noarch 2.12.0-3.el8_1.1                   BaseOS    275 k
 cacti                noarch 1.2.9-1.el8                        epel       20 M
 epel-release         noarch 8-8.el8                            epel       22 k
依存関係のインストール:
 grub2-tools-efi      x86_64 1:2.02-78.el8_1.1                  BaseOS    465 k

トランザクションの概要
================================================================================
インストール     4 パッケージ
アップグレード  34 パッケージ

ダウンロードサイズの合計: 100 M
これでよろしいですか? [y/N]: y
(中略)
アップグレード済み:
  qemu-guest-agent-15:2.12.0-88.module_el8.1.0+266+ba744077.2.x86_64
  NetworkManager-1:1.20.0-5.el8_1.x86_64
  NetworkManager-libnm-1:1.20.0-5.el8_1.x86_64
  NetworkManager-team-1:1.20.0-5.el8_1.x86_64
  NetworkManager-tui-1:1.20.0-5.el8_1.x86_64
  glibc-2.28-72.el8_1.1.x86_64
  glibc-common-2.28-72.el8_1.1.x86_64
  glibc-devel-2.28-72.el8_1.1.x86_64
  glibc-headers-2.28-72.el8_1.1.x86_64
  glibc-langpack-ja-2.28-72.el8_1.1.x86_64
  grub2-common-1:2.02-78.el8_1.1.noarch
  grub2-pc-1:2.02-78.el8_1.1.x86_64
  grub2-pc-modules-1:2.02-78.el8_1.1.noarch
  grub2-tools-1:2.02-78.el8_1.1.x86_64
  grub2-tools-extra-1:2.02-78.el8_1.1.x86_64
  grub2-tools-minimal-1:2.02-78.el8_1.1.x86_64
  kernel-tools-4.18.0-147.5.1.el8_1.x86_64
  kernel-tools-libs-4.18.0-147.5.1.el8_1.x86_64
  libarchive-3.3.2-8.el8_1.x86_64
  openldap-2.4.46-11.el8_1.x86_64
  openldap-devel-2.4.46-11.el8_1.x86_64
  openssh-8.0p1-4.el8_1.x86_64
  openssh-clients-8.0p1-4.el8_1.x86_64
  openssh-server-8.0p1-4.el8_1.x86_64
  policycoreutils-2.9-3.el8_1.1.x86_64
  python3-perf-4.18.0-147.5.1.el8_1.x86_64
  sqlite-libs-3.26.0-4.el8_1.x86_64
  systemd-239-18.el8_1.4.x86_64
  systemd-libs-239-18.el8_1.4.x86_64
  systemd-pam-239-18.el8_1.4.x86_64
  systemd-udev-239-18.el8_1.4.x86_64
  tuned-2.12.0-3.el8_1.1.noarch
  cacti-1.2.9-1.el8.noarch
  epel-release-8-8.el8.noarch

インストール済み:
  kernel-4.18.0-147.5.1.el8_1.x86_64
  kernel-core-4.18.0-147.5.1.el8_1.x86_64
  kernel-modules-4.18.0-147.5.1.el8_1.x86_64
  grub2-tools-efi-1:2.02-78.el8_1.1.x86_64

完了しました!

自動アップデートの方法が変わったらしい。

# dnf install dnf-automatic
メタデータの期限切れの最終確認: 0:07:14 時間前の 2020年05月01日 10時03分10秒 に 実施しました。
依存関係が解決しました。
================================================================================
 パッケージ           Arch          バージョン              リポジトリー  サイズ
================================================================================
インストール:
 dnf-automatic        noarch        4.2.7-7.el8_1           BaseOS        136 k

トランザクションの概要
================================================================================
インストール  1 パッケージ

ダウンロードサイズの合計: 136 k
インストール済みのサイズ: 46 k
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
dnf-automatic-4.2.7-7.el8_1.noarch.rpm          482 kB/s | 136 kB     00:00
--------------------------------------------------------------------------------
合計                                            105 kB/s | 136 kB     00:01
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
  準備             :                                                        1/1
  インストール中   : dnf-automatic-4.2.7-7.el8_1.noarch                     1/1
  scriptletの実行中: dnf-automatic-4.2.7-7.el8_1.noarch                     1/1
  検証             : dnf-automatic-4.2.7-7.el8_1.noarch                     1/1

インストール済み:
  dnf-automatic-4.2.7-7.el8_1.noarch

完了しました!
※ /etc/dnf/dnf-automatic.comfのapply_updates = no ⇒ yes に変える
# systemctl enable dnf-automatic
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
   instance name specified.
# systemctl start dnf-automatic

でも、systemctl status dnf-automaticで調べると
inactiveなんだけど?

yum同様にミラーリポジトリィを使う

fastestmirror=true ※ 追記する


DynamoDB Local

DockerをインストールすればWindowsでも使える。

Dockerが使えないならLocalで動くJAVAのライブラリィがあるようだ。

コマンドラインからは、 –endpoint-url http://localhost:8000 を指定してLocal側を使うようにするらしいが、コードしたアプリから使う時はどうするんだろう?

AWSのオンラインマニュアルの Java: AWS リージョンとエンドポイントの設定を見るとコマンドライン同様にendpointを変更するAPIが用意されている様だ。

多少ソースを直さないといけないけどLocalなのでCPUやSSDの使用料はかからずにテストに使える様だ。

しかし、手元の超遅~いノートPCに入れるのは無理がありそう、すぐテスト用サーバを用意してLocalなDBを数台から利用する様な使い方が頭に浮かぶものの、まず利用の規約上いかがなものか?というのが気になるし、そもそも大部屋のLANは超重いので論外であった。

やはり、普通に、Couchbase Server等のNoSQLを直接使った方がいいなぁ。



今時のHDDはCドライブ非推奨

NASに入れてるHDD,WD60EZAZ-RT WD Blueは、WDの6TBのHDDで、SMR方式。

全然気にしてなかったけど、SMRはプラッタ(磁気面)に情報を書き込むヘッドの幅より狭い間隔で書き込むことでプラッタに書き込める情報の容量を増やす方式だ。トラック( 書き込まれた磁気情報 )を重ねる様が瓦吹きの屋根を連想させるので、S(Shingled=瓦状)MRなんだそうな。バックアップの磁気テープの代わりにHDDを使うならシリアルアクセスなんだから、こんなんで良いんじゃねの?という感じで出てきたもののようだ。

だから、本来はPCどころか NAS にも向いていない方式です。

そのままではデータセンタとかのエンタープライズ向け専用になってしまうので、HDDでも多少は高速で書き込める外周部(おそらく今までのCMR方式で読み書きしてる)にとりあえず書いて後でコッソリと本来の位置にノンビリと書き込むなら性能は変わんないじゃね?ま、Unix系のHDDもメモリのある限りキャッシュして後からベタ書きしてるしので違和感はないし、一応HDDにかきこんであるから、メモリのみでキャッシュするよりは安心かもしれない。

それに今のHDDへのアクセスは物理的なセクタ位置(トラック、シリンダ、ヘッド)ではなくHDDのコントローラに論理セクタ番号を送るので、予備エリアの管理もHDDのコントローラ任せだから、こんな方式を採用してもHDD内部での話なのでマザボとかOSへの影響もなさそうだ。

実際、PCの前でファイルを保存する時はいつも外周部に書いてるなら、その分CMR方式より少し速く、HDDの空き容量が減って内周部へのアクセスが増えてくれば普通は遅くなっていくがその影響も少ないだろう。

でも、毎回外周部を使ってたら早めにエラーが出そうな気もする。

と云うことで、NASのHDDを引き抜いて見てみたら、やはり2つとも SMR方式のWD60EZAZだった。

引き抜いたせいかNAS起動後の認識が遅い様だ。

あ゛~!

ルータを変えたから、IPアドレスがセグメントすら変わってる。

ReadyCloudから認識しなおさないといけない。

それにNASの電源をOFFると、NASのバックアップボタンを押してReadyCloudで再認識させないとダメらしい。

で、やっとベンチしてみた。

参考:LinuxでもCrystalDiskMarkぽいディスクベンチマークしたい

最初は/tmpで実行したらディスクが足りないらしい。

fio: posix_fallocate fails: No space left on device
(中略)
Seq-Read 121.588
Seq-Write 189.19
Rand-Read-512K 1029.02
Rand-Write-512K 0
Rand-Read-4K 112.835
Rand-Write-4K 0
Rand-Read-4K-QD32 113.054
Rand-Write-4K-QD32 0

今度は、別パーティションの/homeで /tmp/fio.txtも/homeにコピってやってみると本気モードなんで時間が結構かかってしまう。

 Seq-Read 150.118
 Seq-Write 179.55
 Rand-Read-512K 39.91
 Rand-Write-512K 154.794
 Rand-Read-4K 0.389
 Rand-Write-4K 6.069
 Rand-Read-4K-QD32 1.796
 Rand-Write-4K-QD32 6.154

そうそう オワッタ後を dfで見ると

df -H
 Filesystem      Size  Used Avail Use% Mounted on
 udev             11M  4.1k   11M   1% /dev
 /dev/md0        4.0G  4.0G     0 100% /
 (中略) 
 /dev/md127      6.0T   13G  6.0T   1% /home
 (略) 

rootの下が100%。さっきのエラーの原因だな。
もっともroot下が4GBしかないというのもいかがなものか・・・

# ls -l で/tmp
(略)
 -rw-r--r-- 1 root root 1073741824 Feb 24 13:37 Rand-Read-4K.0.0
 -rw-r--r-- 1 root root 1073741824 Feb 24 13:37 Rand-Read-4K-QD32.0.0
 -rw-r--r-- 1 root root 1073741824 Feb 24 13:37 Rand-Read-512K.0.0
 -rw-r--r-- 1 root root          0 Feb 24 13:37 Rand-Write-4K.0.0
 -rw-r--r-- 1 root root          0 Feb 24 13:37 Rand-Write-4K-QD32.0.0
 -rw-r--r-- 1 root root          0 Feb 24 13:37 Rand-Write-512K.0.0
 -rw-r--r-- 1 root root 1073741824 Feb 24 13:37 Seq-Read.0.0
 -rw-r--r-- 1 root root 1007206400 Feb 24 13:37 Seq-Write.0.0
 (略) 

# ls -l で /home
 (略) 
 -rw-r--r-- 1 root     root         398 Feb 24 13:38 fio.txt
 -rw-r--r-- 1 root     root  1073741824 Feb 24 13:38 Rand-Read-4K.0.0
 -rw-r--r-- 1 root     root  1073741824 Feb 24 13:38 Rand-Read-4K-QD32.0.0
 -rw-r--r-- 1 root     root  1073741824 Feb 24 13:38 Rand-Read-512K.0.0
 -rw-r--r-- 1 root     root  1073741824 Feb 24 13:41 Rand-Write-4K.0.0
 -rw-r--r-- 1 root     root  1073741824 Feb 24 13:43 Rand-Write-4K-QD32.0.0
 -rw-r--r-- 1 root     root  1073741824 Feb 24 13:39 Rand-Write-512K.0.0
 -rw-r--r-- 1 root     root  1073741824 Feb 24 13:38 Seq-Read.0.0
 -rw-r--r-- 1 root     root  1073741824 Feb 24 13:39 Seq-Write.0.0
 (略) 

な惨状なんで消すと

 df -h
 Filesystem      Size  Used Avail Use% Mounted on
 udev             10M  4.0K   10M   1% /dev
 /dev/md0        3.7G  1.8G  1.8G  50% /
(中略) 
 /dev/md127      5.5T  3.7G  5.5T   1% /home
(略)

10GBぐらい使ってたのか。

ベンチ結果は 普通のHDD並みだから、HDD外周部のキャッシュを使い切っていない様だ。つまり普通のベンチが扱い10GBより大きいサイズ(数十GB)らしい。

え?外周部のキャッシュを使い切るまでベンチするべきじゃないか?って?

今の/homeの使用量は3.7G。まだ外周部のキャッシュサイズより小さいので32GB越えベンチをしても影響の具合は判らないだろう。

暫く経ってからNASのHDDのモータの起動御(ウーーン)や停止音(ギィーーゴオオ:ヘッド退避かな?)がしてたけど、これはSMR方式が外周部に残ってるキャッシュの情報を更新してるのかな?

普通、HDDの電源ってアクセスから5分ぐらいでOFFる設定してるけど大丈夫なのかな?SMRはHDDの電源入れっぱなしにするのが吉なのかもしれない。

仕事場のノートPCのHDDも容量少ないけどSMRなんだろうか?そう思うと腑に落ちる。もしSMRなら小容量故に外周部キャッシュも小容量でWindowsUpdateでもキャッシュを使い果たして超低速もかもしれない。

ま、超低速といっても自分で測った訳では無く、ググった記事を見る分には30分の1の速度になってしまうらしい。ただでさえランダムアクセスが終わってるのに、そこから30分の1ってUSBメモリを下回りそう。

今時CドライブにHDDなんて使うんじゃねーよ。
これからのHDDはSMR方式がデフォだからな!ということなのかな。

ま、テレビの外付け録画用HDD専用としては問題は無いのかもしれない。


  • カテゴリー:
  • NAS

ThinkCentre M75q-1 Tiny:価格.com限定 パフォーマンス

ThinkCentre M75q-1 Tiny:価格.com限定 パフォーマンス

もう無くなってると思ったら、まだ売っていた。

このページの「直販モデル」のタグをクリック

価格.comパフォーマンスの列の下の方の「カスタマイズ」をクリック

HDDが「なし」になっているので1TBを選択する。

SDDを無しにする。

メモリは8GB1枚になっていることを確認する。増設するなら4GBx2は不可。

どうでもいいオプションは全部「なし」にする。

で土曜日のせいか3.2万円ぐらいになった。

あとは、

SO-DIMM DDR4 2666MHz 8GB, PCI接続のSSD NVMeの256 GBを別のショップで購入すればいいハズ。

PCが届いたら、Windows10をセットアップ。

Windowsが認証済みになっていることを確認。

USBメモリに回復ドライブを作成。

メモリとSSDが届いたら、 PCの裏蓋を開けて を取り付ける。

SSDの中は空っぽなので、USBメモリからWindows10をインスト。

参考:youtobe 【PC】なんとコンパクトな新品パソコンが3.3万円で買える!(RYZEN5搭載)

でも、ボクは買ってないよ。



[UEFI] 電源復旧後の設定

停電の後、勝手にPCが起動しても都合が悪いので

大抵はパワーオフにしている。

※但し、自宅サーバを除く。

本当は

  • UPSで停電発生時に自動的にシャットダウン。
  • 電源復旧後に自動的にPCが起動する。

と出来るといいが、

そんなことができるUPSやUPSのアプリが

本当に見当たらない。



[VSCode]Python, pytest

Visual Studio Code で Pythonのソースを実行する手順

1.VisualStudioCodeをインストールする。

https://azure.microsoft.com/ja-jp/products/visual-studio-code/ から
ダウンロードして、インスト。

日本語化する。

メニューのView Command Paletteを選択
[Configure Display Language]と入力
プルダウンリストから[Install additional Language…]を選択
画面左のEXTENSIONS: MARKETPLACEから
[Japanese Language Pack for VS Code]を選択
画面右の[Japanese Language Pack for VS Code]の説明下の【install】を押す
画面左下の【Restart Now】を押す
多々変なトコロもあるけど、タダだから仕方が無い

2.適当な場所にフォルダを作り、Pythonのソースを入れておく。

参考:https://scrapbox.io/remi-tech/VisualStudioCode%E3%81%A7pytest%E7%92%B0%E5%A2%83%E3%82%92%E4%BD%9C%E3%82%8B

E:\pythonProject
 │- sample.py
 │- pytest.ini
 └─tests
      └─ test_sample.py
def func1(para) :
    print("func1")
    return "func1_" + para

def func2(para) :
    print("func2")
    return "func2_" + para
# pytest用

import os
import sys
sys.path.append(os.getcwd())
import sample

class Test_sample :
    def test_sample_func1(self) :
        assert sample.func1("aaa") == "func1_aaa"
        
    def test_sample_func2(self) :
        assert sample.func2("aaa") == "func2_aaa"
       
[pytest]
testpaths = ./tests
python_files = test_*.py
python_classes = Test
python_functions = test_

3.ワークスペースに上記のフォルダを追加する。

メニューの【フォルダーの追加】を押す
追加するフォルダを開いたら【追加】を押す
無事に目的のフォルダが追加された
壊さないうちにワークスペースとして保存してしまおう
勿論ワークスペース設定ファイルは先のフォルダの中に作る
とりあえずOK

3.Pythonの環境作り

・Windows StoreからPython3.8をインスト。
※本来Python3.xのインストールはOSやCPUの特性を詳細に調査しgccのConfigure(中身はPython2のソース)を熟読してオプションを探り出してビルドの後のTestモードの結果を見て何度もウンザリするものだが、Windowsはその辺の選択肢が一つしかないから世界中の誰かが成功すればもうその人の設定をコピペするだけでOK(逆算的に容易)であり、今ではベンダーのHPにもインストーラが用意されている。

ところが、
> python
指定されたプログラムは実行できません。
となる、これはPATH環境変数にプログラムのパスが通っていないせい。

コントロールパネル⇒システムとセキュリティ⇒システム
システムの詳細設定の【環境変数(N)…】を押す
システム環境変数(S)のPathを選択し【編集(I)…】を押す
設定内容の最後にコマンドラインで
> where python
の結果
C:\Users\ユーザ名\AppData\Local\Microsoft\WindowsApps\python.exe
のファイル名のフルパスのフォルダ名を入れる
※ C:\Users\ユーザ名\AppData\Local\Microsoft\WindowsApps

・VSCodeのエクスプローラのpythonのソースをクリックしてみると、

【Install】を押す
少し待つと、自動的にpython(の何か)がインストールされる

その↓の説明通りデバッグビューを経由して設定を進める

※スクショ上書きして消えたけど、確か「Python」 を選択したハズ。

設定が終わったら、緑の▷を押すと実行する。

4.pytestを設定する

インスト中、3.8だとアップグレード要求が出る

> python -m pip install –upgrade pip するとpipがアップグレードされる

ここまで進むとテストビューが出てくる。
出なければpythonソースを右クリックして「全ての単体テストを実行」を選択

Discover Testを押してテストソースを探させよう!

ここで、発見できない場合は、画面の左下の「出力」に原因が出る。
大体はテストソースの何かのエラーだ。

os.cwd()は間違い os.getcwd()が正解
実行してみよう!
うまくいった!!!

あ、vscodeやpipのリポジトリィも一旦消しといた方がいいね。

vscodeの場合は、C:\Users\ユーザ名\.vscode フォルダを消す。

pipの場合は、C:\Users\slani\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.*_************
※ * 部分はインストするマイナーバージョンやランダム文字

ps.

{
	"folders": [
		{
			"path": "."
		}
	],
	"settings": {}
}
{
    // IntelliSense を使用して利用可能な属性を学べます。
    // 既存の属性の説明をホバーして表示します。
    // 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal"
        }
    ]
}
{
    "python.pythonPath": "C:\\Users\\{ユーザ名}\\AppData\\Local\\Microsoft\\WindowsApps\\python3.8.exe",
    "python.testing.pytestArgs": [
        "tests"
    ],
    "python.testing.unittestEnabled": false,
    "python.testing.nosetestsEnabled": false,
    "python.testing.pytestEnabled": true
}

では、なぜこんな記事を書いたのかと云うと・・・今朝方、仕事場の開発環境がぶっ飛んだから、予算の都合で非力なマシンになってしまったので試行錯誤するとむやみに時間だけが過ぎ去っていくので家に戻って準備した。
これを見れば、あの非力なマシンでも1時間もあれば余裕のハズ。(涙

ps.
VScodeではソースを修正すると改行コードがCR・LFとLFが混在することがある。この場合、見た目は問題無いソースだけどCRのせいで行が繋がって見えるらしく、イミフなインデントエラーが出ることがある。

def func1() CRLF
    """CRLF
    コメントLF
    """LF
※コメントは宣言されていない変数です。等


エディタ右下がCRLF表示になっている時は特に危ない。

{
// エディター設定
"editor.tabSize": 4,
"editor.insertSpaces": true, // Tabキーで半角空白
// ファイル設定
"files.autoSave": "off", //VScodeを閉じている間に他のエディタでソースを開くと変なことになりやすいのでOFF
"files.eol": "\n",  // 改行コードをLFにする
}

と強制的にLFしたりTABも空白になる様に仕向けないといけないようだ。

多分、改行コードのせいなのだろう。沢山のpytestのテスト関数を全部実行したらいくつかNGになった。しかし、1つづつ実行するとOK。
こんな時は大方は初期化処理が他のテスト関数と競合していたり依存しているためだ。
そのため、
def Test_xxxxx を def __Test_xxxxx と変えてpytestをやり過ごし、少しづつ戻していって、馬鹿な間違いをしているコードをあぶりだそうとした。

しかし、その結果。全て戻したら、ALL GREENになってしまった。
エディタが何かやらかしたらしい。もし幅0空白とか見えない文字だったら勘弁だ。

結果オーライでいいんだけど、再現したら泣きそうだ。

ここまで気を使わないといけないCompute言語なら・・・
Pythonなんて無くなってしまえ!
と素直に思う。

マネーをケチれば、 等価交換に則り、時間が足りなくなるのは必然である。

Slanirish Warlander



cacti

MRTGより簡単らしいので。

参考:【CentOS7】cactiのインストール手順
CentOS7 Cactiのインストールと基本設定

dnfで epel-release とcactiをインスト
バージョンは1.2.8だった。

MySQLではなくMariaDBを使うので、
設定は/etc/my.cnf.d/mariadb-server.cnfに書くらしい。
このMariaDBのcollation_serve設定がキニイラナイらしい。

# mysql -u root -p
MariaDB [(none)]> show variables like 'coll%';
 +----------------------+--------------------+
 | Variable_name        | Value              |
 +----------------------+--------------------+
 | collation_connection | utf8mb4_general_ci |
 | collation_database   | utf8mb4_general_ci |
 | collation_server     | utf8mb4_general_ci |
 +----------------------+--------------------+

なので、collation-serverの設定を追加

[mariadb]
character-set-server=utf8mb4
collation-server = utf8mb4_unicode_ci

systemctl restart mariadb

MariaDB [(none)]> show variables like 'coll%';
 +----------------------+--------------------+
 | Variable_name        | Value              |
 +----------------------+--------------------+
 | collation_connection | utf8mb4_general_ci |
 | collation_database   | utf8mb4_unicode_ci |
 | collation_server     | utf8mb4_unicode_ci |
 +----------------------+--------------------+

以下、同様に追記

max_heap_table_size=60M
tmp_table_size=60M
join_buffer_size=119M
innodb_file_format=Barracuda
innodb_large_prefix=1
innodb_buffer_pool_size=924M
innodb_flush_log_at_timeout=4
innodb_read_io_threads=33
innodb_write_io_threads=17
innodb_buffer_pool_instances=16
innodb_io_capacity=5001
innodb_io_capacity_max=10001

cactiuserはcactiデータベースの他にmysqlデータベースへのselect権限も追加。

phpは

max_execution_time = 60
memory_limit = 400M
date.timezone 	Asia/Tokyo

それでも、
PHP – Recommendations (web)で
date.timezone>= エラーA valid timezone that matches MySQL and the system

どうやらApacheがphp-frmを使っているので
# systemctl restart php-fpm
しないとphp.iniの設定が反映されないらしい。

最後に
innodb_buffer_pool_instances=16 が1になってしまう問題が残ったが・・・

このオプションは、innodb_buffer_pool_size を 1G バイト以上のサイズに設定した場合にのみ有効になります。

引用:MySQL5.6リファレンス  14.13.1.4 複数のバッファープールインスタンスの使用

というのを見つけたので
innodb_buffer_pool_si =1024M
で解決。

LocalHostは設定済みっぽいがKVMホストの情報も見たい。

New Deviceで作成。
説明にホスト名 。(笑)
ホスト名 にIPアドレス。(大笑)
Device Template でLocal Linux Machineを選択して【保存】
新規グラフで作成。
デバイスで、先のホスト名を選択し、テンプレはLinuxを選択して【保存】

ここまではいいがレスポンスが無い様だ。snmpのコマンドで調べてみる。

# snmpwalk -v 1 192.168.XXX.XXX -c public
Timeout: No Response from 192.168.XX.XXX

何か忘れてる。否、何も設定してないじゃんか。

# yum install lm_sensors
# sensors-detec ←とりあえず全部Yesする。
# yum -y install net-snmp net-snmp-utils
# systemctl start snmpd
# systemctl enable snmpd
# firewall-cmd --add-port=161/udp --permanent
# firewall-cmd --reload

今度はsnmpwalk -v 1 192.168.XXX.XXX -c publicで色々読める。

やはり通信負荷とかCPU温度も知りたいけどテンプレには無い様だ。

ps.

# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +26.8°C  (crit = +90.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +40.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:       +40.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:       +43.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:       +43.0°C  (high = +105.0°C, crit = +105.0°C)

nct6776-isa-0290
Adapter: ISA adapter
Vcore:          +0.70 V  (min =  +0.00 V, max =  +1.74 V)
in1:            +1.85 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:           +3.36 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:          +3.36 V  (min =  +2.98 V, max =  +3.63 V)
in4:            +0.95 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:            +1.72 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:            +0.89 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
3VSB:           +3.28 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:           +3.15 V  (min =  +2.70 V, max =  +3.63 V)
fan1:           931 RPM  (min =    0 RPM)
fan2:             0 RPM  (min =    0 RPM)
fan3:             0 RPM  (min =    0 RPM)
SYSTIN:         +43.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = thermistor
CPUTIN:         +40.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
AUXTIN:         +33.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
PCH_CHIP_TEMP:   +0.0°C
PCH_CPU_TEMP:    +0.0°C
PCH_MCH_TEMP:    +0.0°C
cpu0_vid:      +0.000 V
intrusion0:    ALARM
intrusion1:    ALARM

で、温度は判る。
OIDの表から

# snmptranslate -Tp
+--iso(1)
   |
   +--org(3)
      |
      +--dod(6)
         |
         +--internet(1)
            +--private(4)
            |  +--enterprises(1)
            |     +--ucdavis(2021)
            |     |  +--prTable(2)
            |     |  +--ucdExperimental(13)
            |     |  |  +--lmSensors(16)

ここから、CPU温度を得るにはOID 1.3.6.1.4.1.2021.13.16.2.1.3
private側なのでターゲット側のsnmp.confの設定を変更して調べてみる。

snmpwalk -v 2c -c public 192.168.***.*** .1.3.6.1.4.1.2021.13.16.2.1.3
LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 26800
LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 40000
LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 40000
LM-SENSORS-MIB::lmTempSensorsValue.4 = Gauge32: 43000
LM-SENSORS-MIB::lmTempSensorsValue.5 = Gauge32: 43000
LM-SENSORS-MIB::lmTempSensorsValue.18 = Gauge32: 43000
LM-SENSORS-MIB::lmTempSensorsValue.19 = Gauge32: 40000
LM-SENSORS-MIB::lmTempSensorsValue.20 = Gauge32: 33500
LM-SENSORS-MIB::lmTempSensorsValue.21 = Gauge32: 0
LM-SENSORS-MIB::lmTempSensorsValue.22 = Gauge32: 0
LM-SENSORS-MIB::lmTempSensorsValue.23 = Gauge32: 0

cactiのテンプレートで
SNMP OID .1.3.6.1.4.1.2021.13.16.2.1.3 を取得するデータソースを作成する。

グラフ(CPU Temperature)を作り、デバイス(Local Linux Machine)にグラフを追加する。

しかし、テンプレに追加しただけではグラフはできないので
マネージメントのデバイスの *Create Graphs for this Device で
CPU Tempertureを追加し、グラフで確認。

しかし、

ERROR: is not a vname nor a number

ps.2023/09/09

AlmaLinuxになっているので現状を確認。

cactiのchronは5分置きに発生中。

Apacheの設定ファイルのセグメントが古かったので修正。

phpの設定が古かったみたいなので修正。

memory_limit = 512M         ; 修正 400M
max_execution_style = 60    ; 追記

https://*****/cacti から再度オンラインでセットアップ。

MariaDBのinnodb_doublewriteがONなのでOFFに変える様に指示が出たので追記した。

innodb_doublewrite=0
# systemctl restart mariadb

https://*****/cacti から再度オンラインでセットアップ。

今回は赤表示が無く、そのまま進め、アップグレードも進める。

グラフが表示されるようになった。

テンプレもアップデートしてしまったので

CPU温度の設定が消えた様だ。

ログを見ると、ずーーとエラーが連発していたらしい。

アップデートで治ったかどうか?

暫く様子見するしかなさそう。

でも、とりあえず、アンスコ。



[Thermaltale]Versa H26

Core i7-3770TのATXケースの電源スイッチが壊れて久しい。
外付け電源スイッチで間に合わせてたけど、安いケースがあったのでポチった。

Thermaltake Versa H26 Black /w casefan ミドルタワー型PCケース [ブラックモデル] CS7070 CA-1J5-00M1WN-01 時価¥ 4,162

やはりデカイ。

入れ替え完了。

このケースにはファンは2つ付いてるが、マザボにはシステムファンのコネクタは1つしかない。

二股ケーブルを探すか

左側面のアクリル板の擦り加工が濃すぎて中が見えないなぁ~と思ったら両面に保護シートが貼ってあった。剥がしてみるとスケスケ、少しスモークが掛ってる方がいいかな。

上面のメッシュはゴム磁石で固定。PCでフロッピーディスクを使っていた頃はPCに磁石は大敵だったなぁ。



無料のSSL証明書の登録・更新

適当に記事を見ながらやったらハマった

https://saba.omnioo.com/note/2110/%E7%84%A1%E6%96%99ssl%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B-lets-encrypt/
https://qiita.com/tmatsumot/items/aca49d99558d2646ef36
https://qiita.com/f_uto/items/4178a9fdd657b78672ea
https://www.cyberbrain.co.jp/news/detail/135/

# cd /tmp   {特に意味はない}
# wget https://dl.eff.org/certbot-auto
# mv certbot-auto /usr/local/bin/certbot-auto
# chown root /usr/local/bin/certbot-auto
# chmod 0755 /usr/local/bin/certbot-auto

# /usr/local/bin/certbot-auto certonly –webroot -w {WordPressを配置したパス} -d {WWW上のサーバ名}

すると

Bootstrapping dependencies for RedHat-based OSes that will use Python3... (you can skip this with --no-bootstrap)
dnf は /usr/bin/dnf です
dnf はハッシュされています (/usr/bin/dnf)
メタデータの期限切れの最終確認: 0:21:58 時間前の 2020年02月09日 02時00分41秒 に実施しました。
パッケージ openssl-1:1.1.1c-2.el8.x86_64 は既にインストールされています。
パッケージ openssl-devel-1:1.1.1c-2.el8.x86_64 は既にインストールされています。
パッケージ ca-certificates-2019.2.32-80.0.el8_1.noarch は既にインストールされています。
パッケージ mod_ssl-1:2.4.37-16.module_el8.1.0+256+ae790463.x86_64 は既にインストールされています。
依存関係が解決しました。
================================================================================
 パッケージ             Arch   バージョン                       Repo      サイズ
================================================================================
インストール:
 gcc                    x86_64 8.3.1-4.5.el8                    AppStream  23 M
 python3-virtualenv     noarch 15.1.0-19.module_el8.1.0+245+c39af44f
                                                                AppStream 100 k
 python36               x86_64 3.6.8-2.module_el8.1.0+245+c39af44f
                                                                AppStream  19 k
 python36-devel         x86_64 3.6.8-2.module_el8.1.0+245+c39af44f
                                                                AppStream  16 k
 redhat-rpm-config      noarch 120-1.el8                        AppStream  83 k
 augeas-libs            x86_64 1.12.0-2.el8                     BaseOS    436 k
 libffi-devel           x86_64 3.1-21.el8                       BaseOS     29 k
依存関係のインストール:
 annobin                x86_64 8.78-1.el8                       AppStream 196 k
 cpp                    x86_64 8.3.1-4.5.el8                    AppStream  10 M
 dwz                    x86_64 0.12-9.el8                       AppStream 109 k
 efi-srpm-macros        noarch 3-2.el8                          AppStream  22 k
 ghc-srpm-macros        noarch 1.4.2-7.el8                      AppStream 9.3 k
 go-srpm-macros         noarch 2-16.el8                         AppStream  14 k
 isl                    x86_64 0.16.1-6.el8                     AppStream 841 k
 libmpc                 x86_64 1.0.2-9.el8                      AppStream  59 k
 ocaml-srpm-macros      noarch 5-4.el8                          AppStream 9.4 k
 openblas-srpm-macros   noarch 2-2.el8                          AppStream 7.9 k
 perl-srpm-macros       noarch 1-25.el8                         AppStream  11 k
 platform-python-devel  x86_64 3.6.8-15.1.el8                   AppStream 245 k
 python-rpm-macros      noarch 3-37.el8                         AppStream  14 k
 python-srpm-macros     noarch 3-37.el8                         AppStream  14 k
 python3-pip            noarch 9.0.3-15.el8                     AppStream  19 k
 python3-rpm-generators noarch 5-4.el8                          AppStream  24 k
 python3-rpm-macros     noarch 3-37.el8                         AppStream  13 k
 python3-wheel-wheel    noarch 1:0.31.1-2.module_el8.1.0+245+c39af44f
                                                                AppStream  44 k
 qt5-srpm-macros        noarch 5.11.1-2.el8                     AppStream  11 k
 rust-srpm-macros       noarch 5-2.el8                          AppStream 9.2 k
 binutils               x86_64 2.30-58.el8_1.1                  BaseOS    5.7 M
 glibc-devel            x86_64 2.28-72.el8                      BaseOS    1.0 M
 glibc-headers          x86_64 2.28-72.el8                      BaseOS    469 k
 kernel-headers         x86_64 4.18.0-147.5.1.el8_1             BaseOS    2.7 M
 libxcrypt-devel        x86_64 4.1.1-4.el8                      BaseOS     25 k
 python3-setuptools     noarch 39.2.0-5.el8                     BaseOS    162 k
 zip                    x86_64 3.0-23.el8                       BaseOS    270 k
モジュールストリームの有効化:
 python36                      3.6                                             

トランザクションの概要
================================================================================
インストール  34 パッケージ

ダウンロードサイズの合計: 46 M
インストール済みのサイズ: 130 M
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
                         [===                 ] ---  B/s |   0  B     --:-- ETA                         [===                 ] ---  B/s |   0  B     --:-- ETA                         [   ===              ] ---  B/s |   0  B     --:-- ETA                    100% [====================] 1.4 kB/s | 649  B     00:00 ETA(1/34): annobin-8.78  0% [                    ] ---  B/s |   0  B     --:-- ETA(1/34): dwz-0.12-9.el8.x86_64.rpm               417 kB/s | 109 kB     00:00    
(2-3/34): annobin-8.  0% [                    ] 1.6 MB/s | 434 kB     00:28 ETA(2/34): annobin-8.78-1.el8.x86_64.rpm           565 kB/s | 196 kB     00:00    
(3-4/34): efi-srpm-m  1% [                    ] 1.6 MB/s | 698 kB     00:27 ETA(3/34): efi-srpm-macros-3-2.el8.noarch.rpm      247 kB/s |  22 kB     00:00    
(4-5/34): gcc-8.3.1-  1% [                    ] 1.6 MB/s | 724 kB     00:27 ETA(4/34): ghc-srpm-macros-1.4.2-7.el8.noarch.rpm  148 kB/s | 9.3 kB     00:00    
(5-6/34): gcc-8.3.1-  1% [                    ] 1.7 MB/s | 909 kB     00:27 ETA(5/34): go-srpm-macros-2-16.el8.noarch.rpm      233 kB/s |  14 kB     00:00    
(6-7/34): gcc-8.3.1-  2% [                    ] 1.7 MB/s | 1.1 MB     00:26 ETA(6-8/34): isl-0.16.1  7% [=                   ] 2.0 MB/s | 3.3 MB     00:21 ETA(6/34): isl-0.16.1-6.el8.x86_64.rpm             1.4 MB/s | 841 kB     00:00    
(7-8/34): gcc-8.3.1- 17% [===                 ] 2.8 MB/s | 7.9 MB     00:13 ETA(7/34): libmpc-1.0.2-9.el8.x86_64.rpm           452 kB/s |  59 kB     00:00    
(8-9/34): gcc-8.3.1- 23% [====-               ] 3.4 MB/s |  11 MB     00:10 ETA(8/34): ocaml-srpm-macros-5-4.el8.noarch.rpm    134 kB/s | 9.4 kB     00:00    
(9-10/34): cpp-8.3.1 27% [=====-              ] 3.7 MB/s |  13 MB     00:09 ETA(9/34): openblas-srpm-macros-2-2.el8.noarch.rpm 132 kB/s | 7.9 kB     00:00    
(10-11/34): cpp-8.3. 31% [======              ] 4.0 MB/s |  15 MB     00:08 ETA(10/34): cpp-8.3.1-4.5.el8.x86_64.rpm           7.0 MB/s |  10 MB     00:01    
(11-12/34): gcc-8.3. 31% [======              ] 3.9 MB/s |  15 MB     00:08 ETA(11/34): perl-srpm-macros-1-25.el8.noarch.rpm    61 kB/s |  11 kB     00:00    
(12-13/34): gcc-8.3. 33% [======-             ] 4.0 MB/s |  15 MB     00:07 ETA(12/34): python-rpm-macros-3-37.el8.noarch.rpm  155 kB/s |  14 kB     00:00    
(13-14/34): gcc-8.3. 35% [=======             ] 4.2 MB/s |  17 MB     00:07 ETA(13/34): python-srpm-macros-3-37.el8.noarch.rpm 143 kB/s |  14 kB     00:00    
(14-15/34): gcc-8.3. 39% [=======-            ] 4.4 MB/s |  18 MB     00:06 ETA(14/34): platform-python-devel-3.6.8-15.1.el8.x 880 kB/s | 245 kB     00:00    
(15-16/34): gcc-8.3. 40% [========            ] 4.5 MB/s |  19 MB     00:06 ETA(15/34): python3-pip-9.0.3-15.el8.noarch.rpm    234 kB/s |  19 kB     00:00    
(16-17/34): gcc-8.3. 41% [========            ] 4.6 MB/s |  19 MB     00:05 ETA(16/34): python3-rpm-macros-3-37.el8.noarch.rpm 227 kB/s |  13 kB     00:00    
(17-18/34): gcc-8.3. 43% [========-           ] 4.7 MB/s |  20 MB     00:05 ETA(17/34): python3-rpm-generators-5-4.el8.noarch. 230 kB/s |  24 kB     00:00    
(18-19/34): gcc-8.3. 43% [========-           ] 4.7 MB/s |  20 MB     00:05 ETA(18/34): python3-wheel-wheel-0.31.1-2.module_el 341 kB/s |  44 kB     00:00    
(19-20/34): gcc-8.3. 49% [=========-          ] 5.1 MB/s |  23 MB     00:04 ETA(19/34): python3-virtualenv-15.1.0-19.module_el 576 kB/s | 100 kB     00:00    
(20-21/34): gcc-8.3. 50% [==========          ] 5.2 MB/s |  24 MB     00:04 ETA(20/34): python36-3.6.8-2.module_el8.1.0+245+c3 229 kB/s |  19 kB     00:00    
(21-22/34): gcc-8.3. 52% [==========-         ] 5.3 MB/s |  25 MB     00:04 ETA(21/34): python36-devel-3.6.8-2.module_el8.1.0+ 156 kB/s |  16 kB     00:00    
(22-23/34): gcc-8.3. 55% [===========         ] 5.5 MB/s |  26 MB     00:03 ETA(22/34): qt5-srpm-macros-5.11.1-2.el8.noarch.rp 154 kB/s |  11 kB     00:00    
(23-24/34): gcc-8.3. 55% [===========         ] 5.5 MB/s |  26 MB     00:03 ETA(23/34): rust-srpm-macros-5-2.el8.noarch.rpm     96 kB/s | 9.2 kB     00:00    
(24-25/34): gcc-8.3. 60% [============        ] 5.9 MB/s |  28 MB     00:03 ETA(24/34): redhat-rpm-config-120-1.el8.noarch.rpm 531 kB/s |  83 kB     00:00    
(25-26/34): augeas-l 63% [============-       ] 6.1 MB/s |  30 MB     00:02 ETA(25/34): gcc-8.3.1-4.5.el8.x86_64.rpm           9.5 MB/s |  23 MB     00:02    
(26-27/34): binutils 77% [===============     ] 6.8 MB/s |  36 MB     00:01 ETA(26/34): augeas-libs-1.12.0-2.el8.x86_64.rpm    683 kB/s | 436 kB     00:00    
(27-28/34): glibc-de 79% [===============-    ] 6.8 MB/s |  37 MB     00:01 ETA(27-29/34): glibc-de 82% [================    ] 6.7 MB/s |  38 MB     00:01 ETA(27/34): glibc-headers-2.28-72.el8.x86_64.rpm   996 kB/s | 469 kB     00:00    
(28-29/34): binutils 86% [=================   ] 6.8 MB/s |  40 MB     00:00 ETA(28/34): binutils-2.30-58.el8_1.1.x86_64.rpm    4.1 MB/s | 5.7 MB     00:01    
(29-30/34): glibc-de 93% [==================- ] 7.1 MB/s |  44 MB     00:00 ETA(29/34): libffi-devel-3.1-21.el8.x86_64.rpm     841 kB/s |  29 kB     00:00    
(30-31/34): glibc-de 94% [==================- ] 7.1 MB/s |  44 MB     00:00 ETA(30/34): glibc-devel-2.28-72.el8.x86_64.rpm     1.1 MB/s | 1.0 MB     00:00    
(31-32/34): kernel-h 94% [==================- ] 7.1 MB/s |  44 MB     00:00 ETA(31/34): libxcrypt-devel-4.1.1-4.el8.x86_64.rpm 757 kB/s |  25 kB     00:00    
(32-33/34): kernel-h 95% [=================== ] 7.1 MB/s |  44 MB     00:00 ETA(32/34): zip-3.0-23.el8.x86_64.rpm              4.8 MB/s | 270 kB     00:00    
(33-34/34): kernel-h 96% [=================== ] 7.2 MB/s |  45 MB     00:00 ETA(33/34): python3-setuptools-39.2.0-5.el8.noarch 2.0 MB/s | 162 kB     00:00    
(34/34): kernel-head 96% [=================== ] 7.2 MB/s |  45 MB     00:00 ETA(34/34): kernel-headers-4.18.0-147.5.1.el8_1.x8 4.0 MB/s | 2.7 MB     00:00    
--------------------------------------------------------------------------------
合計                                            9.0 MB/s |  46 MB     00:05     
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
  準備             :  [=                                                  ] 1/1  準備             :  [==                                                 ] 1/1  準備             :  [====                                               ] 1/1  準備             :  [=====                                              ] 1/1  準備             :  [=======                                            ] 1/1  準備             :  [========                                           ] 1/1  準備             :  [==========                                         ] 1/1  準備             :  [===========                                        ] 1/1  準備             :  [=============                                      ] 1/1  準備             :  [==============                                     ] 1/1  準備             :  [================                                   ] 1/1  準備             :  [=================                                  ] 1/1  準備             :  [===================                                ] 1/1  準備             :  [====================                               ] 1/1  準備             :  [======================                             ] 1/1  準備             :  [=======================                            ] 1/1  準備             :  [=========================                          ] 1/1  準備             :  [==========================                         ] 1/1  準備             :  [============================                       ] 1/1  準備             :  [=============================                      ] 1/1  準備             :  [===============================                    ] 1/1  準備             :  [================================                   ] 1/1  準備             :  [==================================                 ] 1/1  準備             :  [===================================                ] 1/1  準備             :  [=====================================              ] 1/1  準備             :  [======================================             ] 1/1  準備             :  [========================================           ] 1/1  準備             :  [=========================================          ] 1/1  準備             :  [===========================================        ] 1/1  準備             :  [============================================       ] 1/1  準備             :  [==============================================     ] 1/1  準備             :  [===============================================    ] 1/1  準備             :  [=================================================  ] 1/1  準備             :                                                        1/1 
  インストール中   : python3-setuptools-39.2. [                         ]  1/34  インストール中   : python3-setuptools-39.2. [=                        ]  1/34  インストール中   : python3-setuptools-39.2. [===                      ]  1/34  インストール中   : python3-setuptools-39.2. [=====                    ]  1/34  インストール中   : python3-setuptools-39.2. [======                   ]  1/34  インストール中   : python3-setuptools-39.2. [========                 ]  1/34  インストール中   : python3-setuptools-39.2. [==========               ]  1/34  インストール中   : python3-setuptools-39.2. [============             ]  1/34  インストール中   : python3-setuptools-39.2. [==============           ]  1/34  インストール中   : python3-setuptools-39.2. [================         ]  1/34  インストール中   : python3-setuptools-39.2. [=================        ]  1/34  インストール中   : python3-setuptools-39.2. [===================      ]  1/34  インストール中   : python3-setuptools-39.2. [=====================    ]  1/34  インストール中   : python3-setuptools-39.2. [=======================  ]  1/34  インストール中   : python3-setuptools-39.2. [======================== ]  1/34  インストール中   : python3-setuptools-39.2.0-5.el8.noarch                1/34 
  インストール中   : python36-3.6.8-2.module_ [                         ]  2/34  インストール中   : python36-3.6.8-2.module_ [=                        ]  2/34  インストール中   : python36-3.6.8-2.module_ [======================== ]  2/34  インストール中   : python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_6    2/34 
  scriptletの実行中: python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_6    2/34 
  インストール中   : python3-pip-9.0.3-15.el8 [                         ]  3/34  インストール中   : python3-pip-9.0.3-15.el8 [==                       ]  3/34  インストール中   : python3-pip-9.0.3-15.el8 [===                      ]  3/34  インストール中   : python3-pip-9.0.3-15.el8 [====                     ]  3/34  インストール中   : python3-pip-9.0.3-15.el8 [======                   ]  3/34  インストール中   : python3-pip-9.0.3-15.el8 [=======                  ]  3/34  インストール中   : python3-pip-9.0.3-15.el8 [========                 ]  3/34  インストール中   : python3-pip-9.0.3-15.el8 [================         ]  3/34  インストール中   : python3-pip-9.0.3-15.el8 [=================        ]  3/34  インストール中   : python3-pip-9.0.3-15.el8 [======================== ]  3/34  インストール中   : python3-pip-9.0.3-15.el8.noarch                       3/34 
  インストール中   : python3-rpm-macros-3-37. [                         ]  4/34  インストール中   : python3-rpm-macros-3-37. [=======================  ]  4/34  インストール中   : python3-rpm-macros-3-37.el8.noarch                    4/34 
  インストール中   : python-srpm-macros-3-37. [                         ]  5/34  インストール中   : python-srpm-macros-3-37. [======================== ]  5/34  インストール中   : python-srpm-macros-3-37.el8.noarch                    5/34 
  インストール中   : libmpc-1.0.2-9.el8.x86_6 [                         ]  6/34  インストール中   : libmpc-1.0.2-9.el8.x86_6 [=====                    ]  6/34  インストール中   : libmpc-1.0.2-9.el8.x86_6 [==========               ]  6/34  インストール中   : libmpc-1.0.2-9.el8.x86_6 [===============          ]  6/34  インストール中   : libmpc-1.0.2-9.el8.x86_6 [=====================    ]  6/34  インストール中   : libmpc-1.0.2-9.el8.x86_6 [======================   ]  6/34  インストール中   : libmpc-1.0.2-9.el8.x86_6 [=======================  ]  6/34  インストール中   : libmpc-1.0.2-9.el8.x86_6 [======================== ]  6/34  インストール中   : libmpc-1.0.2-9.el8.x86_64                             6/34 
  scriptletの実行中: libmpc-1.0.2-9.el8.x86_64                             6/34 
  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [                         ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [=                        ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [==                       ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [===                      ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [====                     ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [=====                    ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [======                   ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [=======                  ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [========                 ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [=========                ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [==========               ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [===========              ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [============             ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [=============            ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [==============           ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [===============          ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [================         ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [=================        ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [==================       ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [===================      ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [====================     ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [=====================    ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [======================   ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [=======================  ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64 [======================== ]  7/34  インストール中   : cpp-8.3.1-4.5.el8.x86_64                              7/34 
  scriptletの実行中: cpp-8.3.1-4.5.el8.x86_64                              7/34 
  インストール中   : python-rpm-macros-3-37.e [                         ]  8/34  インストール中   : python-rpm-macros-3-37.e [======                   ]  8/34  インストール中   : python-rpm-macros-3-37.e [======================== ]  8/34  インストール中   : python-rpm-macros-3-37.el8.noarch                     8/34 
  インストール中   : zip-3.0-23.el8.x86_64 [                            ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [=                           ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [===                         ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [====                        ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [=====                       ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [======                      ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [=======                     ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [========                    ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [=========                   ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [==========                  ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [===========                 ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [============                ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [=============               ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [==============              ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [===============             ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [================            ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [=================           ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [==================          ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [===================         ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [=====================       ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [======================      ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [=======================     ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [========================    ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [=========================   ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [==========================  ]  9/34  インストール中   : zip-3.0-23.el8.x86_64 [=========================== ]  9/34  インストール中   : zip-3.0-23.el8.x86_64                                 9/34 
  インストール中   : kernel-headers-4.18.0-14 [                         ] 10/34  インストール中   : kernel-headers-4.18.0-14 [=                        ] 10/34  インストール中   : kernel-headers-4.18.0-14 [==                       ] 10/34  インストール中   : kernel-headers-4.18.0-14 [===                      ] 10/34  インストール中   : kernel-headers-4.18.0-14 [====                     ] 10/34  インストール中   : kernel-headers-4.18.0-14 [=====                    ] 10/34  インストール中   : kernel-headers-4.18.0-14 [======                   ] 10/34  インストール中   : kernel-headers-4.18.0-14 [=======                  ] 10/34  インストール中   : kernel-headers-4.18.0-14 [========                 ] 10/34  インストール中   : kernel-headers-4.18.0-14 [=========                ] 10/34  インストール中   : kernel-headers-4.18.0-14 [==========               ] 10/34  インストール中   : kernel-headers-4.18.0-14 [===========              ] 10/34  インストール中   : kernel-headers-4.18.0-14 [============             ] 10/34  インストール中   : kernel-headers-4.18.0-14 [=============            ] 10/34  インストール中   : kernel-headers-4.18.0-14 [==============           ] 10/34  インストール中   : kernel-headers-4.18.0-14 [===============          ] 10/34  インストール中   : kernel-headers-4.18.0-14 [================         ] 10/34  インストール中   : kernel-headers-4.18.0-14 [=================        ] 10/34  インストール中   : kernel-headers-4.18.0-14 [==================       ] 10/34  インストール中   : kernel-headers-4.18.0-14 [===================      ] 10/34  インストール中   : kernel-headers-4.18.0-14 [====================     ] 10/34  インストール中   : kernel-headers-4.18.0-14 [=====================    ] 10/34  インストール中   : kernel-headers-4.18.0-14 [======================   ] 10/34  インストール中   : kernel-headers-4.18.0-14 [=======================  ] 10/34  インストール中   : kernel-headers-4.18.0-14 [======================== ] 10/34  インストール中   : kernel-headers-4.18.0-147.5.1.el8_1.x86_64           10/34 
  scriptletの実行中: glibc-headers-2.28-72.el8.x86_64                     11/34 
  インストール中   : glibc-headers-2.28-72.el [                         ] 11/34  インストール中   : glibc-headers-2.28-72.el [=                        ] 11/34  インストール中   : glibc-headers-2.28-72.el [==                       ] 11/34  インストール中   : glibc-headers-2.28-72.el [===                      ] 11/34  インストール中   : glibc-headers-2.28-72.el [====                     ] 11/34  インストール中   : glibc-headers-2.28-72.el [=====                    ] 11/34  インストール中   : glibc-headers-2.28-72.el [======                   ] 11/34  インストール中   : glibc-headers-2.28-72.el [=======                  ] 11/34  インストール中   : glibc-headers-2.28-72.el [========                 ] 11/34  インストール中   : glibc-headers-2.28-72.el [=========                ] 11/34  インストール中   : glibc-headers-2.28-72.el [==========               ] 11/34  インストール中   : glibc-headers-2.28-72.el [===========              ] 11/34  インストール中   : glibc-headers-2.28-72.el [============             ] 11/34  インストール中   : glibc-headers-2.28-72.el [=============            ] 11/34  インストール中   : glibc-headers-2.28-72.el [==============           ] 11/34  インストール中   : glibc-headers-2.28-72.el [===============          ] 11/34  インストール中   : glibc-headers-2.28-72.el [================         ] 11/34  インストール中   : glibc-headers-2.28-72.el [=================        ] 11/34  インストール中   : glibc-headers-2.28-72.el [==================       ] 11/34  インストール中   : glibc-headers-2.28-72.el [===================      ] 11/34  インストール中   : glibc-headers-2.28-72.el [====================     ] 11/34  インストール中   : glibc-headers-2.28-72.el [=====================    ] 11/34  インストール中   : glibc-headers-2.28-72.el [======================   ] 11/34  インストール中   : glibc-headers-2.28-72.el [=======================  ] 11/34  インストール中   : glibc-headers-2.28-72.el [======================== ] 11/34  インストール中   : glibc-headers-2.28-72.el8.x86_64                     11/34 
  インストール中   : libxcrypt-devel-4.1.1-4. [                         ] 12/34  インストール中   : libxcrypt-devel-4.1.1-4. [========                 ] 12/34  インストール中   : libxcrypt-devel-4.1.1-4. [=========                ] 12/34  インストール中   : libxcrypt-devel-4.1.1-4. [===============          ] 12/34  インストール中   : libxcrypt-devel-4.1.1-4. [=================        ] 12/34  インストール中   : libxcrypt-devel-4.1.1-4. [==================       ] 12/34  インストール中   : libxcrypt-devel-4.1.1-4. [====================     ] 12/34  インストール中   : libxcrypt-devel-4.1.1-4. [======================== ] 12/34  インストール中   : libxcrypt-devel-4.1.1-4.el8.x86_64                   12/34 
  インストール中   : glibc-devel-2.28-72.el8. [                         ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [=                        ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [==                       ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [===                      ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [====                     ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [=====                    ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [======                   ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [=======                  ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [========                 ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [=========                ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [==========               ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [===========              ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [============             ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [=============            ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [==============           ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [===============          ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [================         ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [=================        ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [==================       ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [===================      ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [====================     ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [=====================    ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [======================   ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [=======================  ] 13/34  インストール中   : glibc-devel-2.28-72.el8. [======================== ] 13/34  インストール中   : glibc-devel-2.28-72.el8.x86_64                       13/34 
  scriptletの実行中: glibc-devel-2.28-72.el8.x86_64                       13/34 
  インストール中   : binutils-2.30-58.el8_1.1 [                         ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [=                        ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [==                       ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [===                      ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [====                     ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [=====                    ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [======                   ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [=======                  ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [========                 ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [=========                ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [==========               ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [===========              ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [============             ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [=============            ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [==============           ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [===============          ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [================         ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [=================        ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [==================       ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [===================      ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [====================     ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [=====================    ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [======================   ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [=======================  ] 14/34  インストール中   : binutils-2.30-58.el8_1.1 [======================== ] 14/34  インストール中   : binutils-2.30-58.el8_1.1.x86_64                      14/34 
  scriptletの実行中: binutils-2.30-58.el8_1.1.x86_64                      14/34 
  インストール中   : rust-srpm-macros-5-2.el8 [                         ] 15/34  インストール中   : rust-srpm-macros-5-2.el8 [===                      ] 15/34  インストール中   : rust-srpm-macros-5-2.el8 [=====                    ] 15/34  インストール中   : rust-srpm-macros-5-2.el8 [=======================  ] 15/34  インストール中   : rust-srpm-macros-5-2.el8.noarch                      15/34 
  インストール中   : qt5-srpm-macros-5.11.1-2 [                         ] 16/34  インストール中   : qt5-srpm-macros-5.11.1-2 [====================     ] 16/34  インストール中   : qt5-srpm-macros-5.11.1-2.el8.noarch                  16/34 
  インストール中   : python3-wheel-wheel-1:0. [                         ] 17/34  インストール中   : python3-wheel-wheel-1:0. [=                        ] 17/34  インストール中   : python3-wheel-wheel-1:0. [======================== ] 17/34  インストール中   : python3-wheel-wheel-1:0.31.1-2.module_el8.1.0+245+   17/34 
  インストール中   : python3-rpm-generators-5 [                         ] 18/34  インストール中   : python3-rpm-generators-5 [=====                    ] 18/34  インストール中   : python3-rpm-generators-5 [===================      ] 18/34  インストール中   : python3-rpm-generators-5 [======================== ] 18/34  インストール中   : python3-rpm-generators-5-4.el8.noarch                18/34 
  インストール中   : platform-python-devel-3. [                         ] 19/34  インストール中   : platform-python-devel-3. [=                        ] 19/34  インストール中   : platform-python-devel-3. [==                       ] 19/34  インストール中   : platform-python-devel-3. [===                      ] 19/34  インストール中   : platform-python-devel-3. [====                     ] 19/34  インストール中   : platform-python-devel-3. [=====                    ] 19/34  インストール中   : platform-python-devel-3. [======                   ] 19/34  インストール中   : platform-python-devel-3. [=======                  ] 19/34  インストール中   : platform-python-devel-3. [========                 ] 19/34  インストール中   : platform-python-devel-3. [=========                ] 19/34  インストール中   : platform-python-devel-3. [==========               ] 19/34  インストール中   : platform-python-devel-3. [===========              ] 19/34  インストール中   : platform-python-devel-3. [============             ] 19/34  インストール中   : platform-python-devel-3. [=============            ] 19/34  インストール中   : platform-python-devel-3. [==============           ] 19/34  インストール中   : platform-python-devel-3. [===============          ] 19/34  インストール中   : platform-python-devel-3. [================         ] 19/34  インストール中   : platform-python-devel-3. [=================        ] 19/34  インストール中   : platform-python-devel-3. [==================       ] 19/34  インストール中   : platform-python-devel-3. [===================      ] 19/34  インストール中   : platform-python-devel-3. [====================     ] 19/34  インストール中   : platform-python-devel-3. [=====================    ] 19/34  インストール中   : platform-python-devel-3. [=======================  ] 19/34  インストール中   : platform-python-devel-3. [======================== ] 19/34  インストール中   : platform-python-devel-3.6.8-15.1.el8.x86_64          19/34 
  インストール中   : python36-devel-3.6.8-2.m [                         ] 20/34  インストール中   : python36-devel-3.6.8-2.m [=                        ] 20/34  インストール中   : python36-devel-3.6.8-2.m [==                       ] 20/34  インストール中   : python36-devel-3.6.8-2.m [======================== ] 20/34  インストール中   : python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f   20/34 
  scriptletの実行中: python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f   20/34 
  インストール中   : perl-srpm-macros-1-25.el [                         ] 21/34  インストール中   : perl-srpm-macros-1-25.el [======================   ] 21/34  インストール中   : perl-srpm-macros-1-25.el8.noarch                     21/34 
  インストール中   : openblas-srpm-macros-2-2 [                         ] 22/34  インストール中   : openblas-srpm-macros-2-2 [================         ] 22/34  インストール中   : openblas-srpm-macros-2-2.el8.noarch                  22/34 
  インストール中   : ocaml-srpm-macros-5-4.el [                         ] 23/34  インストール中   : ocaml-srpm-macros-5-4.el [=====================    ] 23/34  インストール中   : ocaml-srpm-macros-5-4.el8.noarch                     23/34 
  インストール中   : isl-0.16.1-6.el8.x86_64 [                          ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [=                         ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [==                        ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [===                       ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [====                      ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [=====                     ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [======                    ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [=======                   ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [========                  ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [=========                 ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [==========                ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [===========               ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [============              ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [=============             ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [==============            ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [===============           ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [================          ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [=================         ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [==================        ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [===================       ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [====================      ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [=====================     ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [======================    ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [=======================   ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [========================  ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64 [========================= ] 24/34  インストール中   : isl-0.16.1-6.el8.x86_64                              24/34 
  scriptletの実行中: isl-0.16.1-6.el8.x86_64                              24/34 
  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [                         ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [=                        ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [==                       ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [===                      ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [====                     ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [=====                    ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [======                   ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [=======                  ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [========                 ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [=========                ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [==========               ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [===========              ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [============             ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [=============            ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [==============           ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [===============          ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [================         ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [=================        ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [==================       ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [===================      ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [====================     ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [=====================    ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [======================   ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [=======================  ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64 [======================== ] 25/34  インストール中   : gcc-8.3.1-4.5.el8.x86_64                             25/34 
  scriptletの実行中: gcc-8.3.1-4.5.el8.x86_64                             25/34 
  インストール中   : annobin-8.78-1.el8.x86_6 [                         ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [=                        ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [===                      ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [=====                    ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [=======                  ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [=========                ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [===========              ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [=============            ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [==============           ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [================         ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [=================        ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [==================       ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [===================      ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [====================     ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [=====================    ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [=======================  ] 26/34  インストール中   : annobin-8.78-1.el8.x86_6 [======================== ] 26/34  インストール中   : annobin-8.78-1.el8.x86_64                            26/34 
  インストール中   : go-srpm-macros-2-16.el8. [                         ] 27/34  インストール中   : go-srpm-macros-2-16.el8. [===============          ] 27/34  インストール中   : go-srpm-macros-2-16.el8. [======================== ] 27/34  インストール中   : go-srpm-macros-2-16.el8.noarch                       27/34 
  インストール中   : ghc-srpm-macros-1.4.2-7. [                         ] 28/34  インストール中   : ghc-srpm-macros-1.4.2-7. [====================     ] 28/34  インストール中   : ghc-srpm-macros-1.4.2-7.el8.noarch                   28/34 
  インストール中   : efi-srpm-macros-3-2.el8. [                         ] 29/34  インストール中   : efi-srpm-macros-3-2.el8. [==                       ] 29/34  インストール中   : efi-srpm-macros-3-2.el8. [=======================  ] 29/34  インストール中   : efi-srpm-macros-3-2.el8. [======================== ] 29/34  インストール中   : efi-srpm-macros-3-2.el8.noarch                       29/34 
  インストール中   : dwz-0.12-9.el8.x86_64 [                            ] 30/34  インストール中   : dwz-0.12-9.el8.x86_64 [===                         ] 30/34  インストール中   : dwz-0.12-9.el8.x86_64 [=======                     ] 30/34  インストール中   : dwz-0.12-9.el8.x86_64 [===========                 ] 30/34  インストール中   : dwz-0.12-9.el8.x86_64 [===============             ] 30/34  インストール中   : dwz-0.12-9.el8.x86_64 [===================         ] 30/34  インストール中   : dwz-0.12-9.el8.x86_64 [====================        ] 30/34  インストール中   : dwz-0.12-9.el8.x86_64 [======================      ] 30/34  インストール中   : dwz-0.12-9.el8.x86_64 [=======================     ] 30/34  インストール中   : dwz-0.12-9.el8.x86_64 [=========================== ] 30/34  インストール中   : dwz-0.12-9.el8.x86_64                                30/34 
  インストール中   : redhat-rpm-config-120-1. [                         ] 31/34  インストール中   : redhat-rpm-config-120-1. [==                       ] 31/34  インストール中   : redhat-rpm-config-120-1. [===                      ] 31/34  インストール中   : redhat-rpm-config-120-1. [====                     ] 31/34  インストール中   : redhat-rpm-config-120-1. [=========                ] 31/34  インストール中   : redhat-rpm-config-120-1. [===========              ] 31/34  インストール中   : redhat-rpm-config-120-1. [=================        ] 31/34  インストール中   : redhat-rpm-config-120-1. [==================       ] 31/34  インストール中   : redhat-rpm-config-120-1. [====================     ] 31/34  インストール中   : redhat-rpm-config-120-1. [=====================    ] 31/34  インストール中   : redhat-rpm-config-120-1. [======================== ] 31/34  インストール中   : redhat-rpm-config-120-1.el8.noarch                   31/34 
  インストール中   : python3-virtualenv-15.1. [                         ] 32/34  インストール中   : python3-virtualenv-15.1. [==                       ] 32/34  インストール中   : python3-virtualenv-15.1. [=====                    ] 32/34  インストール中   : python3-virtualenv-15.1. [========                 ] 32/34  インストール中   : python3-virtualenv-15.1. [===========              ] 32/34  インストール中   : python3-virtualenv-15.1. [============             ] 32/34  インストール中   : python3-virtualenv-15.1. [==============           ] 32/34  インストール中   : python3-virtualenv-15.1. [=================        ] 32/34  インストール中   : python3-virtualenv-15.1. [====================     ] 32/34  インストール中   : python3-virtualenv-15.1. [======================   ] 32/34  インストール中   : python3-virtualenv-15.1. [=======================  ] 32/34  インストール中   : python3-virtualenv-15.1. [======================== ] 32/34  インストール中   : python3-virtualenv-15.1.0-19.module_el8.1.0+245+c3   32/34 
  scriptletの実行中: python3-virtualenv-15.1.0-19.module_el8.1.0+245+c3   32/34 
  インストール中   : libffi-devel-3.1-21.el8. [                         ] 33/34  インストール中   : libffi-devel-3.1-21.el8. [===========              ] 33/34  インストール中   : libffi-devel-3.1-21.el8. [===============          ] 33/34  インストール中   : libffi-devel-3.1-21.el8. [================         ] 33/34  インストール中   : libffi-devel-3.1-21.el8. [======================   ] 33/34  インストール中   : libffi-devel-3.1-21.el8. [=======================  ] 33/34  インストール中   : libffi-devel-3.1-21.el8. [======================== ] 33/34  インストール中   : libffi-devel-3.1-21.el8.x86_64                       33/34 
  scriptletの実行中: libffi-devel-3.1-21.el8.x86_64                       33/34 
  インストール中   : augeas-libs-1.12.0-2.el8 [                         ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [=                        ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [==                       ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [===                      ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [====                     ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [=====                    ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [======                   ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [=======                  ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [========                 ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [=========                ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [==========               ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [===========              ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [============             ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [=============            ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [==============           ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [===============          ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [================         ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [=================        ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [==================       ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [===================      ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [====================     ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [=====================    ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [======================   ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [=======================  ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8 [======================== ] 34/34  インストール中   : augeas-libs-1.12.0-2.el8.x86_64                      34/34 
  scriptletの実行中: augeas-libs-1.12.0-2.el8.x86_64                      34/34 
  検証             : annobin-8.78-1.el8.x86_64                             1/34 
  検証             : cpp-8.3.1-4.5.el8.x86_64                              2/34 
  検証             : dwz-0.12-9.el8.x86_64                                 3/34 
  検証             : efi-srpm-macros-3-2.el8.noarch                        4/34 
  検証             : gcc-8.3.1-4.5.el8.x86_64                              5/34 
  検証             : ghc-srpm-macros-1.4.2-7.el8.noarch                    6/34 
  検証             : go-srpm-macros-2-16.el8.noarch                        7/34 
  検証             : isl-0.16.1-6.el8.x86_64                               8/34 
  検証             : libmpc-1.0.2-9.el8.x86_64                             9/34 
  検証             : ocaml-srpm-macros-5-4.el8.noarch                     10/34 
  検証             : openblas-srpm-macros-2-2.el8.noarch                  11/34 
  検証             : perl-srpm-macros-1-25.el8.noarch                     12/34 
  検証             : platform-python-devel-3.6.8-15.1.el8.x86_64          13/34 
  検証             : python-rpm-macros-3-37.el8.noarch                    14/34 
  検証             : python-srpm-macros-3-37.el8.noarch                   15/34 
  検証             : python3-pip-9.0.3-15.el8.noarch                      16/34 
  検証             : python3-rpm-generators-5-4.el8.noarch                17/34 
  検証             : python3-rpm-macros-3-37.el8.noarch                   18/34 
  検証             : python3-virtualenv-15.1.0-19.module_el8.1.0+245+c3   19/34 
  検証             : python3-wheel-wheel-1:0.31.1-2.module_el8.1.0+245+   20/34 
  検証             : python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_6   21/34 
  検証             : python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f   22/34 
  検証             : qt5-srpm-macros-5.11.1-2.el8.noarch                  23/34 
  検証             : redhat-rpm-config-120-1.el8.noarch                   24/34 
  検証             : rust-srpm-macros-5-2.el8.noarch                      25/34 
  検証             : augeas-libs-1.12.0-2.el8.x86_64                      26/34 
  検証             : binutils-2.30-58.el8_1.1.x86_64                      27/34 
  検証             : glibc-devel-2.28-72.el8.x86_64                       28/34 
  検証             : glibc-headers-2.28-72.el8.x86_64                     29/34 
  検証             : kernel-headers-4.18.0-147.5.1.el8_1.x86_64           30/34 
  検証             : libffi-devel-3.1-21.el8.x86_64                       31/34 
  検証             : libxcrypt-devel-4.1.1-4.el8.x86_64                   32/34 
  検証             : python3-setuptools-39.2.0-5.el8.noarch               33/34 
  検証             : zip-3.0-23.el8.x86_64                                34/34 

インストール済み:
  gcc-8.3.1-4.5.el8.x86_64                                                      
  python3-virtualenv-15.1.0-19.module_el8.1.0+245+c39af44f.noarch               
  python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64                           
  python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64                     
  redhat-rpm-config-120-1.el8.noarch                                            
  augeas-libs-1.12.0-2.el8.x86_64                                               
  libffi-devel-3.1-21.el8.x86_64                                                
  annobin-8.78-1.el8.x86_64                                                     
  cpp-8.3.1-4.5.el8.x86_64                                                      
  dwz-0.12-9.el8.x86_64                                                         
  efi-srpm-macros-3-2.el8.noarch                                                
  ghc-srpm-macros-1.4.2-7.el8.noarch                                            
  go-srpm-macros-2-16.el8.noarch                                                
  isl-0.16.1-6.el8.x86_64                                                       
  libmpc-1.0.2-9.el8.x86_64                                                     
  ocaml-srpm-macros-5-4.el8.noarch                                              
  openblas-srpm-macros-2-2.el8.noarch                                           
  perl-srpm-macros-1-25.el8.noarch                                              
  platform-python-devel-3.6.8-15.1.el8.x86_64                                   
  python-rpm-macros-3-37.el8.noarch                                             
  python-srpm-macros-3-37.el8.noarch                                            
  python3-pip-9.0.3-15.el8.noarch                                               
  python3-rpm-generators-5-4.el8.noarch                                         
  python3-rpm-macros-3-37.el8.noarch                                            
  python3-wheel-wheel-1:0.31.1-2.module_el8.1.0+245+c39af44f.noarch             
  qt5-srpm-macros-5.11.1-2.el8.noarch                                           
  rust-srpm-macros-5-2.el8.noarch                                               
  binutils-2.30-58.el8_1.1.x86_64                                               
  glibc-devel-2.28-72.el8.x86_64                                                
  glibc-headers-2.28-72.el8.x86_64                                              
  kernel-headers-4.18.0-147.5.1.el8_1.x86_64                                    
  libxcrypt-devel-4.1.1-4.el8.x86_64                                            
  python3-setuptools-39.2.0-5.el8.noarch                                        
  zip-3.0-23.el8.x86_64                                                         

完了しました!
Creating virtual environment...
Installing Python packages...
Installation succeeded.

ま、いいか

/home/www/wordpress does not exist or is not a directory
適当なインスト先はダメか。やりなおし。

Requested name http://{http付きのURL} appears to be a URL, not a FQDN. Try again without the leading “http://”.
はい http://は取ってやりなおし。

Plugins selected: Authenticator webroot, Installer None
Enter email address (used for urgent renewal and security notices) (Enter ‘c’ to
cancel):
Invalid email address: .{メアドを入れる}

Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
(A)gree/(C)ancel: {aしかないだろう}

Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let’s Encrypt project and the non-profit
organization that develops Certbot? We’d like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.

(Y)es/(N)o: {メアドはシェアしたくないので、n}
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for ssiscirine.moe.hm
Using the webroot path {インスト先} for all unmatched domains.
Waiting for verification…
Cleaning up challenges

IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at:
    {それなりの長いパス}/fullchain.pem
    Your key file has been saved at:
    {それなりの長いパス} /privkey.pem
    Your cert will expire on 2020-05-08. To obtain a new or tweaked
    version of this certificate in the future, simply run certbot-auto
    again. To non-interactively renew all of your certificates, run
    “certbot-auto renew”
  • Your account credentials have been saved in your Certbot
    configuration directory at /etc/letsencrypt. You should make a
    secure backup of this folder now. This configuration directory will
    also contain certificates and private keys obtained by Certbot so
    making regular backups of this folder is ideal.
  • If you like Certbot, please consider supporting our work by: Donating to ISRG / Let’s Encrypt: https://letsencrypt.org/donate
    Donating to EFF: https://eff.org/donate-le

と云うことなので適当な間隔
certbot-auto renew  すればいいらしい。

あとはVirtualHostの設定

これも色々あるようだ。

https://www.rem-system.com/centos8-ssl-certbot/
https://qiita.com/takayukioda/items/70572e1da228795e0d4b
https://qiita.com/gotohiro55/items/7daa988db23a5a8355c1
https://qiita.com/bageljp@github/items/6b9876b7571852284ead ○


今は1つしかドメインを登録できない状態なので、1ファイルにまとめた。

Listen 443 https
SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
SSLSessionCache         shmcb:/run/httpd/sslcache(512000)
SSLSessionCacheTimeout  300
SSLRandomSeed startup file:/dev/urandom  256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin

<VirtualHost *:443>
    ServerName      {WWW上のサーバ名}
    DocumentRoot    {WordPressのインスト先パス}
    ErrorLog logs/ssl_error_log
    LogLevel warn
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile       {それなりの長いパス}/fullchain.pem
    SSLCertificateKeyFile    {それなりの長いパス}/privkey.pem
    <Files ~ "\.(cgi|shtml|phtml|php3?)$">
        SSLOptions +StdEnvVars
    </Files>
    <Location "/wp-login.php" >
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 127.0.0.1
       Require ip ::1
       Require ip 192.168.0.0/24
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
     Allow from 192.168.0.0/24
   </IfModule>
    </Location>
    BrowserMatch "MSIE [2-5]" \
             nokeepalive ssl-unclean-shutdown \
             downgrade-1.0 force-response-1.0
    CustomLog logs/ssl_access_log ltsv_ssl
</VirtualHost>

しかし ログにltsv_sslが連打される 調べてみると
CustomLog logs/ssl_access_log ltsv_ssl の  ltsv_ssl はhttpd.confに記載したフォーマット名らしいがそんなものは書いた覚えがない。

https://qiita.com/hit/items/3c4276db1d4427fcee7a を参考にhttpd.confにapache_ltsvを追加し先のltsv_sslをapache_ltsvに変えてみる

httpd -t

AH00526: Syntax error on line 223 of /etc/httpd/conf/httpd.conf:
Unrecognized LogFormat directive %&

よくよく見ると 
¥t はタブ
%&gt; も %> にしないといけない。

それにしてもログを読んでいると結構ロボットが飛び込んでくる。

2年ぶりの再開なのに。

ロボットはしつこい

apacheは設定済みなのでファイアーウォールを設定
firewall-cmd –add-service http –permanent
firewall-cmd –add-port=80/tcp –permanent
の様に
firewall-cmd –add-service https –permanent
firewall-cmd –add-port=443/tcp –permanent
firewall-cmd –reload
firewall-cmd –list-all

ps.2020/3/3 更新してみた

# /usr/local/bin/certbot-auto renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/{WWW上のサーバ名}.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not yet due for renewal

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The following certs are not due for renewal yet:
  /etc/letsencrypt/live/{WWW上のサーバ名}/fullchain.pem expires on 2020-05-08 (skipped)
No renewals were attempted.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

次は5月8日でいいらしい。

ps.5/1

# /usr/local/bin/certbot-auto renew
Upgrading certbot-auto 1.2.0 to 1.3.0...
Replacing certbot-auto...
Creating virtual environment...
Installing Python packages...
Installation succeeded.
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/ssiscirine.moe.hm.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for ssiscirine.moe.hm
Using the webroot path /***/***/***s for all unmatched domains.
Waiting for verification...
Cleaning up challenges

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new certificate deployed without reload, fullchain is
/etc/letsencrypt/live/ssiscirine.moe.hm/fullchain.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Congratulations, all renewals succeeded. The following certs have been renewed:
  /etc/letsencrypt/live/ssiscirine.moe.hm/fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#

ps.7.31

証明書の期限切れ

忘れてた。

証明書の期限切れ

なるほど、しかし、セキュリティを正しい状態にするには

保護を反故する法則が発動する。

除外設定ってドコだ?
除外設定に追加
# /usr/local/bin/certbot-auto renew
Upgrading certbot-auto 1.3.0 to 1.6.0...
Replacing certbot-auto...
Creating virtual environment...
Installing Python packages...
Installation succeeded.
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/ssiscirine.moe.hm.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for ssiscirine.moe.hm
Using the webroot path /***/***/***s for all unmatched domains.
Waiting for verification...
Cleaning up challenges

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new certificate deployed without reload, fullchain is
/etc/letsencrypt/live/ssiscirine.moe.hm/fullchain.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Congratulations, all renewals succeeded. The following certs have been renewed:
  /etc/letsencrypt/live/ssiscirine.moe.hm/fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
除外設定から削除

しかし、再びブロックされたので、仕切り直し。

systemctl restart httpd

機嫌が直ったようだ。

しかしFireFoxは混在コンテンツと判定してる。

ページのHTMLのソースを見るとヘッダー画像が http:// だったので修正。



[WordPress]データ移行

記事自体はインポートに成功するも

エラー連発

原因

ユーザが未登録?インポートできてるっぽい。

プラグインが入っていない。でも表示だけの問題な気もする

調査しなおしかな

今できていないこと

1.ログインページのURLの変更がバグる

SiteGuardのログインページ変更をONにするとlogin_xxxxxxとかに変わるんだけど、Not FoundになってしまいログインできなくなるのでOFFる。
仕方が無いのでapacheの設定で外部アクセスをはじく。
403を404にしたいな。うざいから。

サーバがLAN内だからIPアドレスで叩けばいいんだろうけど。

2.SSL証明書が1つしか入れられない。

サーバの名前とSSLのCNAMEが一致してないエラーが出るので、
この分ではマルチドメイン化できない。

3.LANからはhttpで見るとタイムアウトする。

4.wp-cron.phpが動かない

WP-Controlプラグインを入れて、プラグインページからWP-ControlのCrom sステータスのリンクを押すと、

サイトの WP-Cron システムへの呼び出しが頻発する問題がありました。 つまり、サイトの WP-Cron イベントが機能しない可能性があります。 問題:
cURL error 28: Connection timed out after 301 milliseconds

/wp-admin/includes/file.php
function download_url( $url, $timeout = 300

function download_url( $url, $timeout = 3000
するといいかもという記事を見つけて試したが、
301が3001になっただけだった。ソースを戻しても3001のまま。
WordPressの設定のURLがhttp://のままだったので https://に更新。
Simple SSLプラグインを試したがエラった。

Really Simple SSLはRevert httpして停止。

SSL Insecure Content Fixerをインストして標準設定で
設定のSSL Insecure Content Fixer テストツールは通った。

5.リンク

3.5以降はリンク機能が非表示になったので、Link Managerプラグインを入れる。

phpmyadminでwp_linkテーブルを エクスポート &インポート。
link_categoryフィールドが無いと出たのでBIGINT(20) default (0)で追加して再インポート。




top