安裝本地虛擬機Vmware14 + Centos7

Vmware work station14的安裝配置(虛擬網絡環境)

  • 安裝VMware,第一次安裝好不要卸載,重裝:先卸載,卸載乾淨(用everything搜索所有關於VMware文件夾刪除,清理垃圾註冊表,如果不這樣做,重裝後有可能連不上外網!!!)

虛擬網卡

  • 控制面板\網絡和 Internet\網絡連接
  • VMware Virtual Ethernet Adapter for VMnet1
  • VMware Virtual Ethernet Adapter for VMnet8

連接網絡異常

天天の記事簿,在VMware中使CentOS利用橋接上網
Linux不能上網ping:unknown host問題怎麼解決?

device eth0 does not seem to present

【轉】CentOS Linux解決Device eth0 does not seem to be present(linux)
Centos 配置eth0 提示Device does not seem to be present
怎麼用xshell連接本地虛擬機

查看系統版本

[root@tencent-cloud ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

目錄結構

bin目錄 :用來放常用的可執行文件,比如ls
sbin目錄:用來存放系統的可執行文件。
dev目錄:設備文件目錄。
etc目錄:配置文件目錄。

centos6下修改hostname

[root@centos6 ~]$ hostname                                              # 查看當前的hostnmae
centos6.magedu.com
[root@centos6 ~]$ vim /etc/sysconfig/network                            # 編輯network文件修改hostname行(重啓生效)
[root@centos6 ~]$ cat /etc/sysconfig/network                            # 檢查修改
NETWORKING=yes
HOSTNAME=centos66.magedu.com
[root@centos6 ~]$ hostname centos66.magedu.com                          # 設置當前的hostname(立即生效)
[root@centos6 ~]$ vim /etc/hosts                                        # 編輯hosts文件,給127.0.0.1添加hostname
[root@centos6 ~]$ cat /etc/hosts                                        # 檢查
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 centos66.magedu.com
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

[root@keyog-baidu-cloud mod]# vim /etc/hostname

centos7修改hostname

[root@centos7 ~]$ hostnamectl set-hostname centos77.magedu.com             # 使用這個命令會立即生效且重啓也生效
[root@centos7 ~]$ hostname                                                 # 查看下
centos77.magedu.com
[root@centos7 ~]$ vim /etc/hosts                                           # 編輯下hosts文件, 給127.0.0.1添加hostname
[root@centos7 ~]$ cat /etc/hosts                                           # 檢查
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 centos77.magedu.com
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

配置網絡

//配置網卡
cd /etc/sysconfig/network-scripts
vim ifcfg-eno16777736

BOOTPROTO=static
IPADDR="192.168.1.111"
GATEWAY="192.168.1.2"
DNS1="8.8.8.8"
ONBOOT="yes"

//查看網卡
ip addr

centos7安裝過程

在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
磁盤大小30G比較合適
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述

設置VMware Virtual Ethernet Adapter for VMnet8,NAT模式連接外網!!!

在這裏插入圖片描述
在這裏插入圖片描述

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