RemoveIPC在RHEL7.x和Oracle Linux 7.2中的参数值

本文对比了Red Hat Enterprise Linux Server 7.2、7.3与Oracle Linux 7.2在默认设置上的差异,特别是针对/etc/systemd/logind.conf文件中RemoveIPC配置项的不同,默认设置分别为yes、no及明确设置为no。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

额外说明:如下参数均是安装之后的默认设置,没有修改过.
=========================Red Hat Enterprise Linux Server release 7.2 开始=========================
[root@localhost ~]# uname -r
3.10.0-327.el7.x86_64
[root@localhost ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.2 (Maipo)
[root@localhost ~]# 
[root@localhost ~]# cat /etc/systemd/logind.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.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes               ------------------>>>>>注意此处。
[root@localhost ~]# 
[root@localhost ~]# man logind.conf
       RemoveIPC=
         Defaults to "yes". --------->>>RemoveIPC的默认值是yes
=========================Red Hat Enterprise Linux Server release 7.2 结束=========================


=========================Red Hat Enterprise Linux Server release 7.3 开始=========================
[root@rhel73 ~]# uname -r
3.10.0-514.el7.x86_64
[root@rhel73 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.3 (Maipo)
[root@rhel73 ~]# cat /etc/systemd/logind.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.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=no        ------------------>>>>>注意此处。
[root@rhel73 ~]# 
[root@rhel73 ~]# man logind.conf
       RemoveIPC=
           Defaults to "no".--------->>>RemoveIPC的默认值是no
=========================Red Hat Enterprise Linux Server release 7.3 结束=========================



=================================Oracle  Linux release 7.2 开始===================================
[root@rac2 ~]# uname -r
3.8.13-98.7.1.el7uek.x86_64
[root@rac2 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.2 (Maipo)
[root@rac2 ~]# cat /etc/oracle-release 
Oracle Linux Server release 7.2
[root@rac2 ~]# cat /etc/systemd/logind.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.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#This is default for OL7.2
RemoveIPC=no        ------------------>>>>>注意此处。
[root@rac2 ~]# 
[root@rac2 ~]# man logind.conf
       RemoveIPC=
       Defaults to "yes"---------------->>RemoveIPC的默认值是yes.不过Oracle Linux 7.2中明确设置了RemoveIPC=no
=================================Oracle  Linux release 7.2 结束===================================
参考文章:
http://blog.csdn.net/msdnchina/article/details/50864065
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值