首页 > 其他 > 详细

为虚拟化平台制作centos 7模板

时间:2018-10-09 15:31:33      阅读:244      评论:0      收藏:0      [点我收藏+]
直接贴命令:
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模板

原文:http://blog.51cto.com/9148519/2296269

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!