VNC的安装配置使用
发表于:2025-12-01 作者:千家信息网编辑
千家信息网最后更新 2025年12月01日,VNC的优势就是真实的操作界面是在服务端Xmanager Enterprise 4的Xshell和Xstart虽然是客户端连接服务端进行操作,但是真实的操作界面是在客户端,一旦网络中断或客户端出现问题
千家信息网最后更新 2025年12月01日VNC的安装配置使用VNC的优势就是真实的操作界面是在服务端
Xmanager Enterprise 4的Xshell和Xstart虽然是客户端连接服务端进行操作,但是真实的操作界面是在客户端,一旦网络中断或客户端出现问题,则操作中断
VNC也是客户端连接服务端进行操作,但是真实的操作界面是在服务端,遇到网络、客户端等问题导致连接中断时,在服务器端运行的东西不会中断
CentOS release 6.5 环境下的安装配置
安装
yum -y install tigervnc-server
或
yum -y install vnc-server
包tigervnc-server-1.1.0-18.el6.x86_64安装好了即可
配置VNC中root密码
[root@fusndb db]# vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /root/.Xauthority
New 'fusndb:1 (root)' desktop is fusndb:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/fusndb:1.log
配置VNC中oracle密码
[root@fusndb db]# su - oracle
[oracle@fusndb ~]$ vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /home/oracle/.Xauthority
New 'fusndb:2 (oracle)' desktop is fusndb:2
Creating default startup script /home/oracle/.vnc/xstartup
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/fusndb:2.log
保存配置信息
vi /etc/sysconfig/vncservers新增一行VNCSERVERS="1:root 2:oracle"
重启vncserver服务
[root@fusndb db]# service vncserver restart
Shutting down VNC server: 1:root 2:oracle [ OK ]
Starting VNC server: 1:root
New 'fusndb:1 (root)' desktop is fusndb:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/fusndb:1.log
2:oracle
New 'fusndb:2 (oracle)' desktop is fusndb:2
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/fusndb:2.log
[ OK ]
如下代表服务器端开启了4个VNC进程,分别是IP:1\IP:2\IP:3\IP:4,其中IP:4是在root用户下开启的,其他都是stadium
[root@SDBY ~]# ps -ef|grep vnc
stadmin 56068 1 0 13:54 ? 00:00:00 /usr/bin/Xvnc :2 -desktop SDBY:2 (stadmin) -auth /home/stadmin/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/stadmin/.vnc/passwd -rfbport 5902 -fp catalogue:/etc/X11/fontpath.d -pn
stadmin 56090 56089 0 13:54 ? 00:00:00 vncconfig -iconic
stadmin 56505 1 0 13:55 ? 00:00:00 /usr/bin/Xvnc :3 -desktop SDBY:3 (stadmin) -auth /home/stadmin/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/stadmin/.vnc/passwd -rfbport 5903 -fp catalogue:/etc/X11/fontpath.d -pn
stadmin 56528 56527 0 13:55 ? 00:00:00 vncconfig -iconic
root 56897 1 0 13:55 ? 00:00:00 /usr/bin/Xvnc :4 -desktop SDBY:4 (root) -auth /root/.Xauthority -geometry 1024x768 -r fbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5904 -fp catalogue:/etc/X11/fontpath.d -pn
root 56924 56923 0 13:56 ? 00:00:00 vncconfig -iconic
stadmin 58770 1 0 Jan25 ? 00:01:00 /usr/bin/Xvnc :1 -desktop SDBY:1 (stadmin) -auth /home/stadmin/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/stadmin/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
stadmin 58793 58792 0 Jan25 ? 00:00:00 [vncconfig]
root 58856 58308 0 14:31 pts/1 00:00:00 grep vnc
[root@SDBY ~]# service vncserver status
Xvnc (pid 58770 56897 56505 56068) 正在运行...
[root@SDBY ~]# kill -9 56897
[root@SDBY ~]# kill -9 56505
[root@SDBY ~]# kill -9 56068
[root@SDBY ~]# service vncserver status
Xvnc (pid 58770) 正在运行...
[root@SDBY ~]# ps -ef|grep vnc
stadmin 58770 1 0 Jan25 ? 00:01:00 /usr/bin/Xvnc :1 -desktop SDBY:1 (stadmin) -auth /home/stadmin/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/stadmin/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
stadmin 58793 58792 0 Jan25 ? 00:00:00 [vncconfig]
root 58969 58308 0 14:32 pts/1 00:00:00 grep vnc
客户端使用方法:
输入如下
服务器IP:VNC用户编号(192.168.30.138:2)
输入密码即可(非用户本身的OS登录密码,而是vnc中配置的用户密码)

