创建Amazon CentOS7 AMI的EC2以后发现,为了安装Apache执行了yum命令。
从以下的结果来看,已经安装好了Apache2.4.6了。
# yum install httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: www.ftp.ne.jp
* epel: ftp.jaist.ac.jp
* extras: www.ftp.ne.jp
* rpmforge: ftp.riken.jp
* updates: www.ftp.ne.jp
Package httpd-2.4.6-18.el7.centos.x86_64 already installed and latest version
Nothing to do
配置文件也在/etc/httpd目录下。
# ll /etc/httpd
total 4
drwxr-xr-x. 2 root root 35 Dec 31 16:16 conf
drwxr-xr-x. 2 root root 93 Dec 31 16:48 conf.d
drwxr-xr-x. 2 root root 4096 Dec 31 16:48 conf.modules.d
lrwxrwxrwx. 1 root root 19 Dec 31 16:16 logs -> ../../var/log/httpd
lrwxrwxrwx. 1 root root 29 Dec 31 16:16 modules -> ../../usr/lib64/httpd/modules
lrwxrwxrwx. 1 root root 10 Dec 31 16:16 run -> /run/httpd