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中配置的使用者密碼)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30126024/viewspace-2135862/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- VNC安裝配置VNC
- 【VNC】Linux環境VNC服務安裝、配置與使用VNCLinux
- Linux安裝配置vncLinuxVNC
- vnc簡單的安裝使用VNC
- 【VNC】Linux環境VNC服務安裝、配置與使用(精簡版)VNCLinux
- CentOS 8.2下VNC安裝與配置CentOSVNC
- VNC安裝配置詳細說明VNC
- CentOS 7 安裝配置 VNC 詳解CentOSVNC
- Linux環境VNC服務安裝、配置與使用LinuxVNC
- VNC的安裝與使用(轉載)VNC
- LINUX下VNC服務的安裝配置LinuxVNC
- vnc for linux 安裝與使用VNCLinux
- AIX6.1下安裝及配置VNCAIVNC
- 在centos5下安裝配置VNCCentOSVNC
- 安裝vncVNC
- vnc安裝VNC
- vnc管理工具,vnc管理工具安裝使用教程,linux如何安裝vnc server?VNCLinuxServer
- vnc安裝步驟,vnc安裝步驟詳解VNC
- CentOS 安裝 VNCCentOSVNC
- vnc在solaris的安裝VNC
- vnc遠端安裝,在Linux中vnc遠端安裝的教程VNCLinux
- vnc安裝步驟,4個vnc安裝步驟實現vnc與Linux的連線VNCLinux
- Solaris下安裝VNCVNC
- Linux 配置、使用VNCLinuxVNC
- AIX上配置、使用VNCAIVNC
- 配置VNC使用KDE介面VNC
- vnc安裝步驟,4個在Linux下vnc的個安裝步驟VNCLinux
- vnc遠端控制軟體,vnc遠端控制軟體怎麼使用,vnc server如何安裝?VNCServer
- mongodb的安裝配置,使用MongoDB
- Nginx的安裝配置使用Nginx
- VNC的配置VNC
- linux上安裝VNCLinuxVNC
- 在AIX上安裝VNCAIVNC
- AIX下安裝VNC ServerAIVNCServer
- centOS學習part3:遠端工具VNC的安裝與配置CentOSVNC
- CENTOS5.3 64位 VNC遠端控制Centos 安裝配置CentOSVNC
- Centos6.9下安裝並使用VNC的操作記錄CentOSVNC
- vnc安裝步驟,如何在Linux(CentOS 7)下vnc安裝步驟VNCLinuxCentOS