Centos7.6提示no space left on device時(shí)如何清理空間?
Centos7.6提示no space left on device時(shí)如何清理空間?
1.可以通過(guò)清除系統(tǒng)日志來(lái)清理空間,輸入以下命令即可清理對(duì)應(yīng)文件
cat /dev/null > /var/log/syslog
cat /dev/null > /var/adm/sylog
cat /dev/null > /var/log/wtmp
cat /dev/null > /var/log/maillog
cat /dev/null > /var/log/messages
cat /dev/null > /var/log/openwebmail.log
cat /dev/null > /var/log/maillog
cat /dev/null > /var/log/secure
cat /dev/null > /var/log/httpd/error_log
cat /dev/null > /var/log/httpd/ssl_error_log
cat /dev/null > /var/log/httpd/ssl_request_log
cat /dev/null > /var/log/httpd/ssl_access_log
相關(guān)推薦
網(wǎng)站訪(fǎng)問(wèn)速度慢該如何優(yōu)化?
云服務(wù)器是如何使用數(shù)據(jù)庫(kù)的?