Archive for May, 2013

centos分区

Thursday, May 23rd, 2013

*** /boot – 512MB
*** /tmp – 4GB
*** /swap – 4GB
*** / – Remainder

安装tmpwatch清理下/tmp目录

Monday, May 20th, 2013

安装tmpwatch
yum install tmpwatch
清理下24小时之前的文件
/usr/sbin/tmpwatch --verbose --mtime --all 24 /tmp

MYSQL中表类型为InnoDB怎么转换成MyISAM

Wednesday, May 15th, 2013

ALTER TABLE wp_posts TYPE=MyISAM

csf的ssh命令

Wednesday, May 8th, 2013

csf -d : 屏蔽IP
csf -a : 允许IP
csf -dr : 屏蔽解除
csf -ar : 允许解除
csf -g :查询有无被屏蔽
csf -r :重启csf

For more command line options please try csf –help