确保服务器是图形界面
2.
yum -y install pixmanpixman-devel libXfont tigervnc tigervnc-server
3.
vim /etc/sysconfig/vncservers
# 配置文件添加一下内容
VNCSERVERS="1:root" #多用户访问“1:root2:user”
VNCSERVERARGS[1]="-geometry 800x600 "
VNCSERVERARGS[2]="-geometry 800x600 "
VNCSERVERARGS[3]="-geometry 800x600 "
VNCSERVERARGS[4]="-geometry 800x600 "
VNCSERVERARGS[5]="-geometry 800x600 "
VNCSERVERARGS[6]="-geometry 800x600 "
VNCSERVERARGS[7]="-geometry 800x600 "
VNCSERVERARGS[8]="-geometry 800x600 "
(3)
设置访问密码
vncpasswd
重启服务:
service vncserver restart
本文出自 “笔记” 博客,请务必保留此出处http://sunflower2.blog.51cto.com/8837503/1675756
原文地址:http://sunflower2.blog.51cto.com/8837503/1675756