在bash下输入: vim 123 进入编辑模式,输入如下图所示 然后按: :wq 退出保存后 输入 sh 123 start/view/poweroff server/desktop 执行相关管理虚拟机的操作 转载于:https://blog.51cto.com/12120289/1863201