المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : السي بانال WHM/CPanel كرون Cron تفريغ تلقائى clean /tmp



Rise Company
29-07-2021, 01:32
السي بانال 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?

https://www.rise.company/upload/uploads/162751539942341.png

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

https://www.rise.company/upload/uploads/162751521622131.png

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.

---------------------------------------------------
للتحقق من المساحة

https://www.rise.company/upload/uploads/162751380337391.png

للتحقق من المساحة فى tmp للـ inodes او size الاساسي

df -i

df -h

شاهد ايضا
كود مشاهدة الكرون cron في السي بانل Whm / Cpanel CSF Firewall (https://www.rise.company/forum/threads/56016-%D9%83%D9%88%D8%AF-%D9%85%D8%B4%D8%A7%D9%87%D8%AF%D8%A9-%D8%A7%D9%84%D9%83%D8%B1%D9%88%D9%86-cron-%D9%81%D9%8A-%D8%A7%D9%84%D8%B3%D9%8A-%D8%A8%D8%A7%D9%86%D9%84-Whm-Cpanel-CSF-Firewall)
السي بانال WHM حل مشكلة امتلاء مساحة temp وتفعيل inode usage (https://www.rise.company/forum/threads/74752-%D8%A7%D9%84%D8%B3%D9%8A-%D8%A8%D8%A7%D9%86%D8%A7%D9%84-WHM-%D8%AD%D9%84-%D9%85%D8%B4%D9%83%D9%84%D8%A9-%D8%A7%D9%85%D8%AA%D9%84%D8%A7%D8%A1-%D9%85%D8%B3%D8%A7%D8%AD%D8%A9-temp-%D9%88%D8%AA%D9%81%D8%B9%D9%8A%D9%84-inode-usage)
السي بانال WHM/CPanel حل مشكلة امتلاء tmp folder 100% full - رسالة DISKCRITICAL (https://www.rise.company/forum/threads/74335-%D8%A7%D9%84%D8%B3%D9%8A-%D8%A8%D8%A7%D9%86%D8%A7%D9%84-WHM-CPanel-%D8%AD%D9%84-%D9%85%D8%B4%D9%83%D9%84%D8%A9-%D8%A7%D9%85%D8%AA%D9%84%D8%A7%D8%A1-tmp-folder-100-full-%D8%B1%D8%B3%D8%A7%D9%84%D8%A9-DISKCRITICAL)


المرجع:
https://www.ucartz.com/clients/index.php?rp=/knowledgebase/2139/How-to-clean-ortmp-on-CentosorcPanel-server.html