[root@example ec2-user]# yum install httpd
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.41-1.amzn2.0.1 will be installed
--> Processing Dependency: httpd-tools = 2.4.41-1.amzn2.0.1 for package: httpd-2.4.41-1.amzn2.0.1.x86_64
--> Processing Dependency: httpd-filesystem = 2.4.41-1.amzn2.0.1 for package: httpd-2.4.41-1.amzn2.0.1.x86_64
--> Processing Dependency: system-logos-httpd for package: httpd-2.4.41-1.amzn2.0.1.x86_64
--> Processing Dependency: mod_http2 for package: httpd-2.4.41-1.amzn2.0.1.x86_64
--> Processing Dependency: httpd-filesystem for package: httpd-2.4.41-1.amzn2.0.1.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.41-1.amzn2.0.1.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.41-1.amzn2.0.1.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.41-1.amzn2.0.1.x86_64
--> Running transaction check
(中略)
Installed:
httpd.x86_64 0:2.4.41-1.amzn2.0.1
Dependency Installed:
apr.x86_64 0:1.6.3-5.amzn2.0.2 apr-util.x86_64 0:1.6.1-5.amzn2.0.2 apr-util-bdb.x86_64 0:1.6.1-5.amzn2.0.2
generic-logos-httpd.noarch 0:18.0.0-4.amzn2 httpd-filesystem.noarch 0:2.4.41-1.amzn2.0.1 httpd-tools.x86_64 0:2.4.41-1.amzn2.0.1
mailcap.noarch 0:2.1.41-2.amzn2 mod_http2.x86_64 0:1.15.3-2.amzn2
Complete!
[root@example ec2-user]# systemctl start httpd
[root@example ec2-user]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2020-02-18 13:31:16 UTC; 1s ago
Docs: man:httpd.service(8)
Main PID: 2807 (httpd)
Status: "Processing requests..."
CGroup: /system.slice/httpd.service
├─2807 /usr/sbin/httpd -DFOREGROUND
├─2808 /usr/sbin/httpd -DFOREGROUND
├─2809 /usr/sbin/httpd -DFOREGROUND
├─2810 /usr/sbin/httpd -DFOREGROUND
├─2811 /usr/sbin/httpd -DFOREGROUND
└─2812 /usr/sbin/httpd -DFOREGROUND
Feb 18 13:31:16 ip-**-**-**-**.ap-east-1.compute.internal systemd[1]: Starting The Apache HTTP Server...
Feb 18 13:31:16 ip-**-**-**-**.ap-east-1.compute.internal systemd[1]: Started The Apache HTTP Server.
[root@example conf.d]#