1. 程式人生 > >centos 6.8模板機制作

centos 6.8模板機制作

centos

第一章虛擬化NAT網絡設置

使用DHCP自動獲取IP地址

技術分享

技術分享

第二章創建虛擬機

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

第三章安裝CentOS-6.8-x86_64-bin-DVD1操作系統

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

第四章模板機優化

開機後使用命令ifup eth0獲取到IP地址後。用SecureCRT連接。

4.1SecureCRT設置


技術分享

技術分享

技術分享

技術分享


技術分享

技術分享

技術分享

技術分享


4.2系統優化

優化開機網卡啟動

sed -i ‘s#ONBOOT=no#ONBOOT=yes#g‘ /etc/sysconfig/network-scripts/ifcfg-eth0

優化支持中文字符集

[[email protected] ~]# echo $LANG
en_US.UTF-8
[[email protected] ~]# . /etc/sysconfig/i18n 
[[email protected] ~]# echo $LANG
ch_CN.UTF-8

關閉selinux

[[email protected] ~]# sed -i ‘s#SELINUX=enforcing#SELINUX=disabled#g‘ /etc/sysconfig/selinux
[[email protected] ~]# getenforce
Enforcing
[[email protected] ~]# setenforce Permissive
[[email protected] ~]# getenforce
Permissive

Base源更改為阿裏雲

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo 
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
yum update -y


本文出自 “sandshell” 博客,請務必保留此出處http://sandshell.blog.51cto.com/9055959/1970344

centos 6.8模板機制作