第一步:安裝VMware Workstation
第二步:安裝CentO S 7
第三步:安裝成功登錄以及查看IP地址
第四步:發現無網絡,需要配置網絡
修改ifcfg-ens33文件
重啟網卡:systemctl restart network
查看主機是否可以通信:
查看IP地址:
第五步:配置yum倉庫
打開CentO S-Base.repo:
刪除CentO S-Base.repo中所有內容並重新配置:
創建目錄並掛載光盤:
光盤掛載成功,使用yum安裝軟件包:
重啟:init 5/startx調出桌面
安裝VNC服務器:
設置VNC密碼:
重新開啟防火牆並添加端口5901-5905
[root@localhost ~]# systemctl restart firewalld
[root@localhost ~]# firewall-cmd --permanent --zone=public --add-port=5901-5905/tcp
開啟vncserver(兩種方法):
1、#systemctl status vncserver@:1.service
2、#vncserver
關閉vncserver:vncserver -kill :1
查看vncserver進程:vncserver list
查看服務器是否開機啟動:
#systemctl is-enabled vncserver@.service
查看文件:
#ll /lib/systemd/system/vncserver@.service
創建vncuser:
啟動vnc服務器,並設置vnc遠程登錄密碼:
查看IP地址:
打開vncviewer遠程連接:
查看vnc進程:
安裝Xming:
使用Xshell(SSH)連接:
連接的用戶:
輸入密碼:
測試: