데몬 스크립트 파일 : /etc/rc.d/init.d/httpd
작성자 정보
- 구돌 작성
- 작성일
컨텐츠 정보
- 2,571 조회
- 0 추천
- 목록
본문
데몬 스크립트 파일 : /etc/rc.d/init.d/httpd
여러분들도 잘 아시는 아파치 웹서버 데몬인 httpd를 실행시키는 데몬스크립트입니다.
RPM 패키지로 설치되어 있는 아파치를 이 스크립트를 이용하여 간단히 시작시키거나 종료시킬 수 있습니다.
이 스크립트에 관련된 명령어들은 이 책의 httpd명령어편을 참조하시기 바랍니다.
사용옵션 : start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest
데몬파일 : /usr/sbin/httpd
프로세스명 : httpd
PID파일 : /var/run/httpd.pid
설정파일 : /etc/httpd/conf/httpd.conf
설정디렉토리 : /etc/httpd/
로그디렉토리 : /var/log/httpd/
설정파일 : /etc/httpd/conf/httpd.conf
아파치 데몬컨트롤 명령어 : /usr/sbin/apachectl
스크립트 사용예
[root@command init.d]# /etc/rc.d/init.d/httpd stop Stopping httpd: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/httpd start Starting httpd: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/httpd status httpd (pid 4655 4654 4653 4652 4651 4650 4649 4648 4645) is running... [root@command init.d]# [root@command init.d]# [root@command init.d]# ps -ef | grep httpd root 4645 1 5 12:55 ? 00:00:00 /usr/sbin/httpd apache 4648 4645 0 12:55 ? 00:00:00 [httpd] apache 4649 4645 0 12:55 ? 00:00:00 [httpd] apache 4650 4645 0 12:55 ? 00:00:00 [httpd] apache 4651 4645 0 12:55 ? 00:00:00 [httpd] apache 4652 4645 0 12:55 ? 00:00:00 [httpd] apache 4653 4645 0 12:55 ? 00:00:00 [httpd] apache 4654 4645 0 12:55 ? 00:00:00 [httpd] apache 4655 4645 0 12:55 ? 00:00:00 [httpd] root 4668 2007 0 12:56 pts/0 00:00:00 grep httpd [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/httpd fullstatus Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster
Error 404
localhost Tue 10 Feb 2004 12:59:38 PM KST Apache/2.0.40 (Red Hat Linux) [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/httpd gracefule Usage: httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest} [root@command init.d]# [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/httpd help Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file] [-C "directive"] [-c "directive"] [-k start|restart|graceful|stop] [-v] [-V] [-h] [-l] [-L] [-t] Options: -D name : define a name for use in <IfDefine name> directives -d directory : specify an alternate initial ServerRoot -f file : specify an alternate ServerConfigFile -C "directive" : process directive before reading config files -c "directive" : process directive after reading config files -e level : show startup errors of level (see LogLevel) -E file : log startup errors to file -v : show version number -V : show compile settings -h : list available command line options (this page) -l : list compiled in modules -L : list available configuration directives -t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings) -t : run syntax check for config files [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/httpd configtest Syntax OK [root@command init.d]# |
관련자료
-
이전
-
다음