• 临时目录/tmp


    Linux/tmp/var/tmp
    /tmp 10
    /var/tmp 30
    CentOS 6/etc/cron.daily/tmpwatch
    [root@db01 ~]# cat /usr/lib/tmpfiles.d/tmp.conf 
    #  This file is part of systemd.
    #
    #  systemd is free software; you can redistribute it and/or modify it
    #  under the terms of the GNU Lesser General Public License as published by
    #  the Free Software Foundation; either version 2.1 of the License, or
    #  (at your option) any later version.
    
    # See tmpfiles.d(5) for details
    
    # Clear tmp directories separately, to make them easier to override
    v /tmp 1777 root root 10d
    v /var/tmp 1777 root root 30d
    
    # Exclude namespace mountpoints created with PrivateTmp=yes
    x /tmp/systemd-private-%b-*
    X /tmp/systemd-private-%b-*/tmp
    x /var/tmp/systemd-private-%b-*
    X /var/tmp/systemd-private-%b-*/tmp

    /tmp

    [root@db01 ~]# mkdir -p /tmp
    [root@db01 ~]# chmod a+rwx,o+t /tmp
    [root@db01 ~]# ls -ld /tmp
    drwxrwxrwt. 9 root root 4096 Jan 13 03:47 /tmp
  • 相关阅读:
    sublime text添加snippet
    python __globals__, __file__
    Zen of Python
    Python的魔法函数之
    tornado session
    sqlalchemy学习
    自控力
    无需编译、快速生成 Vue 风格的文档网站
    python描述符理解
    python property理解
  • 原文地址:https://www.cnblogs.com/zhouwanchun/p/16481484.html
Copyright © 2020-2023  润新知