apache finishing commonly used commands

It is important Oh, it will only start, stop, then do not say you'll apache

A, windows (win10)

  1. httpd -help View Help

  2. httpd -v view apache version

  3. httpd -V display compiler settings

  4. httpd -S check the configuration file is correct, when not start apache, first detected profile

  5. httpd -E filename will start the error log to a file

  6. httpd -k start | stop start, stop,

  7. httpd -k restart graceful restart (apache service does not stop, reload the configuration file, after old child process exits to complete the request, open a new child process)

  8. httpd -X debug mode, only one worker process

  9. httpd -t check the configuration file is correct, returns Syntax OK or Syntax Error, fast

  10. httpd -t -D DUMP_INCLUDES show all incorporated profiles

  11. httpd -t -D DUMP_MODULES show all loaded modules

  12. httpd -t -D operation after setting the parsing DUMP_RUN_CFG

  13. httpd -t -D DUMP_VHOSTS displaying a virtual host settings parsed

  14. httpd -L lists available configuration instructions each module

  15. httpd -k uninstall uninstall apache service

  

Guess you like

Origin www.cnblogs.com/fanshehu/p/11946677.html