apache安装和调整性能安装实践
/usr/local/src/httpd-2.0.48/server/mpm/prefork/prefork.c#define DEFAULT_SERVER_LIMIT 256
我这个值调大,我现在调整的是2000
然后安装:
./configure --prefix=/usr/local/apache2 --enable-so
make
make install
修改conf文件
StartServers 10
MinSpareServers 10
MaxSpareServers 15
MaxClients 500
MaxRequestsPerChild 0
Listen 80
ServerName 192.168.0.1
groups nobody (默认为#-1,试用用于linux机器,如果是unix机器可以修改为nobody)
AddDefaultCharset GB2312 (在apache2中都需要添加,而在1中不用)
NameVirtualHost 192.168.0.1 (如果设置虚拟主机的话肯定要添加,为本地的ip)
DirectoryIndex index.html index.htm本文来自:http://www.xiaoyaxiao.com/2104.html
发表您的高见!