99精品国产综合久久久久五月天,免费观看欧美大片毛片不用播放器 ,AV无码理论片在线观看免费网站,国产精品国产成人国产三级
標(biāo)題:
[求助]
my.cnf該怎么優(yōu)化?
[打印本頁(yè)]
作者:
我行我素
時(shí)間:
2012-1-6 11:03
標(biāo)題:
my.cnf該怎么優(yōu)化?
1G內(nèi)存 : 網(wǎng)站平均日訪問(wèn)量在1萬(wàn)左右,同時(shí)在線150-200左右,采用的偽靜態(tài)模式,基本上都是讀取數(shù)據(jù)庫(kù)的。該怎么優(yōu)化?
以下是默認(rèn)的,該怎么優(yōu)化
# mysql conf /etc/my.cnf
# Created by http://www.fudaan.com
# Last Updated 2010.06.01
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-external-locking
key_buffer_size = 128M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 2M
myisam_sort_buffer_size = 8M
thread_cache_size = 8
query_cache_size= 16M
thread_concurrency = 8
max_connections = 500
wait_timeout = 30
interactive_timeout = 30
max_connect_errors = 9
long_query_time = 1
tmp_table_size = 16M
#log-bin=mysql-bin
#binlog_format=mixed
#server-id = 1
[mysqldump]
quick
max_allowed_packet = 8M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 12M
sort_buffer_size = 1M
read_buffer = 1M
write_buffer = 1M
[mysqlhotcopy]
interactive-timeout
復(fù)制代碼
歡迎光臨 WDlinux官方論壇 (http://www.fudaan.com/bbs/)
Powered by Discuz! 7.2