"아파치 웹서버"의 두 판 사이의 차이

27번째 줄: 27번째 줄:
</source>
</source>
:→ rpm, yum 명령어로 설치되지 않음 확인.
:→ rpm, yum 명령어로 설치되지 않음 확인.
==yum으로 설치==
*[[CentOS-Base.repo]] 파일을 Daum 저장소로 설정


==CentOS 5.7 기본 설치==
==CentOS 5.7 기본 설치==

2012년 7월 10일 (화) 10:11 판

1 CentOS 6.0 최소 설치

최소 설치하면 httpd이 설치되지 않는다.

1.1 설치 확인

[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 명령어로 설치되지 않음 확인.

2 yum으로 설치

3 CentOS 5.7 기본 설치

3.1 설치 확인

  • 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으로 업데이트할 수 있다.

4 설치 위치

[root@localhost ~]# service httpd status
httpd is stopped
[root@localhost ~]# whereis httpd
httpd: /usr/sbin/httpd.worker /usr/sbin/httpd.event /usr/sbin/httpd /etc/httpd /usr/share/man/man8/httpd.8.gz
[root@localhost ~]# which httpd
/usr/sbin/httpd
  • httpd 파일은 /usr/sbin에 있다.
[root@localhost ~]# /usr/sbin/httpd -v
Server version: Apache/2.2.3
Server built:   Aug 19 2011 11:19:08

5 기본 명령어

서비스 상태 확인, 시작, 중지, 재시작 명령어이다.

service httpd status
service httpd start
service httpd stop
service httpd restart

다음과 같이 데몬에 직접 시작, 중지, 재시작 명령을 내릴 수도 있다.

httpd -k start
httpd -k stop
httpd -k restart

6 같이 보기

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