VMware Workstation 虚拟机安装CentOS后续操做

1.安装VMware Toolsvim

[root@localhost Desktop]# tar -zxvf /media/VMware Tools/VMwareTools-*.tar.gz -C /tmp
[root@localhost Desktop]# ./tmp/vm***/./*.pl  */所有默认或有一项kernel modules输入yes也是能够

2.IP地址centos

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

 ifcfg-eth0编辑bash

ONBOOT=yes     */自启动
BOOTPROTO=static  */如改为DHCP,下面选项忽略
IPADDR=*.*.*.*
NETMASK=*.*.*.*
GATEWAY=*.*.*.*
DNS1=*.*.*.*
[root@localhost Desktop]# service network restart   */重启网卡

3.Yum源替换与更新ide

版本不一样下载的版本也不一样请访问:阿里云

    3.1 阿里云 http://mirrors.aliyun.com/help/centosrest

    3.2 中国科学技术大学 http://mirrors.ustc.edu.cn/ 建议    code

[root@localhost Desktop]# cd /etc/yum.repos.d
[root@localhost yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.backup
[root@localhost yum.repos.d]# wget -O CentOS-Base.repo https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2     */该版本为6
[root@localhost yum.repos.d]# yum makecache
[root@localhost yum.repos.d]# yum update   */根据状况更新

     其它版本访问:https://lug.ustc.edu.cn/wiki/mirrors/help/centosip

4.时钟更新get

    4.1 自动更新时间:it

[root@localhost Desktop]# yum install ntp
[root@localhost Desktop]# ntpdate cn.pool.ntp.org
相关文章
相关标签/搜索