Apache httpd Server Notes

1. httpd启动、停止以及重启

启动:

apachectl –f $PATH_TO_CONF/httpd.conf

停止及重启

apachectl –k stop/restart/graceful-stop/graceful

其中 graceful-stop及graceful会将当前处理中的请求处理完毕,而不是直接关闭并丢弃所有连接。

2. 配置项解释

<IfDefine SomeParam>

如果在httpd启动时给定了特定的参数,则生效。比如:httpd –DClosedForNow

<IfModule some_module>

如果在httpd启动时加载了特定的模块,则生效。与上两个类似的还有<IfVersion>

扫描二维码关注公众号,回复: 2565394 查看本文章

to be continue…

猜你喜欢

转载自www.cnblogs.com/luojiahu/p/9426746.html