[CenOS 6.8] Apache 2.2.15 설치하기 > 기술자료 | 해피정닷컴

[CenOS 6.8] Apache 2.2.15 설치하기 > 기술자료

본문 바로가기

사이트 내 전체검색

[CenOS 6.8] Apache 2.2.15 설치하기 > 기술자료

Linux [CenOS 6.8] Apache 2.2.15 설치하기

페이지 정보


본문

1. 아파치 설치 확인
CentOS를 기본 설치했다면 httpd이 설치되어 있습니다.
CentOS를 최소 설치(minimal installation)했다면 httpd이 설치되어 있지 않습니다.
[root@localhost /]# rpm -qa httpd

[root@localhost /]# ps -df | grep httpd
root     11479  9879  0 22:05 pts/0    00:00:00 grep httpd
[root@localhost /]# /etc/rc.d/init.d/httpd stop
-bash: /etc/rc.d/init.d/httpd: No such file or directory
[root@localhost /]# yum remove -q httpd
No Match for argument: httpd
[root@localhost /]# find / -name apachectl
※ usr/local/apache/bin/apachectl 설치된 경우
[root@localhost /]# rm -rf /usr/local/apache


2. 설치 가능한 아파치 종류
[root@localhost /]# yum list 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
Available Packages
httpd.x86_64                   2.2.15-56.el6.centos.3                    updates


3. yum 으로 아파치 설치
[root@localhost src]# yum install httpd
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-56.el6.centos.3 will be installed
--> Processing Dependency: httpd-tools = 2.2.15-56.el6.centos.3 for package: httpd-2.2.15-56.el6.centos.3.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-56.el6.centos.3.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-56.el6.centos.3.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-56.el6.centos.3.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-56.el6.centos.3.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed
---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package httpd-tools.x86_64 0:2.2.15-56.el6.centos.3 will be installed
---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch        Version                      Repository    Size
================================================================================
Installing:
 httpd              x86_64      2.2.15-56.el6.centos.3       updates      834 k
Installing for dependencies:
 apr                x86_64      1.3.9-5.el6_2                base         123 k
 apr-util           x86_64      1.3.9-3.el6_0.1              base          87 k
 apr-util-ldap      x86_64      1.3.9-3.el6_0.1              base          15 k
 httpd-tools        x86_64      2.2.15-56.el6.centos.3       updates       79 k
 mailcap            noarch      2.1.31-2.el6                 base          27 k

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

Total download size: 1.1 M
Installed size: 3.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): apr-1.3.9-5.el6_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-56.el6.centos.3.x86_64.rpm           | 834 kB     00:00     
(5/6): httpd-tools-2.2.15-56.el6.centos.3.x86_64.rpm     |  79 kB     00:00     
(6/6): mailcap-2.1.31-2.el6.noarch.rpm                   |  27 kB     00:00     
--------------------------------------------------------------------------------
Total                                           2.2 MB/s | 1.1 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : apr-1.3.9-5.el6_2.x86_64                                     1/6 
  Installing : apr-util-1.3.9-3.el6_0.1.x86_64                              2/6 
  Installing : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                         3/6 
  Installing : httpd-tools-2.2.15-56.el6.centos.3.x86_64                    4/6 
  Installing : mailcap-2.1.31-2.el6.noarch                                  5/6 
  Installing : httpd-2.2.15-56.el6.centos.3.x86_64                          6/6 
  Verifying  : httpd-2.2.15-56.el6.centos.3.x86_64                          1/6 
  Verifying  : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                         2/6 
  Verifying  : apr-1.3.9-5.el6_2.x86_64                                     3/6 
  Verifying  : httpd-tools-2.2.15-56.el6.centos.3.x86_64                    4/6 
  Verifying  : mailcap-2.1.31-2.el6.noarch                                  5/6 
  Verifying  : apr-util-1.3.9-3.el6_0.1.x86_64                              6/6 

Installed:
  httpd.x86_64 0:2.2.15-56.el6.centos.3                                         

Dependency Installed:
  apr.x86_64 0:1.3.9-5.el6_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-56.el6.centos.3                                   
  mailcap.noarch 0:2.1.31-2.el6                                                 

Complete!


4. 아파치 확인
[root@localhost /]# rpm -qa httpd
httpd-2.2.15-56.el6.centos.3.x86_64


5. 아파치 실행
[root@localhost /]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
                                                           [  OK  ]


6. 재부팅시 자동 시작
[root@localhost /]# chkconfig --list httpd
httpd              0:off    1:off    2:off    3:off    4:off    5:off    6:off
[root@localhost /]# chkconfig httpd on
[root@localhost /]# chkconfig --list httpd
httpd              0:off    1:off    2:on    3:on    4:on    5:on    6:off


7. 튜닝 하기


참고자료
http://zetawiki.com/wiki/CentOS_아파치_설치 

댓글목록

등록된 댓글이 없습니다.


Total 124건 3 페이지
  • RSS
기술자료 목록
84
Linux   57373  2017-02-24 19:55 ~ 2019-12-24 00:35  
열람
Linux   16224  2017-02-24 13:32  
82
Linux   16210  2017-02-23 19:22 ~ 2018-07-08 02:22  
81
Linux   11170  2017-02-22 23:57  
80
Linux   12892  2017-02-22 23:43 ~ 2019-01-21 06:47  
79
Linux   14382  2015-03-30 15:42  
78
Linux   14506  2012-12-29 10:47  
77
Linux   16456  2012-12-28 22:42  
76
Linux   19426  2012-12-28 21:49  
75
Linux   22772  2012-12-28 13:40  
74
Linux   15083  2012-12-28 12:40  
73
Linux   14964  2012-12-28 12:34  
72
Linux   15309  2012-12-28 12:29  
71
Linux   14208  2012-12-11 22:45 ~ 2012-12-11 00:00  
70
Linux   21280  2012-12-11 22:16  
69
Linux   17348  2012-12-11 22:10  
68
Linux   17600  2012-05-23 13:05  
67
Linux   22095  2012-05-22 23:28 ~ 2012-05-23 00:00  
66
Linux   18288  2012-03-02 18:38  
65
Linux   15282  2010-12-16 23:55 ~ 2018-01-09 14:09  

검색

해피정닷컴 정보

회사소개 회사연혁 협력사 오시는길 서비스 이용약관 개인정보 처리방침

회사명: 해피정닷컴   대표: 정창용   전화: 070-7600-3500   팩스: 042-670-8272
주소: (34368) 대전시 대덕구 대화로 160 대전산업용재유통단지 1동 222호
개인정보보호책임자: 정창용   사업자번호: 119-05-36414
통신판매업신고: 제2024-대전대덕-0405호 [사업자등록확인]  
Copyright 2001~2024 해피정닷컴. All Rights Reserved.