Kloxo控制面板优化详解
先SSH登录到服务器,
进入/etc 目录,编辑my.cnf
在下面加入以下三行:
skip-locking
skip-bdb
skip-innodb保存之后在重启MYSQL
命令: /sbin/service mysqld restart1.登上用putty登陆你的VPS,执行:service named stop;
chkconfig named off;
service qmail stop;
chkconfig qmail off;
chkconfig courier-imap off;其实vps也可以禁用iptables的:service iptables stop;
chkconfig iptables off;二,优化mysql:
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
skip-bdb
skip-innodb
quick
max_allowed_packet = 16M
no-auto-rehash
#safe-updates
key_buffer = 8M
sort_buffer_size = 8M
key_buffer = 8M
sort_buffer_size = 8M
interactive-timeout上面的这个数据库的优化
我没有尝试,我使用了上面第一个真接加入3行代码的方法
顶一下,不错不错....
页:
[1]