thinkhk 发表于 2016-12-29 09:40:41

apache相关知识

  1:在ms平台可以使用apache.exe /?来查看相关的命令

C:\Apache Group\Apache2\bin>Apache.exe /?
Usage: Apache.exe [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-w] [-k start|restart|stop|shutdown]
[-k install|config|uninstall] [-n service_name]
[-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
-n name         : set service name and use its ServerConfigFile
-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 of an Apache service
-k uninstall      : uninstall an Apache service
-w                : hold open the console window on 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 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                : run syntax check for config files

  从上面可以看出,如果我们要安装一个apache到服务里面去的话,可以使用apache -k install就可以了.
  要卸载服务的时候可以使用apache -k uninstall
  2:开始学习装APACHE的时候尽量不要通过服务去启动APACHE,要不然出错了,找错误会特别痛苦.可以转取apache安装目录下面的bin文件夹里,运行apache.exe命令启动APACHE.
页: [1]
查看完整版本: apache相关知识