아파치 웹서버

Jmnote (토론 | 기여)님의 2012년 2월 19일 (일) 11:36 판 (→‎설치 위치)

1 설치 위치

CentOS release 5.7 (Final)를 설치하였더니 아파치가 이미 설치되어 있다.

[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 ~]# /etc/httpd -v
bash: /etc/httpd: is a directory
[root@localhost ~]# /usr/sbin/httpd -v
Server version: Apache/2.2.3
Server built:   Aug 19 2011 11:19:08
  • httpd 파일은 /usr/sbin에 있다.

2 기본 명령어

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

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

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

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

3 같이 보기

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