VMware Workstation 虛擬機CentOS安裝後續操作

1.安裝VMware Tools

[root@localhost Desktop]# tar -zxvf /media/VMware Tools/VMwareTools-*.tar.gz -C /tmp
[root@localhost Desktop]# ./tmp/vm***/*.pl  */全部默認或有一項kernel modules輸入yes也是可以

2.IP地址

[root@localhost Desktop]# vim /etc/sysconfig/network-scripts/ifcfg-eth0

 ifcfg-eth0編輯

ONBOOT=yes     */自啓動
BOOTPROTO=static  */如改成DHCP,下面選項忽略
IPADDR=*.*.*.*
NETMASK=*.*.*.*
GATEWAY=*.*.*.*
DNS1=*.*.*.*
[root@localhost Desktop]# service network restart   */重啓網卡

3.Yum源替換與更新

版本不同下載的版本也不同請訪問:

    3.1 阿里雲 http://mirrors.aliyun.com/help/centos

    3.2 中國科學技術大學 http://mirrors.ustc.edu.cn/ 建議    

[root@localhost Desktop]# wget -O CentOS-Base.repo https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2     */該版本爲6
[root@localhost Desktop]# yum makecache
[root@localhost Desktop]# yum update   */根據情況更新

     其它版本訪問:https://lug.ustc.edu.cn/wiki/mirrors/help/centos

4.時鐘更新

    4.1 自動更新時間:

[root@localhost Desktop]# yum install ntp
[root@localhost Desktop]# ntpdate cn.pool.ntp.org



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章