安装rhel8.2虚拟机

安装rhel8.2虚拟机,第1张

安装rhel8.2虚拟机

安装虚拟机
下载rhel-8.2-x86_64-dvd.iso
安装vwmare
新建虚拟机,自定义



然后起名字,选择安装位置

处理器根据自己电脑配置
内存也是

根据自己的需求选择网络模式

创建虚拟磁盘,根据自己电脑大小分配空间

选择ISO文件,并开启虚拟机,选择开始安装

选择语言(我用的中文),确定source和system,点击install


设置root用户的密码
以及可以设置一个普通用户,静静等待几分钟
安装完成后会自动重启

安装完成

编写静态路由,ssh远程连接
cd /etc/sysconfig/network-scripts/
vi ifcfg-ens160


onBOOT=yes
BOOTPROTO=static

写(根据自己的网卡写)
IPADDR=192.168.91.100
NETMASK=255.255.255.0
GATEWAY=192.168.91.2
DNS1=192.168.91.2

重启虚拟机,利用ssh远程连接

安装yum和vim
[base]
name=CentOS- r e l e a s e v e r − base − m i r r o r s . a l i y u n . c o m f a i l o v e r m e t h o d = p r i o r i t y base u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / c e n t o s / releasever - base - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/ releasever−Base−mirrors.aliyun.comfailovermethod=prioritybaseurl=https://mirrors.aliyun.com/centos/releasever/baseOS/ base a r c h / o s / h t t p : / / m i r r o r s . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.aliyuncs.com/centos/ basearch/os/http://mirrors.aliyuncs.com/centos/releasever/baseOS/ base a r c h / o s / h t t p : / / m i r r o r s . c l o u d . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.cloud.aliyuncs.com/centos/ basearch/os/http://mirrors.cloud.aliyuncs.com/centos/releasever/baseOS/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

#additional packages that may be useful
[extras]
name=CentOS- r e l e a s e v e r − E x t r a s − m i r r o r s . a l i y u n . c o m f a i l o v e r m e t h o d = p r i o r i t y base u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / c e n t o s / releasever - Extras - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/ releasever−Extras−mirrors.aliyun.comfailovermethod=prioritybaseurl=https://mirrors.aliyun.com/centos/releasever/extras/ base a r c h / o s / h t t p : / / m i r r o r s . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.aliyuncs.com/centos/ basearch/os/http://mirrors.aliyuncs.com/centos/releasever/extras/ base a r c h / o s / h t t p : / / m i r r o r s . c l o u d . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.cloud.aliyuncs.com/centos/ basearch/os/http://mirrors.cloud.aliyuncs.com/centos/releasever/extras/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS- r e l e a s e v e r − P l u s − m i r r o r s . a l i y u n . c o m f a i l o v e r m e t h o d = p r i o r i t y base u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / c e n t o s / releasever - Plus - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/ releasever−Plus−mirrors.aliyun.comfailovermethod=prioritybaseurl=https://mirrors.aliyun.com/centos/releasever/centosplus/ base a r c h / o s / h t t p : / / m i r r o r s . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.aliyuncs.com/centos/ basearch/os/http://mirrors.aliyuncs.com/centos/releasever/centosplus/ base a r c h / o s / h t t p : / / m i r r o r s . c l o u d . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.cloud.aliyuncs.com/centos/ basearch/os/http://mirrors.cloud.aliyuncs.com/centos/releasever/centosplus/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

[PowerTools]
name=CentOS- r e l e a s e v e r − P o w e r T o o l s − m i r r o r s . a l i y u n . c o m f a i l o v e r m e t h o d = p r i o r i t y base u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / c e n t o s / releasever - PowerTools - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/ releasever−PowerTools−mirrors.aliyun.comfailovermethod=prioritybaseurl=https://mirrors.aliyun.com/centos/releasever/PowerTools/ base a r c h / o s / h t t p : / / m i r r o r s . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.aliyuncs.com/centos/ basearch/os/http://mirrors.aliyuncs.com/centos/releasever/PowerTools/ base a r c h / o s / h t t p : / / m i r r o r s . c l o u d . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.cloud.aliyuncs.com/centos/ basearch/os/http://mirrors.cloud.aliyuncs.com/centos/releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

[AppStream]
name=CentOS- r e l e a s e v e r − A p p S t r e a m − m i r r o r s . a l i y u n . c o m f a i l o v e r m e t h o d = p r i o r i t y base u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / c e n t o s / releasever - AppStream - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/ releasever−AppStream−mirrors.aliyun.comfailovermethod=prioritybaseurl=https://mirrors.aliyun.com/centos/releasever/AppStream/ base a r c h / o s / h t t p : / / m i r r o r s . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.aliyuncs.com/centos/ basearch/os/http://mirrors.aliyuncs.com/centos/releasever/AppStream/ base a r c h / o s / h t t p : / / m i r r o r s . c l o u d . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.cloud.aliyuncs.com/centos/ basearch/os/http://mirrors.cloud.aliyuncs.com/centos/releasever/AppStream/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

vi /etc/yum.repos.d//redhat.repo
将上面的粘贴到里面
yum clean all
yum makecache
yum repolist

yum install vim
安装完成

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5694846.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存