In the actual production environment to prevent misoperation restart I. CentOS5.X prohibit at the same time press Ctrl + Alt + Del restart edit/etc/inittab find ca: 12345: ctrlaltdel:/sbin/shutdown-t1-a-rnow change to # ca: 12345: ctrlaltdel:/sbin/shutdown-t1-
Prevents misoperation and restart in the actual production environment
1. CentOS5.X do not press Ctrl + Alt + Del to restart at the same time
Edit/etc/inittab
Find
CAS: 12345: ctrlaltdel:/sbin/shutdown-t1-a-r now
Change
# Ca: 12345: ctrlaltdel:/sbin/shutdown-t1-a-r now
Or delete the row. save and exit;
II. CentOS6.X do not press Ctrl + Alt + Del to restart at the same time
Method 1:
Edit/etc/init/control-alt-delete.conf
Find
Start on control-alt-delete
Change
# Start on control-alt-delete
Method 2:
Mv/etc/init/control-alt-delete.conf/etc/init/control-alt-delete.conf.bak
Note: it takes effect immediately without restarting.