VNC的安装配置使用-创新互联
创新互联主营西岗网站建设的网络公司,主营网站建设方案,app开发定制,西岗h5成都微信小程序搭建,西岗网站营销推广欢迎西岗等地区企业咨询ong>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中配置的用户密码)
网站栏目:VNC的安装配置使用-创新互联
文章链接:http://bzwzjz.com/article/cdopop.html