yum update更新的时候,内存不足溢出完蛋了,安装包出现很多duplicate之类的。
rpm -e --nodeps `package-cleanup --dupes|awk '{ a=1-a; if(!a) print $0 }'`
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
yum-complete-transaction --cleanup-only
怎么查看磁盘使用情况?
df -h
用了centmin之后磁盘空间不够了怎么办?
ccache -C
du -sh /svr-setup
cd /svr-setup/ rm -rf /svr-setup/*
cd /usr/local/nginxbackup rm -rf /usr/local/nginxbackup/nginxdirbackup/* rm -rf /usr/local/nginxbackup/confbackup/*
不记得nginx的路径了
which nginx
或
ps aux | grep nginx
one response
SNET