Apache最大连接数/apache并发数修改方法
2017-02-13 16:36
417 查看
Apache的最大连接数,默认为256个。
修改apache的最大连接数,方法如下:
步骤一
先修改 /path/apache/conf/httpd.conf文件。
步骤二
找到 这一行
找到文件 /etc/httpd/conf/httpd.conf 并修改下面参数,将默认的256改成1000
ServerLimit 该指令一定要放在第一行。
修改后,一定不要apachectl restart,而是先 apachectl stop 然后再 apachectl start才可以。
修改apache的最大连接数,方法如下:
步骤一
先修改 /path/apache/conf/httpd.conf文件。
代码如下 | 复制代码 |
# vi httpd.conf 将“#Include conf/extra/httpd-mpm.conf”前面的 “#” 去掉,保存。 |
代码如下 | 复制代码 |
再修改 /path/apache/conf/extra/httpd-mpm.conf文件。 # vi httpd-mpm.conf |
找到文件 /etc/httpd/conf/httpd.conf 并修改下面参数,将默认的256改成1000
代码如下 | 复制代码 |
KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # ServerLimit: maximum value for MaxClients for the lifetime of the server # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 1000 MaxClients 1000 MaxRequestsPerChild 4000 |
修改后,一定不要apachectl restart,而是先 apachectl stop 然后再 apachectl start才可以。
相关文章推荐
- 修改Apache最大连接数/apache并发数
- 修改XP最大并发连接数的方法(非最大半开连接数)
- Apache增加最大连接数的方法
- 修改Apache的最大连接数
- 常用的三种修改mysql最大连接数的方法
- Oracle Database 10g Express Edition 最大连接数的修改方法
- 修改MYSQL最大连接数的3种方法
- 如何修改apache 2最大连接数
- 修改MYSQL最大连接数的3种方法
- 如何修改apache 2最大连接数
- 修改apache最大连接数【zz】
- 修改Oracle最大连接数的方法
- 修改MYSQL最大连接数的3种方法分享
- 修改Apache的最大连接数
- 修改MYSQL最大连接数的3种方法
- Oracle Database 10g Express Edition 最大连接数的修改方法
- [记录]修改MYSQL最大连接数的方法分享
- 修改MYSQL最大连接数的3种方法
- Oracle Database 10g Express Edition 最大连接数的修改方法
- linux下修改mysql默认最大连接数的方法