- 确保服务器是图形界面
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
时间: 2024-10-07 05:25:28