直接贴命令:
vi /etc/sysconfig/network-scripts/ifcfg-eth0 只保留以下内容:
TYPE="Ethernet"
BOOTPROTO="static"
NAME="eth0"
DEVICE="eth0"
ONBOOT="yes"
IPADDR=""
PREFIX=""
GATEWAY=""
rm -f /etc/udev/rules.d/70*
rm -f /etc/ssh/*key*
cat /dev/null > /var/log/audit/audit.log
cat /dev/null > /var/log/wtmp
cat /dev/null > /var/log/lastlog
cat /dev/null > /var/log/grubby
logrotate -f /etc/logrotate.conf
rm -f /var/log/*-* /var/log/*.gz
unset HISTFILE
rm -f ~/.bash_history
history -c
shutdown -h now
转载于:https://blog.51cto.com/9148519/2296269