富贵长生天做主由不得我
钢骨正气我做主由不得天

mysql-bin.000001文件来源以及处理方法

仔细想想没有往服务器上传什么大的文件,也不能被黑(不起眼的小网站服务器)。于是,就逐一的检查”/”下的所有文件占用磁盘空间的大小。

[root@localhost ~]# du -s /* 6160 /bin19380 /boot156 /dev21700 /etc2383236 /home112372 /lib16 /lost+found4 /media4 /mnt4 /optdu: 无法访问"/proc/2187/task/2187/fd/4": 没有那个文件或目录du: 无法访问"/proc/2187/task/2187/fdinfo/4": 没有那个文件或目录du: 无法访问"/proc/2187/fd/4": 没有那个文件或目录du: 无法访问"/proc/2187/fdinfo/4": 没有那个文件或目录0 /proc56 /root9488 /sbin4 /selinux4 /srv0 /sys14760 /tmp37310312 /usr90452 /var

发现/usr占用了大约37.3G的磁盘空间,然后进入/usr检查。

[root@localhost ~]# du -s /usr/local/*944 /usr/local/autoconf-2.13472 /usr/local/bin87568 /usr/local/eaccelerator_cache4 /usr/local/etc4 /usr/local/games172 /usr/local/include13824 /usr/local/ioncube4100 /usr/local/lib4 /usr/local/libexec36 /usr/local/man36436840 /usr/local/mysql5108 /usr/local/nginx53440 /usr/local/php4 /usr/local/sbin2620 /usr/local/share4 /usr/local/src900 /usr/local/zend

从返回的命令看出,占用最大的是/usr/local/mysql,继续检查。

