如何确定运行 Apache2 的 Ubuntu 14.04 中的当前 MaxClients

如何确定运行 Apache2 的 Ubuntu 14.04 中的当前 MaxClients

apache2.conf我正在运行带有 Apache2 的 Ubuntu 14.04,并在我的文件中放置了以下行:

MaxClients 1024

我还重新启动了 Apache。

有什么方法可以验证该MaxClients 1024行是否已正确读取和解析?换句话说,有没有办法可以从配置文件本身以外的来源确定服务器当前的 MaxClients 值?

答案1

您可以MaxClients通过加载 mod_info模块。

要配置 mod_info,请将以下内容添加到您的httpd.conf文件中:

<Location "/server-info">
    SetHandler server-info
</Location>

然后可以通过页面访问该信息以及更多信息 http://localhost/服务器信息

相关内容