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

32번째 줄: 32번째 줄:
==기본 명령어==
==기본 명령어==
서비스 상태 확인, 시작, 중지, 재시작 명령어이다.
서비스 상태 확인, 시작, 중지, 재시작 명령어이다.
<source lang='bash'>
service httpd status
service httpd start
service httpd stop
service httpd restart
</source>
:→ service 명령어는 /etc/init.d/httpd 스크립트를 이용


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


==같이 보기==
==같이 보기==

2017년 12월 17일 (일) 20:41 판

  다른 뜻에 대해서는 아파치 (1954) 문서를 참조하십시오.
  다른 뜻에 대해서는 아파치 (1990) 문서를 참조하십시오.
  다른 뜻에 대해서는 아파치 헬기 문서를 참조하십시오.
Apache HTTP Server, Apache
아파치 웹서버, 아파치 HTTP 서버, 아파치 웹데몬; 아파치, 웹데몬
httpd

1 개요

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 /etc/init.d/apache2 status service apache2 status · ·
아파치 시작 systemctl start apache2 /etc/init.d/apache2 start service apache2 start · ·
아파치 정지 systemctl stop apache2 /etc/init.d/apache2 stop service apache2 stop · ·
아파치 재시작 systemctl restart apache2 /etc/init.d/apache2 restart service apache2 restart · ·
아파치 리로드 systemctl reload apache2 /etc/init.d/apache2 reload service apache2 reload · ·
CentOS (서비스명: httpd)
아파치 상태 확인 systemctl status apache2 /etc/init.d/apache2 status service apache2 status · httpd -k status
아파치 시작 systemctl start apache2 /etc/init.d/apache2 start service apache2 start · httpd -k start
아파치 정지 systemctl stop apache2 /etc/init.d/apache2 stop service apache2 stop · httpd -k restart
아파치 재시작 systemctl restart apache2 /etc/init.d/apache2 restart service apache2 restart · httpd -k restart
아파치 리로드 systemctl reload apache2 /etc/init.d/apache2 reload service apache2 reload · httpd -k reload

5 같이 보기

6 참고

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