2 tips for apache 2.2

  1. 执行 apache2 -k graceful 而不是 apache2 -k restart 重启 apache,执行 apache2 -k graceful-stop 而不是 apache2 -k stop 停止 apache。
  2. 传统的重启和停止指令会杀死所有的客户端连接进程,apache2 -k graceful 允许重启 apache 而不中断客户端连接,apache2 -k graceful-stop 允许客户端连接在被关闭前先行执行完毕。

  3. 执行 apache2 -M 查看所有静态编译和动态加载的模块
  4. apache2 -l 只能查看静态编译的模块,而 apache2 -M 指令则可以查看所有静态编译和动态加载的模块。

    apache -M

Tags: ,

This entry was posted on Thursday, September 3rd, 2009 at 7:59 am and is filed under linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Posts you may enjoy

Leave a Reply

Please copy the string FO3EBm to the field below: