Apche server commands commonly used in Windows and Linux

Source: Internet
Author: User

1.Window
Httpd.exe [-D name] [-D directory] [-f file] [-c "directive"] [-c "directive"] [-W] [-K Start|rest Art|stop|shutdown] [-N service_name] [-K install|config|uninstall] [-N service_name] [-v] [-v] [-h] [ -l] [-l] [-t] [-t] [-S] [-x]options:-D name:define a name for use in<Ifdefinename> directives-d directory:specify An alternate initial serverroot-f file:specify an alternate Serve Rconfigfile-c "Directive": process directive before reading Config files-c "directive": Process Directive AF           ter reading config files-n name:set service name and use its serverconfigfile and serverroot-k start  : Tell Apache to start-k Restart:tell running Apache to do a graceful restart-k Stop|shutdown:tell Running Apache to Shutdown-k install:install an Apache service-k config:change startup Options o F an Apache service-k Uninstall:uninstall a Apache service-w: Hold Open the console window O   n error-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 availabl e Command line Options (This page)-l:list compiled in Modules-l: List available configuration directives- t-d dump_vhosts:show parsed Vhost settings-t-D dump_run_cfg:show parsed RUN settings-s: a Syno Nym for-t-D dump_vhosts-d dump_run_cfg-t-D dump_modules:show all loaded modules-m: a synonym fo R-t-D dump_modules-t: Run syntax check for config files-t: start without documentr Oot (s) check-x: Debug mode (only one worker, does not detach)
2.Linux

2.1 Start, restart, stop-mode one (httpd)

./httpd [-D name] [-D directory] [-f file] [-c "directive"] [-c "directive"] [-K Start            |restart|graceful|graceful-stop|stop] [-v] [-v] [-h] [-l] [-l] [-t] [-t] [-s]options:-D Name : Define a name for use in<Ifdefinename> directives-d directory:specify An alternate initial serverroot-f file:specify an alternate Serve Rconfigfile-c "Directive": process directive before reading Config files-c "directive": Process Directive AF ter reading config files-e level:show startup errors of level (see LogLevel)-e file:log start                 Up 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: l                 IST 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 Synon Ym For-t-D dump_modules-t: Run syntax check for config files-t: start without DOCU Mentroot (s) check

2.2 Start, restart, stop-mode two (apachectl)

Apahce Start command    ./apachectl startapache Stop command:    ./apachectl stopapache Restart command:    ./apachectl Restart to restart Apache The server does not interrupt the current connection, it should run:    ./apachectl Graceful

Apche server commands commonly used in Windows and Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.