CentOS 아파치 설치

Jmnote (토론 | 기여)님의 2012년 7월 10일 (화) 10:17 판 (새 문서: {{테스트|CentOS 6.0}} ;httpd 설치 ;아파치 설치 ==설치 확인== *CentOS를 기본 설치했다면 httpd이 설치되어 있다. *CentOS를 최소 설치(minimal installati...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
httpd 설치
아파치 설치

1 설치 확인

  • CentOS를 기본 설치했다면 httpd이 설치되어 있다.
  • CentOS를 최소 설치(minimal installation)했다면 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)를 기본 설치했는데 아파치가 이미 설치되어 있다.
  • yum info httpd를 실행하여 설치되었는지 확인한다.
[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
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-15.el6.centos set to be updated
--> Processing Dependency: httpd-tools = 2.2.15-15.el6.centos for package: httpd-2.2.15-15.el6.centos.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-15.el6.centos.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-15.el6.centos.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-15.el6.centos.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-15.el6.centos.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-3.el6_1.2 set to be updated
---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 set to be updated
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 set to be updated
---> Package httpd-tools.x86_64 0:2.2.15-15.el6.centos set to be updated
---> Package mailcap.noarch 0:2.1.31-2.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================
 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)

Total download size: 1.1 M
Installed size: 3.6 M
Downloading Packages:
(1/6): apr-1.3.9-3.el6_1.2.x86_64.rpm                                                | 123 kB     00:00     
(2/6): apr-util-1.3.9-3.el6_0.1.x86_64.rpm                                           |  87 kB     00:00     
(3/6): apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm                                      |  15 kB     00:00     
(4/6): httpd-2.2.15-15.el6.centos.x86_64.rpm                                         | 809 kB     00:00     
(5/6): httpd-tools-2.2.15-15.el6.centos.x86_64.rpm                                   |  70 kB     00:00     
(6/6): mailcap-2.1.31-2.el6.noarch.rpm                                               |  27 kB     00:00     
------------------------------------------------------------------------------------------------------------
Total                                                                       201 kB/s | 1.1 MB     00:05     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing     : apr-1.3.9-3.el6_1.2.x86_64                                                           1/6 
  Installing     : apr-util-1.3.9-3.el6_0.1.x86_64                                                      2/6 
  Installing     : httpd-tools-2.2.15-15.el6.centos.x86_64                                              3/6 
  Installing     : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                                                 4/6 
  Installing     : mailcap-2.1.31-2.el6.noarch                                                          5/6 
  Installing     : httpd-2.2.15-15.el6.centos.x86_64                                                    6/6 

Installed:
  httpd.x86_64 0:2.2.15-15.el6.centos                                                                       

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 }}