cek HDD
df -h
du -sh /*
#---------------------------------
RECOVERY
#---------------------------------
yum history list all
yum history info [entry number]
yum history undo [entry number]
#---------------------------------
hapus repo
rpm -qf /etc/yum.repos.d/epel.repo
yum remove epel-release
yum clean all
yum upgrade
yum -y install yum-utils
find /var -name "*.log" \( \( -size +50M -mtime +7 \) -o -mtime +30 \) -exec truncate {} --size 0 \;
yum clean all
rm -rf /var/cache/yum
rm -rf /var/tmp/yum-*
package-cleanup --oldkernels --count=2
package-cleanup --oldkernels --count=1
rm -rf /root/.composer/cache
rm -rf /home/*/.composer/cache
find -regex ".*/core\.[0-9]+$" -delete
find /home/*/public_html/ -name error_log -delete
rm -rf /root/.npm /home/*/.npm /root/.node-gyp /home/*/.node-gyp /tmp/npm-*
mv /var/log/*gz /var/log/*.0 /home/backup/var/log
yum clean packages
# -------------------------------
rm -rf /var/log/squid/*.gz
rm -rf /usr/local/WowzaStreamingEngine-4.7.7/logs/*.log.*
rm -rf /usr/local/WowzaStreamingEngine-4.7.7/manager/logs/*.log.*
rm -rf /var/log/squid/*.log.*
rm -rf /var/log/*.log.*
rm -rf /var/log/httpd/*_log-*
rm -rf /var/log/audit/*.log.*
yum clean all && yum update
cek HDD
df -h
du -sh /*
No comments:
Post a Comment