Wishlist 0 ¥0.00

Linux自动清理硬盘空间,也许对你有用

服务器一般是要求长期连续运行的,自动执行任务生成的各种文件及日志,可能使空间占满,从而造成业务故障,所以要定时清理。

一般来说,Linux空间占满有如两种情况:

1、空间被占满了

用df -k 可以看到使用100%,这种 情况下,满的分区无法新建文件,也无法输出日志,需要输日志的进程一般都会停止工作

2、inode占满了

inode如何理解呢,就是一个文件 对应一个inode,而linux各个分区可用的inode一般是有限的,使用df -i 可以查看使用情况。一般经常出现硬盘空间没占满,但inode占满了,这种一般是因为有大量的小文件生成,要删掉。

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.