知识屋:更实用的电脑技术知识网站
所在位置:首页 > 操作系统 > linux

修改Apache配置文件并生效的困惑

发布时间:2014-09-05 15:29:08作者:知识屋

修改Apache配置文件并生效的困惑
 
 今天修改了Apache的连接数,如下 :
[plain]   www.zhishiwu.com  
<IfModule mpm_prefork_module>  
    StartServers          5  
    MinSpareServers       5  
    MaxSpareServers      10  
    ServerLimit         2048  
    MaxClients         2000  
    MaxRequestsPerChild   0  
</IfModule>  
 
在使用
[plain] 
apachectl restart  
 
后始终不生效,最大连接数始终停留在默认的256。
 
在折腾几个小时后,偶然用
[plain] 
apachectl stop  
apachectl start  
 
就成功了,我那个郁闷啦!其实之前也碰到过这样的问题,但忘了,今天写在这里,以免时间长了又给忘了。
以下是Apache官网上关于 restart  的介绍
[plain] 
apachectl -k restart  
Sending the HUP or restart signal to the parent causes it to kill off its children like in TERM, but the parent doesn't exit. It re-reads its configuration files, and re-opens any log files. Then it spawns a new set of children and continues serving hits.  
 
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