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

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 7명의 중간 판 63개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{소문자}}
{{다른뜻|아파치 (1954)}}
{{테스트|CentOS 5.7}}
{{다른뜻|아파치 (1990)}}
{{다른뜻|아파치 헬기}}
==개요==
;Apache HTTP Server, Apache
;아파치 웹서버, 아파치 HTTP 서버, 아파치 웹데몬; 아파치, 웹데몬
;httpd
*아파치 웹서버 [[데몬]]
*아파치 웹서버 [[데몬]]
*기본 위치는 /usr/sbin
*설정 파일은 [[/etc/httpd/conf/httpd.conf]]
*설정 파일은 [[/etc/httpd/conf/httpd.conf]]
*로그 파일은 [[/var/log/httpd/access_log]]


==설치 확인==
==httpd 설치==
<code>yum info httpd</code>를 실행하여 설치되었는지 확인한다.
{{참고|httpd 설치}}
<source lang='dos'>
[root@localhost share]# 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.
</source>
*httpd 2.2.3 릴리즈 53.el5.centos가 설치되어 있다. 원한다면 릴리즈 53.el5.centos.3으로 업데이트할 수 있다.


==설치 위치==
==설치 위치==
CentOS release 5.7 (Final)를 설치하였더니 아파치가 이미 설치되어 있다.
{{참고|httpd의 위치}}
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@localhost ~]# service httpd status
[root@zetawiki ~]# service httpd status
httpd is stopped
httpd is stopped
[root@localhost ~]# whereis httpd
[root@zetawiki ~]# which httpd
httpd: /usr/sbin/httpd.worker /usr/sbin/httpd.event /usr/sbin/httpd /etc/httpd /usr/share/man/man8/httpd.8.gz
/usr/sbin/httpd
[root@localhost ~]# /etc/httpd -v
</syntaxhighlight>
bash: /etc/httpd: is a directory
:→ httpd 파일은 /usr/sbin에 있다.
[root@localhost ~]# /usr/sbin/httpd -v
 
<syntaxhighlight lang='console'>
[root@zetawiki ~]# /usr/sbin/httpd -v
Server version: Apache/2.2.3
Server version: Apache/2.2.3
Server built:  Aug 19 2011 11:19:08
Server built:  Aug 19 2011 11:19:08
</source>
</syntaxhighlight>
*httpd 파일은 /usr/sbin에 있다.


==기본 명령어==
==기본 명령어==
서비스 상태 확인, 시작, 중지, 재시작 명령어이다.
서비스 상태 확인, 시작, 중지, 재시작 명령어이다.
<source lang='bash'>
service httpd status
service httpd start
service httpd stop
service httpd restart
</source>


다음과 같이 데몬에 직접 시작, 중지, 재시작 명령을 내릴 수도 있다.
{| class='wikitable'
<source lang='bash'>
|-
httpd -k start
! 명령어 종류
httpd -k stop
! systemctl ★★
httpd -k restart
! service
</source>
! /etc/init.d/ ★
! apachectl
! httpd<ref>httpd는 /usr/sbin 에 있음</ref>
|-
!colspan='6'| 우분투 (서비스명: apache2)
|-
| [[아파치 상태 확인]]
| systemctl status apache2
| service apache2 status
| /etc/init.d/apache2 status
| ·
| ·
|-
| [[아파치 시작]]
| systemctl start apache2
| service apache2 start
| /etc/init.d/apache2 start
| ·
| ·
|-
| [[아파치 정지]]
| systemctl stop apache2
| service apache2 stop
| /etc/init.d/apache2 stop
| ·
| ·
|-
| [[아파치 재시작]]
| systemctl restart apache2
| service apache2 restart
| /etc/init.d/apache2 restart
| ·
| ·
|-
| [[아파치 리로드]]
| systemctl reload apache2
| service apache2 reload
| /etc/init.d/apache2 reload
| ·
| ·
|-
!colspan='6'| CentOS (서비스명: httpd)
|-
| [[아파치 상태 확인]]
| systemctl status httpd
| service httpd status
| /etc/init.d/httpd status
| ·
| httpd -k status
|-
| [[아파치 시작]]
| systemctl start httpd
| service httpd start
| /etc/init.d/httpd start
| ·
| httpd -k start
|-
| [[아파치 정지]]
| systemctl stop httpd
| service httpd stop
| /etc/init.d/httpd stop
| ·
| httpd -k stop
|-
| [[아파치 재시작]]
| systemctl restart httpd
| service httpd restart
| /etc/init.d/httpd restart
| ·
| httpd -k restart
|-
| [[아파치 리로드]]
| systemctl reload httpd
| service httpd reload
| /etc/init.d/httpd reload
| ·
| httpd -k reload
|}


