虚拟机

安装 vmtools 的步骤说明

1.进入 centos
2.点击 vm 菜单的->install vmware tools
3.centos 会出现一个 vm 的安装包
4.点击右键解压, 得到一个安装文件
5.进入该 vm 解压的目录 ,该文件在 /root/桌面/vmware-tools-distrib/下
6.安装 ./vmware-install.pl
7.全部使用默认设置即可
8.需要 reboot 重新启动即可生效

使用 vmtools 来设置 windows 和 linux 的共享文件夹

1)菜单->vm->setting, 如图设置即可
注意:设置选项为 always enable ,
这样可以读写了
2) windows 和 centos 可共享 d:/share 目录
可以读写文件了

3)在 centos 的 /mnt/hgfs/ 下

linux 网络环境配置

直 接 修 改 配 置 文 件 来 指 定 IP, 并 可 以 连 接 到 外 网 ( 程 序 员 推 荐 ) , 编 辑 vi
/etc/sysconfig/network-scripts/ifcfg-eth0
要求:将 ip 地址配置的静态的,ip 地址为 192.168.184.130

修改后,一定要 重启服务
1) service network restart
2) reboot 重启系统

原文地址:https://www.cnblogs.com/coder-lzh/p/9372072.html