linux中安装配置vnc

戏子无情 提交于 2020-01-25 03:35:11

要求在图形化界面的虚拟机
安装实验环境

[root@localhost ~]# yum install -y vnc-server vnc vim

启动VNCSERVER

[root@localhost ~]# vncserver :1
You will require a password to access your desktops.
Password:自己设置的密码
Verify:和上述一样就行
New 'localhost:1 (zx)' desktop is localhost:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:1.log

配置VNC

[root@localhost ~]# vim /etc/sysconfig/vncservers
VNCSERVERS="2:hubery"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"

在远程Windows机器安装VNC Viewer软件并打开

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!