码迷,mamicode.com
首页 > 其他好文 > 详细

centos关闭ctrl+alt+del重启

时间:2017-05-24 13:39:19      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:配置文件

cat /etc/inittab 

# inittab is no longer used when using systemd.

#

# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.

#

# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target

#

# systemd uses ‘targets‘ instead of runlevels. By default, there are two main targets:

#

# multi-user.target: analogous to runlevel 3

# graphical.target: analogous to runlevel 5

#

# To view current default target, run:

# systemctl get-default

#

# To set a default target, run:

# systemctl set-default TARGET.target


ll /usr/lib/systemd/system/ctrl-alt-del.target

lrwxrwxrwx. 1 root root 13 Apr 12 23:42 /usr/lib/systemd/system/ctrl-alt-del.target -> reboot.target


rm /usr/lib/systemd/system/ctrl-alt-del.target 


init q


如需开启则重新创建链接,再次执行init q重新reload配置文件即可。

centos关闭ctrl+alt+del重启

标签:配置文件

原文地址:http://cstsncv.blog.51cto.com/4047083/1928861

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!