首页 > 系统服务 > 详细

linux 开机自动清空/tmp目录是怎么回事

时间:2015-10-20 22:53:14      阅读:317      评论:0      收藏:0      [点我收藏+]

That depends on your distribution. On some system, it‘s deleted only when booted, others have cronjobs running deleting items older than n hours.

  • On Debian-like systems: on boot (the rules are defined in /etc/default/rcS).

  • On RedHat-like systems: by age (RHEL6 it was /etc/cron.daily/tmpwatch ; RHEL7 and RedHat-like with systemd it‘s configured in /usr/lib/tmpfiles.d/tmp.conf, called by systemd-tmpfiles-clean.service).

  • On Gentoo /etc/conf.d/bootmisc.

参考信息

linux 开机自动清空/tmp目录是怎么回事

原文:http://my.oschina.net/u/1011578/blog/519574

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!