為虛擬化平臺制作centos 7模板
阿新 • • 發佈:2018-10-09
模板 etc 制作 ipaddr add centos pre .gz tor 直接貼命令:
vi /etc/sysconfig/network-scripts/ifcfg-eth0 只保留以下內容:
TYPE="Ethernet"
BOOTPROTO="static"
NAME="eth0"
DEVICE="eth0"
ONBOOT="yes"
IPADDR=""
PREFIX=""
GATEWAY=""
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
為虛擬化平臺制作centos 7模板