VPS侦探论坛

 找回密码
 注册
查看: 3530|回复: 2

磁盘爆满怎么办

[复制链接]
发表于 2017-11-27 00:57:41 | 显示全部楼层 |阅读模式

MYSQL日志已经关闭并清理了。感谢回答!
  1. [root@psychz ~]# du -h --max-depth=1
  2. 8.0K        ./.pki
  3. 1.7M        .
  4. [root@psychz ~]# du -h --max-depth=1 /
  5. 704K        /tmp
  6. 3.2G        /usr
  7. 16K        /lost+found
  8. 4.0K        /srv
  9. 1.7M        /root
  10. 4.0K        /selinux
  11. 155M        /var
  12. 448M        /lib
  13. 88M        /boot
  14. 28M        /etc
  15. 4.0K        /www
  16. du: cannot access `/proc/10659/task/10659/fd/4': No such file or directory
  17. du: cannot access `/proc/10659/task/10659/fdinfo/4': No such file or directory
  18. du: cannot access `/proc/10659/fd/4': No such file or directory
  19. du: cannot access `/proc/10659/fdinfo/4': No such file or directory
  20. 0        /proc
  21. 6.1M        /bin
  22. 4.0K        /opt
  23. 0        /sys
  24. 22M        /lib64
  25. 164K        /dev
  26. 4.0K        /mnt
  27. 3.7G        /home
  28. 14M        /sbin
  29. 4.0K        /media
  30. 7.6G        /
复制代码


  1. [root@psychz ~]# df -h
  2. Filesystem      Size  Used Avail Use% Mounted on
  3. /dev/vda1       8.4G  8.4G     0 100% /
  4. tmpfs           246M     0  246M   0% /dev/shm
  5. /dev/vda3        11G  3.8G  6.5G  37% /home
  6. [root@psychz ~]#
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-11-27 01:17:45 | 显示全部楼层


查到/usr/local/proftpd/var/log里面
proftpd.log大小有888M,可以直接删除吗?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-11-27 10:37:13 | 显示全部楼层

论坛中有发过linux下各种程序怎么清理日志的帖子,可以搜索:清理 日志
日志文件都不能直接删除
https://bbs.vpser.net/thread-8393-1-1.html
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-25 01:15 , Processed in 0.026038 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表