--需要安装2个包
yum install vncserver
yum install vnc
--配置文件
/etc/sysconfig/vncservers
--重启服务
/etc/init.d/vncserver restart
--生成文件位置
~/.vnc
--打开vnc
vncserver
passwd:设置2次连接密码
--关闭vnc
vncserver -kill :1
--vnc的加密(需在配置文件里面设置)
vncviewer -shared -via root@192.168.0.12 localhost:1
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27633655/viewspace-1080090/ ,如需转载,请注明出处,否则将追究法律责任。