[root@localhost ~]# du -s /usr/local/mysql/var/*552 /usr/local/mysql/var/0t971196 /usr/local/mysql/var/feifeicms1640 /usr/local/mysql/var/idc@002elianst@002ecom320 /usr/local/mysql/var/localhost.localdomain.err4 /usr/local/mysql/var/localhost.localdomain.pid1032 /usr/local/mysql/var/mysql28 /usr/local/mysql/var/mysql-bin.0000011048 /usr/local/mysql/var/mysql-bin.0000024 /usr/local/mysql/var/mysql-bin.0000034 /usr/local/mysql/var/mysql-bin.0000044 /usr/local/mysql/var/mysql-bin.0000055092 /usr/local/mysql/var/mysql-bin.0000063808 /usr/local/mysql/var/mysql-bin.000007508 /usr/local/mysql/var/mysql-bin.0000088 /usr/local/mysql/var/mysql-bin.0000094 /usr/local/mysql/var/mysql-bin.00001072 /usr/local/mysql/var/mysql-bin.00001180 /usr/local/mysql/var/mysql-bin.000056124 /usr/local/mysql/var/mysql-bin.00005756 /usr/local/mysql/var/mysql-bin.0000587556 /usr/local/mysql/var/mysql-bin.0000596244 /usr/local/mysql/var/mysql-bin.0000604 /usr/local/mysql/var/mysql-bin.0000614 /usr/local/mysql/var/mysql-bin.000062356 /usr/local/mysql/var/mysql-bin.000063108 /usr/local/mysql/var/mysql-bin.00006440 /usr/local/mysql/var/mysql-bin.00006576 /usr/local/mysql/var/mysql-bin.00006688 /usr/local/mysql/var/mysql-bin.000067152 /usr/local/mysql/var/mysql-bin.0000682648 /usr/local/mysql/var/mysql-bin.00006984 /usr/local/mysql/var/mysql-bin.000070108 /usr/local/mysql/var/mysql-bin.00007152 /usr/local/mysql/var/mysql-bin.000072104 /usr/local/mysql/var/mysql-bin.000073172 /usr/local/mysql/var/mysql-bin.000074408 /usr/local/mysql/var/mysql-bin.000075848 /usr/local/mysql/var/mysql-bin.00007672 /usr/local/mysql/var/mysql-bin.00007736 /usr/local/mysql/var/mysql-bin.00007856 /usr/local/mysql/var/mysql-bin.00007980 /usr/local/mysql/var/mysql-bin.000080236 /usr/local/mysql/var/mysql-bin.000081104 /usr/local/mysql/var/mysql-bin.000082324 /usr/local/mysql/var/mysql-bin.0000833476 /usr/local/mysql/var/mysql-bin.00008488 /usr/local/mysql/var/mysql-bin.000085140 /usr/local/mysql/var/mysql-bin.000086336 /usr/local/mysql/var/mysql-bin.000087396 /usr/local/mysql/var/mysql-bin.00008884 /usr/local/mysql/var/mysql-bin.00008988 /usr/local/mysql/var/mysql-bin.000090272 /usr/local/mysql/var/mysql-bin.00009180 /usr/local/mysql/var/mysql-bin.00009276 /usr/local/mysql/var/mysql-bin.00009388 /usr/local/mysql/var/mysql-bin.000094248 /usr/local/mysql/var/mysql-bin.000095116 /usr/local/mysql/var/mysql-bin.0000963028 /usr/local/mysql/var/mysql-bin.00009764 /usr/local/mysql/var/mysql-bin.000098220 /usr/local/mysql/var/mysql-bin.00009964 /usr/local/mysql/var/mysql-bin.00010076 /usr/local/mysql/var/mysql-bin.00010180 /usr/local/mysql/var/mysql-bin.000102208 /usr/local/mysql/var/mysql-bin.00010364 /usr/local/mysql/var/mysql-bin.00010464 /usr/local/mysql/var/mysql-bin.00010564 /usr/local/mysql/var/mysql-bin.000106240 /usr/local/mysql/var/mysql-bin.00010764 /usr/local/mysql/var/mysql-bin.00010868 /usr/local/mysql/var/mysql-bin.00010968 /usr/local/mysql/var/mysql-bin.000110184 /usr/local/mysql/var/mysql-bin.00011164 /usr/local/mysql/var/mysql-bin.00011268 /usr/local/mysql/var/mysql-bin.00011364 /usr/local/mysql/var/mysql-bin.000114180 /usr/local/mysql/var/mysql-bin.00011556 /usr/local/mysql/var/mysql-bin.00011656 /usr/local/mysql/var/mysql-bin.00011752 /usr/local/mysql/var/mysql-bin.00011872 /usr/local/mysql/var/mysql-bin.0001192076 /usr/local/mysql/var/mysql-bin.00012032 /usr/local/mysql/var/mysql-bin.00012132 /usr/local/mysql/var/mysql-bin.000122104 /usr/local/mysql/var/mysql-bin.00012384 /usr/local/mysql/var/mysql-bin.00012432 /usr/local/mysql/var/mysql-bin.00012532 /usr/local/mysql/var/mysql-bin.00012688 /usr/local/mysql/var/mysql-bin.00012756 /usr/local/mysql/var/mysql-bin.00023680 /usr/local/mysql/var/mysql-bin.000237532 /usr/local/mysql/var/mysql-bin.00023820 /usr/local/mysql/var/mysql-bin.0002391048704 /usr/local/mysql/var/mysql-bin.000300821624 /usr/local/mysql/var/mysql-bin.000301981160 /usr/local/mysql/var/mysql-bin.0003021048688 /usr/local/mysql/var/mysql-bin.0003031049156 /usr/local/mysql/var/mysql-bin.0003041048604 /usr/local/mysql/var/mysql-bin.0003051025568 /usr/local/mysql/var/mysql-bin.000306662604 /usr/local/mysql/var/mysql-bin.000307705336 /usr/local/mysql/var/mysql-bin.000308739816 /usr/local/mysql/var/mysql-bin.000309788712 /usr/local/mysql/var/mysql-bin.000310446864 /usr/local/mysql/var/mysql-bin.0003111048880 /usr/local/mysql/var/mysql-bin.0003121048708 /usr/local/mysql/var/mysql-bin.000313602936 /usr/local/mysql/var/mysql-bin.000314862772 /usr/local/mysql/var/mysql-bin.000315894116 /usr/local/mysql/var/mysql-bin.0003161048632 /usr/local/mysql/var/mysql-bin.00031778332 /usr/local/mysql/var/mysql-bin.0003181048656 /usr/local/mysql/var/mysql-bin.000319307512 /usr/local/mysql/var/mysql-bin.000320974816 /usr/local/mysql/var/mysql-bin.0003211049144 /usr/local/mysql/var/mysql-bin.0003221048636 /usr/local/mysql/var/mysql-bin.0003231048688 /usr/local/mysql/var/mysql-bin.000324122544 /usr/local/mysql/var/mysql-bin.000325117868 /usr/local/mysql/var/mysql-bin.000326733616 /usr/local/mysql/var/mysql-bin.000327

通过检查看到,好多mysql-bin.000XXX的文件,而且都还很大。经过询问度娘发现,此文件为mysql的日志文件,是可以删除的。因为这些日志文
件太大了,对我来说用处不大,索性就直接给关闭了。

[root@localhost ~]# vi /etc/my.cnf 

在log-bin前面加上”#”

赞(0)
未经允许不得转载:网站快照劫持代码-快照删除-黑帽SEO » mysql-bin.000001文件来源以及处理方法

评论 抢沙发

评论前必须登录!