Turn off the action Association for Ctrl+alt+del Auto Restart
This operation must be done, or there is an accident really is not even cry, Linux this really pit dad, do not login, directly press Ctrl+alt+del can restart the server? The important thing is that in the production environment Windows many times need Ctrl+alt+del wake up, if accidentally pressed, hahaha haha ah ha! Congratulations ~
Everyone familiar with the Linux startup process should know that we can go to/etc/inittab to find the Ctrl+alt+del control file.
Use the following command to modify the configuration file
rhel6 |
command |
|
original |
start on Control-alt-delete |
modified to |
# # |
RHEL7 |
Command |
shell># Rm-rf/usr/lib/systemd/system/ctrl-alt-del.target |
After completion, you can use the following command to take effect without rebooting the system
You can also use the following command to restart the system to take effect
Verify
Click Ctrl+alt+del in the CLI and the system has no response, indicating success.
This article is from the Blue Wings blog, so be sure to keep this source http://wqlszy2016.blog.51cto.com/2668358/1891343
Linux system initialization--turn off Operation Association for Ctrl+alt+del Auto Restart