上一篇已经安装好了虚拟机,这个时候我需要使用xshell连接到虚拟机,我们需要知道虚拟机中linux(下面直接称为linux)系统的ip地址,我们使用ifconfig命令

虚拟机中使用centos-----2

发现ifconfig命令无法使用,

由于我安装的linux是最小化安装,即所有的命令都需要自己去安装

此时使用yum install net-tools安装软件包(即安装ifconfig命令),需要注意的是:不要连接其他虚拟机,有可能会占用网络导致无法安装

安装完成后即可使用ifconfig命令

虚拟机中使用centos-----2

显示了ip以后使用xshell连接即可

 

转载于:https://my.oschina.net/jxchen/blog/1558421

相关文章:

  • 2021-08-06
  • 2022-01-19
  • 2021-09-25
  • 2021-12-05
  • 2021-06-09
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
猜你喜欢
  • 2021-09-02
  • 2021-11-09
  • 2021-06-28
  • 2022-02-04
  • 2021-09-22
  • 2021-04-11
  • 2021-10-30
相关资源
相似解决方案