|
Windows下Apache及Mysql配置并发Windows下Apache配置(Httpd.conf) 开启模块:(仅在需监控服务器性能时开启)
______________________________________________________________________ 启用关联引用文件: #Include conf/extra/httpd-mpm.conf(重要)
______________________________________________________________________ #Include conf/extra/httpd-default.conf(重要)
______________________________________________________________________ #Include conf/extra/httpd-info.conf(仅在需监控服务器性能时开启)
配置完成,重新启动apache(注意,不能直接restart,而要先stop,再start) 可以用http://10.1.1.15/server-status?refresh=N将表示访问状态页面可以每N秒自动刷新一次;(http://10.1.1.5/server-info-lilei) Deny from表示禁止的访问地址; Allow from表示允许的地址访问; ExtendedStatus On 表示的是待会访问的时候能看到详细的请求信息,另外该设置仅能用于全局设置,不能在特定的虚拟主机中打开或关闭。启用扩展状态信息将会导致服务器运行效率降低。 ______________________________________________________________________ windows下mysql配置(my.ini) max_connections=10000 //可能会受限1910 table_cache=512 //可能会受限 69(受限appserv,phpstudy不限)
Opened_tables:表示累计所有已经打开的表数目。 如果Open_tables的值已经接近table_cache的值,且Opened_tables还在不断变大,则说明mysql正在将缓存的表释放以容纳新的表,此时可能需要加大table_cache的值。 比较适合的值: Open_tables / Opened_tables >= 0.85 Open_tables / table_cache <= 0.95 清空缓存:mysql > flush tables; |