Xmanager Enterprise 4的Xshell和Xstart虽然是客户端连接服务端进行操作,但是真实的操作界面是在客户端,一旦网络中断或客户端出现问题,则操作中断
VNC也是客户端连接服务端进行操作,但是真实的操作界面是在服务端,遇到网络、客户端等问题导致连接中断时,在服务器端运行的东西不会中断
CentOS release 6.5 环境下的安装配置
安装
yum -y install tigervnc-server
或
yum -y install vnc-server
包tigervnc-server-1.1.0-18.el6.x86_64安装好了即可
配置VNC中root密码
[root@fusndb db]# vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /root/.Xauthority
New 'fusndb:1 (root)' desktop is fusndb:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/fusndb:1.log
配置VNC中oracle密码
[root@fusndb db]# su - oracle
[oracle@fusndb ~]$ vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /home/oracle/.Xauthority
New 'fusndb:2 (oracle)' desktop is fusndb:2
Creating default startup script /home/oracle/.vnc/xstartup
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/fusndb:2.log
保存配置信息
vi /etc/sysconfig/vncservers新增一行VNCSERVERS="1:root 2:oracle"
重启vncserver服务
[root@fusndb db]# service vncserver restart
Shutting down VNC server: 1:root 2:oracle [ OK ]
Starting VNC server: 1:root
New 'fusndb:1 (root)' desktop is fusndb:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/fusndb:1.log
2:oracle
New 'fusndb:2 (oracle)' desktop is fusndb:2
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/fusndb:2.log
[ OK ]
如下代表服务器端开启了4个VNC进程,分别是IP:1\IP:2\IP:3\IP:4,其中IP:4是在root用户下开启的,其他都是stadium
[root@SDBY ~]# ps -ef|grep vnc
stadmin 56068 1 0 13:54 ? 00:00:00 /usr/bin/Xvnc :2 -desktop SDBY:2 (stadmin) -auth /home/stadmin/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/stadmin/.vnc/passwd -rfbport 5902 -fp catalogue:/etc/X11/fontpath.d -pn
stadmin 56090 56089 0 13:54 ? 00:00:00 vncconfig -iconic
stadmin 56505 1 0 13:55 ? 00:00:00 /usr/bin/Xvnc :3 -desktop SDBY:3 (stadmin) -auth /home/stadmin/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/stadmin/.vnc/passwd -rfbport 5903 -fp catalogue:/etc/X11/fontpath.d -pn
stadmin 56528 56527 0 13:55 ? 00:00:00 vncconfig -iconic
root 56897 1 0 13:55 ? 00:00:00 /usr/bin/Xvnc :4 -desktop SDBY:4 (root) -auth /root/.Xauthority -geometry 1024x768 -r fbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5904 -fp catalogue:/etc/X11/fontpath.d -pn
root 56924 56923 0 13:56 ? 00:00:00 vncconfig -iconic
stadmin 58770 1 0 Jan25 ? 00:01:00 /usr/bin/Xvnc :1 -desktop SDBY:1 (stadmin) -auth /home/stadmin/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/stadmin/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
stadmin 58793 58792 0 Jan25 ? 00:00:00 [vncconfig]
root 58856 58308 0 14:31 pts/1 00:00:00 grep vnc
[root@SDBY ~]# service vncserver status
Xvnc (pid 58770 56897 56505 56068) 正在运行...
[root@SDBY ~]# kill -9 56897
[root@SDBY ~]# kill -9 56505
[root@SDBY ~]# kill -9 56068
[root@SDBY ~]# service vncserver status
Xvnc (pid 58770) 正在运行...
[root@SDBY ~]# ps -ef|grep vnc
stadmin 58770 1 0 Jan25 ? 00:01:00 /usr/bin/Xvnc :1 -desktop SDBY:1 (stadmin) -auth /home/stadmin/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/stadmin/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
stadmin 58793 58792 0 Jan25 ? 00:00:00 [vncconfig]
root 58969 58308 0 14:32 pts/1 00:00:00 grep vnc
客户端使用方法:
输入如下
服务器IP:VNC用户编号(192.168.30.138:2)
输入密码即可(非用户本身的OS登录密码,而是vnc中配置的用户密码)

服务
客户
客户端
配置
密码
是在
用户
服务器
界面
运行
正在
网络
问题
输入
一行
东西
代表
优势
使用方法
信息
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
同步数据库管理
数据库中汉字的编码属性
c 软件开发 面经
简述数据库系统的安全机制
软件开发总结ppt演讲
英特尔服务器处理器主频为啥都低
服务器运维需要什么显示器
大学生网络安全班会总结
mac画数据库模型图
重庆电商软件开发方案
润和软件开发板 大禹
华为方舟手机版双人开服务器
深圳酒店软件开发咨询
本地服务器托管服务
网络安全之假冒热点
数据库管理技术课本
it技术软件开发
戴尔服务器进入管理界面
服务器带宽怎么算
火绒安全 服务器
多措并举维护网络安全
哈利波特服务器忘记了
大镖客2线上连接不到服务器
网易我的世界古代战争服务器
十大网络安全案件
网络安全危害多课堂实录
保密网络安全责任书
微信公众号为什么要用服务器
网络安全法泄露信息500条
本机装数据库放在固态里