==같이 보기==
==같이 보기==
*[[아파치]]
*[[httpd 설치 (yum)]]
*[[apachectl]]
*[[아파치 컴파일 설치]]
*[[아파치 설정파일 httpd.conf]]
*[[아파치 로그]]
*[[톰캣]]
*[[리눅스 계정에 특정 명령어 root 실행 권한 주기]]
*[[ApacheBench]]
*[[MySQL]]
*[[아파치 prefork와 worker 방식]]
*[[IIS]]
*[[NGiИX]]
*[[rotatelogs]]
*[[웹서버]]
 
==참고링크==
* {{위키백과|아파치 HTTP 서버}}


[[분류:리눅스]]
[[분류:리눅스]][[분류:아파치]]
[[분류:아파치]]

2020년 12월 7일 (월) 20:30 기준 최신판

  다른 뜻에 대해서는 아파치 (1954) 문서를 참조하십시오.
  다른 뜻에 대해서는 아파치 (1990) 문서를 참조하십시오.
  다른 뜻에 대해서는 아파치 헬기 문서를 참조하십시오.

1 개요[ | ]

Apache HTTP Server, Apache
아파치 웹서버, 아파치 HTTP 서버, 아파치 웹데몬; 아파치, 웹데몬
httpd

2 httpd 설치[ | ]

3 설치 위치[ | ]

[root@zetawiki ~]# service httpd status
httpd is stopped
[root@zetawiki ~]# which httpd
/usr/sbin/httpd
→ httpd 파일은 /usr/sbin에 있다.
[root@zetawiki ~]# /usr/sbin/httpd -v
Server version: Apache/2.2.3
Server built:   Aug 19 2011 11:19:08

4 기본 명령어[ | ]

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

명령어 종류 systemctl ★★ service /etc/init.d/ ★ apachectl httpd[1]
우분투 (서비스명: apache2)
아파치 상태 확인 systemctl status apache2 service apache2 status /etc/init.d/apache2 status · ·
아파치 시작 systemctl start apache2 service apache2 start /etc/init.d/apache2 start · ·
아파치 정지 systemctl stop apache2 service apache2 stop /etc/init.d/apache2 stop · ·
아파치 재시작 systemctl restart apache2 service apache2 restart /etc/init.d/apache2 restart · ·
아파치 리로드 systemctl reload apache2 service apache2 reload /etc/init.d/apache2 reload · ·
CentOS (서비스명: httpd)
아파치 상태 확인 systemctl status httpd service httpd status /etc/init.d/httpd status · httpd -k status
아파치 시작 systemctl start httpd service httpd start /etc/init.d/httpd start · httpd -k start
아파치 정지 systemctl stop httpd service httpd stop /etc/init.d/httpd stop · httpd -k stop
아파치 재시작 systemctl restart httpd service httpd restart /etc/init.d/httpd restart · httpd -k restart
아파치 리로드 systemctl reload httpd service httpd reload /etc/init.d/httpd reload · httpd -k reload

5 같이 보기[ | ]

6 참고링크[ | ]

  1. httpd는 /usr/sbin 에 있음
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}