Apache HTTPD reload [closed]

末鹿安然 提交于 2019-12-04 15:38:53

问题


Does anyone know if while Apache HTTPD is doing a reload (which, let's say, takes five seconds) can it still serve requests during that time?


回答1:


First of all, you say reload, but assuming you mean 'reload' OR 'restart':

   /my/path/to/httpd restart
  • Causes the current httpd process to exit, which means for a time the server appears to be down, as in not serving any requests.

Reload on the other side:

    /my/path/to/httpd reload
  • Does not cause the current server to exit, which means connections are never refused and thus the server never looks down (but is rather slow for a little while)
  • Will cause all long running httpd daemon requests to exit



回答2:


As far as I know, no. However there is a graceful restart which stops child nodes halting mid-request which I think takes care of this.

http://httpd.apache.org/docs/2.2/stopping.html



来源:https://stackoverflow.com/questions/671667/apache-httpd-reload

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!