写一个脚本,可以执行“开启,正常关闭,强行关闭”等功能。


[root@foundation28 bin]#vim westos.sh

写脚本如下:

虚拟机管理     脚本    作业_虚拟机


执行效果:


虚拟机管理     脚本    作业_虚拟机_02