Posted by novicepq on

清理Centos6或Centos7垃圾文件的命令行

以下方法是怎样清理VPS安装的Centos6、7系统

首先安装yum-utils包:

  1. 清理log:

  1. 清理YUM cache:

  1. 清理orphan packages
    3.1 查看显存的orphan packages:

3.2 确认删除orphan packages:

  1. 此步骤适合装了wordpress的,清理WP CLI cache:

  1. 清理旧的kernels:

  1. 清理Composer cache:

  1. 清理core dumps:

  1. 适用于cPanel,清理error_log files:

参考英文文章:Clear disk space on CentOS 6 or CentOS 7


Leave a Reply