ÇáÓí ÈÇäÇá WHM/CPanel ßÑæä Cron ÊÝÑíÛ ÊáÞÇÆì clean /tmp
DISKCRITICAL files Mount Point “/var/tmp” Disk usage warning
cpanel /tmp” reached “critical” status - whm server has full inodes
How to clean /tmp on Centos/cPanel server?



Open SSH to your server, if SSH will not connect due to disk space full in tmp,
reboot your server in cloud server manager then try again.

Once connected run the following command.
ßæÏ:
yum install tmpwatch -y
Once tmpwatch is installed run command.
ßæÏ:
/usr/sbin/tmpwatch -am 12 /tmp
This will delete all files over 12 hours old. Next, we will configure your server to do this automatically.
ßæÏ:
EDITOR=nano crontab -e
Go to the very bottom and paste.
ßæÏ:
0 4 * * * /usr/sbin/tmpwatch -am 12 /tmp


Then press Control+X (on PC) or Command+x (on Mac) you will get confirmation do you want to save.
Type Y for yes, and press enter.

The Location for the crontab for root, /var/spool/cron so you can add the line by using CSE.
You can remove the session file using the following command.

ßæÏ:
# cd /tmp
# rm -rf sess_*
The filesystem “/var/tmp” mounted at “/var/tmp” reached “warn” status because you currently use 84.29% of its available blocks.

---------------------------------------------------
ááÊÍÞÞ ãä ÇáãÓÇÍÉ



ááÊÍÞÞ ãä ÇáãÓÇÍÉ Ýì tmp ááÜ inodes Çæ size ÇáÇÓÇÓí
ßæÏ:
df -i
ßæÏ:
df -h
ÔÇåÏ ÇíÖÇ
ßæÏ ãÔÇåÏÉ ÇáßÑæä cron Ýí ÇáÓí ÈÇäá Whm / Cpanel CSF Firewall
ÇáÓí ÈÇäÇá WHM Íá ãÔßáÉ ÇãÊáÇÁ ãÓÇÍÉ temp æÊÝÚíá inode usage
ÇáÓí ÈÇäÇá WHM/CPanel Íá ãÔßáÉ ÇãÊáÇÁ tmp folder 100% full - ÑÓÇáÉ DISKCRITICAL


ÇáãÑÌÚ:
https://www.ucartz.com/clients/index...el-server.html