mysql配置优化,充分发挥你的硬件资源,下面的数值要根据你的配置调整
key_buffer_size = 512M
max_allowed_packet = 64M
table_cache = 512
sort_buffer_size = 4M
net_buffer_length = 8K
read_buffer_size = 4M
read_rnd_buffer_size = 2M
myisam_sort_buffer_size = 64M
tmp_table_size = 128M
query_cache_size = 96M
query_cache_type = 1
thread_cache_size = 8
max_connections = 400
wait_timeout = 300
其它的如:
将magento的var目录挂载到内存中,加快读取速度:
mount -t tmpfs -o size=100M,mode=0777 tmpfs var
安装php加速器,如APC,XCACHE,eAccelerator,安装方法参考相关的网站
转载自腾爱网