我正在检查/ usr / local / apache / logs / error_log
这已经发生好几次了。 有时服务器重启速度有时很慢。 什么因素可能导致这个混乱。
[Mon Dec 31 21:40:49 2012] [notice] Graceful restart requested, doing restart [Mon Dec 31 21:40:53 2012] [error] [client 66.249.74.237] File does not exist: /home2/wallpape/public_html/tag [Mon Dec 31 21:40:53 2012] [error] [client 66.249.74.237] File does not exist: /home2/wallpape/public_html/404.shtml [Mon Dec 31 21:50:02 2012] [notice] SSL FIPS mode disabled [Mon Dec 31 21:50:03 2012] [notice] Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 configured -- resuming normal operations
另一方面,不正常的重启似乎更快:
[Mon Dec 31 21:52:58 2012] [notice] SIGHUP received. Attempting to restart [Mon Dec 31 21:52:58 2012] [notice] SSL FIPS mode disabled [Mon Dec 31 21:52:58 2012] [notice] Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 configured -- resuming normal operations
从手册: http : //httpd.apache.org/docs/2.2/stopping.html
父母重新读取其configuration文件并重新打开其日志文件。 当每个孩子死亡时,父母将其replace为新一代configuration中的孩子,该孩子立即 开始提供新的 请求 。
看来,优雅的重新启动devise,使服务可以不中断地运行。 但是,这种方式不行。 我的服务器中的所有域都是死亡,而重新启动:(
正常的重新启动会在重新启动之前等待所有当前的连接closures,而标准的重新启动只会中止当前的连接。