Apache httpd インストール
Ubuntu では、Apache httpd は apache2 パッケージになってる。
$ sudo apt install apache2
code:console
$ sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-12-15 00:45:34 UTC; 3h 28min ago
Main PID: 40403 (apache2)
Tasks: 55 (limit: 2324)
Memory: 5.9M
CPU: 618ms
CGroup: /system.slice/apache2.service
├─40403 /usr/sbin/apache2 -k start
├─40405 /usr/sbin/apache2 -k start
└─40406 /usr/sbin/apache2 -k start
Dec 15 00:45:34 i-13100000450284 systemd1: Starting The Apache HTTP Server... Dec 15 00:45:34 i-13100000450284 systemd1: Started The Apache HTTP Server. 何もしていなければ、この状態でデフォルトページが見られるようになっている。
設定ファイルは /etc/apache2 にある。