Vm配置安裝CentOS-7-Minimal

來源:互聯網
上載者:User

標籤:

CentOS-7-Minimal

記錄下在虛擬機器裡裝CentOS-7-Minimal的過程,以前都是裝的帶有映像化介面的CentOS7,試著裝一個最小化版本的CentOS7來熟悉這個過程,以後工作中的使用。

安裝安裝Vm(略)安裝CentOS7

參考:
http://www.tecmint.com/centos-7-installation/

也可以直接下Minimal版的CentOS7

# 地址http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

安裝步驟(略)

配置Vm

主要是為了修改IP為我們自己的IP格式,而且可以訪問網路。

開啟虛擬機器

編輯 – 虛擬網路編輯器

設定NAT

設定主機的串連方式

修改CentOS7的IP查看IP

Minimal版CentOS7是不支援ifconfig,我們可以用以下命令來查看IP,也可以通過安裝ifconfig

ip addr

安裝ifconfig

#尋找 ifconfig 的安裝包yum provides ifconfig

如下:

#安裝 ifconfig 的安裝包yum install net-tools

查看IP

ifconfig

修改IP
cd /etc/sysconfig/network-scripts/vi ifcfg-eno16777736

修改屬性

#要修改的資料BOOTPROTO=staticIPADDR=192.168.2.100        ###NETMASK="255.255.255.0"     ###GATEWAY=192.168.2.2         ###DNS1=8.8.8.8                ###ONBOOT=yes                  ###

重啟network

/etc/init.d/network restart
測試IP

查看windows主機IP

使用虛擬機器主機 ping 192.168.1.100

說明IP設定成功

修改主機名稱

1、查看主機名稱

hostname 、hostnamectl 或 hostnamectl status

2、修改主機名稱

hostnamectl set-hostname min01

Vm配置安裝CentOS-7-Minimal

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.