第二章 虚拟机安装相关

2.网关配置

  vi /etc/sysconfug/network-scripts/ifcfg-ens-33

  启动网关:systemctl restart network.service

2.1防火墙

  查看状态:systemctl status firewalld

  关闭:systemctl stop firewalld

  禁用:systemctl disable firewalld

2.3软件安装限制

  文件路径 vi etc/

2.4关机

  halt:直接拔掉电源

  poweroff:直接关闭机器,但是有可能当前虚拟机其他人在使用

  shutdown - h now-马上关闭计算机,但是可以给其他用户发送消息

  reboot 重启虚拟机

2.5 快照与克隆

  拍摄快照:记录当前虚拟机的状态,拍摄快照的时候一定要关机;

  转到:回到某一个历史快照的节点;

  克隆:复制某一历史快照的节点. 链接克隆:只保存不同的配置 ;完整版克隆:所有整个克隆

 

使用putty\xshell\ftp软件连接虚拟机并对虚拟机进行操作

 

posted @ 2022-12-15 21:56  菜菜68  阅读(20)  评论(0)    收藏  举报