永久黄网站色视频免费直播,yy6080三理论日本中文,亚洲无码免费在线观看视频,欧美日韩精品一区二区在线播放
標題:
[求助]
my.cnf該怎么優(yōu)化?
[打印本頁]
作者:
我行我素
時間:
2012-1-6 11:03
標題:
my.cnf該怎么優(yōu)化?
1G內(nèi)存 : 網(wǎng)站平均日訪問量在1萬左右,同時在線150-200左右,采用的偽靜態(tài)模式,基本上都是讀取數(shù)據(jù)庫的。該怎么優(yōu)化?
以下是默認的,該怎么優(yōu)化
# mysql conf /etc/my.cnf
# Created by http://www.fsowen.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.fsowen.com/bbs/)
Powered by Discuz! 7.2