ubuntu apache2のバージョンを確認する

ubuntu apache2のバージョンを確認する

ubuntuのapache2のバージョンを確認する手順を記述してます。

環境

  • OS Ubuntu 20.10
  • apache2 Apache/2.4.46 (Ubuntu)

バージョン確認

以下のコマンドでバージョンを確認できます。

apachectl -v

<出力結果>
Server version: Apache/2.4.46 (Ubuntu)
Server built:   2020-08-25T12:13:38

以下では確認できません。

httpd -v

<出力結果>
コマンド 'httpd' が見つかりません。もしかして:
  command 'http' from snap http (2.3.0)
  command 'https' from deb httpie (2.2.0-2)
  command 'http' from deb httpie (2.2.0-2)
  command 'xttpd' from deb xtide (2.15.2-1)
他のバージョンについては 'snap info <snapname>' を確認してください。

centos8やwindowsでは「httpd -v」で確認可能です。

centos8

httpd -v

<出力結果>
Server version: Apache/2.4.37 (centos)
Server built:   Jul 31 2020 20:44:41

windows

httpd -v

<出力結果>
Server version: Apache/2.4.43 (Win64)
Apache Lounge VS16 Server built:   Mar 31 2020 16:01:02