티스토리 뷰

WEB,WAS/Web Server

[Apache] apachectl 명령어

빼인트 2010. 7. 16. 23:32

=====================================================================

start         : 시작
stop         : 종료
restart        : 재시작
fullstatus    : 실행상태를 자세하게 보여줌(lynx와 mod_status가 설치되어야 함)
status        : 실행상태를 간단히 보여줌(lynx와 mod_status가 설치되어야 함)
graceful    : graceful 모드로 재시작
configtest    : 설정파일(httpd.conf)의 문법(systax)을 검사
help        : 도움말

=====================================================================

 

# ./apachectl help

Usage: /home/paint/apache-2.2.15/bin/httpd [-D name] [-d directory] [-f file]

[-C "directive"] [-c "directive"]

[-k start|restart|graceful|graceful-stop|stop]

[-v] [-V] [-h] [-l] [-L] [-t] [-S]

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)

-S : a synonym for -t -D DUMP_VHOSTS

-t -D DUMP_MODULES : show all loaded modules

-M : a synonym for -t -D DUMP_MODULES

-t : run syntax check for config files

 

 

 

# man apachectl

work, you need to have mod_status enabled on your server and a

text-based browser such as lynx available on your system. The

URL used to access the status report can be set by editing the

STATUSURL variable in the script.

 

status Displays a brief status report. Similar to the fullstatus

option, except that the list of requests currently being served

is omitted.

 

graceful

Gracefully restarts the Apache httpd daemon. If the daemon is

not running, it is started. This differs from a normal restart

in that currently open connections are not aborted. A side

effect is that old log files will not be closed immediately.

This means that if used in a log rotation script, a substantial

delay may be necessary to ensure that the old log files are

closed before processing them. This command automatically

checks the configuration files as in configtest before initiat-

ing the restart to make sure Apache doesn't die. This is equiv-

alent to apachectl -k graceful.

 

graceful-stop

Gracefully stops the Apache httpd daemon. This differs from a

normal stop in that currently open connections are not aborted.

A side effect is that old log files will not be closed immedi-

ately. This is equivalent to apachectl -k graceful-stop.

 

configtest

Run a configuration file syntax test. It parses the configura-

tion files and either reports Syntax Ok or detailed information

about the particular syntax error. This is equivalent to

apachectl -t.

 

The following option was available in earlier versions but has been

removed.

 

startssl

To start httpd with SSL support, you should edit your configu-

ration file to include the relevant directives and then use the

normal apachectl start.

'WEB,WAS > Web Server' 카테고리의 다른 글

[Apache] Redirect 설정  (0) 2010.07.17
[Apache] LogLevel  (0) 2010.07.17
[Apache] Welcome-file 설정  (0) 2010.07.17
[Apache] 디렉토리 보안설정  (0) 2010.07.17
[Apache] DSO(Dynamic Shared Object) 방식  (0) 2010.07.16
[Apache] httpd.conf 한글 메뉴얼  (1) 2010.07.12
[Linux] Apache설치  (0) 2010.06.30
[WebtoB] MaxQCount 와 MaxQUrl  (0) 2010.03.04
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함