VNC SERVER

1、VNC的安裝
#yum install tigervnc-server –y
#vi /etc/sysconfig/vncservers
VNCSERVERS="1:root 2:oracle"
VNCSERVERARGS[1]="-geometry 1280x1024"
VNCSERVERARGS[2]="-geometry 1280x1024"


2、VNC的啓動與關係
Root用戶下執行:
#vncserver :1    #端口號爲5901
#vncserver :2    #端口號爲5901
[root@noded ~]# vncserver -list    #只能看到本身的
TigerVNC server sessions:
X DISPLAY #     PROCESS ID
:1              2941
:2              2610
Oracle用戶下
#vncserver :2        #端口號爲5901
[oracle@noded ~]$ vncserver -list
TigerVNC server sessions:
X DISPLAY #     PROCESS ID
:4              3336

關閉
[root@noded ~]# vncserver –list    
TigerVNC server sessions:
X DISPLAY #     PROCESS ID
:1              3781
:2              4120

[root@noded ~]# vncserver -kill :1
Killing Xvnc process ID 2941
[root@noded ~]# vncserver -kill :2
Killing Xvnc process ID 2610

修改密碼
#vncpasswd 

防火牆設置
# iptables -I INPUT -p tcp --dport 5901 -j ACCEPT
相關文章
相關標籤/搜索