CentOS 아파치 설치

Jmnote (토론 | 기여)님의 2012년 7월 10일 (화) 10:19 판 (→‎yum으로 설치)
httpd 설치
아파치 설치

1 설치 확인

  • CentOS를 기본 설치했다면 httpd이 설치되어 있다.
  • CentOS를 최소 설치(minimal installation)했다면 httpd이 설치되어 있지 않다.
명령어
rpm -qa | grep httpd
yum info httpd

1.1 실행예시(미설치)

  • CentOS 6.0 최소 설치한 예
[root@jmnote ~]# rpm -qa | grep httpd
[root@jmnote ~]# yum info httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Daum                                                                                 | 3.7 kB     00:00     
Available Packages
Name       : httpd
Arch       : x86_64
Version    : 2.2.15
Release    : 15.el6.centos
Size       : 809 k
Repo       : Daum
Summary    : Apache HTTP Server
URL        : http://httpd.apache.org/
License    : ASL 2.0
Description: The Apache HTTP Server is a powerful, efficient, and extensible
           : web server.
→ rpm, yum 명령어로 설치되지 않음 확인.

1.2 실행예시(기설치)

  • CentOS release 5.7 (Final)를 기본 설치했는데 아파치가 이미 설치되어 있다.
[root@localhost ~]# yum info httpd 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Installed Packages
Name       : httpd
Arch       : x86_64
Version    : 2.2.3
Release    : 53.el5.centos
Size       : 3.3 M
Repo       : installed
Summary    : Apache HTTP Server
URL        : http://httpd.apache.org/
License    : Apache Software License
Description: The Apache HTTP Server is a powerful, efficient, and extensible
           : web server.

Available Packages
Name       : httpd
Arch       : x86_64
Version    : 2.2.3
Release    : 53.el5.centos.3
Size       : 1.2 M
Repo       : updates
Summary    : Apache HTTP Server
URL        : http://httpd.apache.org/
License    : Apache Software License
Description: The Apache HTTP Server is a powerful, efficient, and extensible
           : web server.
→ httpd 2.2.3 릴리즈 53.el5.centos가 설치되어 있다. 원한다면 릴리즈 53.el5.centos.3으로 업데이트할 수 있다.

2 yum으로 설치

[root@jmnote ~]# yum install httpd -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
... (생략)

============================================================================================================
 Package                    Arch                Version                             Repository         Size
============================================================================================================
Installing:
 httpd                      x86_64              2.2.15-15.el6.centos                Daum              809 k
Installing for dependencies:
 apr                        x86_64              1.3.9-3.el6_1.2                     Daum              123 k
 apr-util                   x86_64              1.3.9-3.el6_0.1                     Daum               87 k
 apr-util-ldap              x86_64              1.3.9-3.el6_0.1                     Daum               15 k
 httpd-tools                x86_64              2.2.15-15.el6.centos                Daum               70 k
 mailcap                    noarch              2.1.31-2.el6                        Daum               27 k

Transaction Summary
============================================================================================================
Install       6 Package(s)
Upgrade       0 Package(s)

... (생략)

Dependency Installed:
  apr.x86_64 0:1.3.9-3.el6_1.2                        apr-util.x86_64 0:1.3.9-3.el6_0.1                     
  apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1              httpd-tools.x86_64 0:2.2.15-15.el6.centos             
  mailcap.noarch 0:2.1.31-2.el6                      

Complete!
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}