安装vncserver
1 |
[root@test~]# yum install vnc-server |
配置vnc
1 2 3 4 |
[root@test ~]# vim /etc/sysconfig/vncservers VNCSERVERS="2:root" VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost" |
启动vnc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[root@abmdev01 ~]# vncserver You will require a password to access your desktops. Password: Verify: Passwords don't match - try again Password: Verify: New 'abmdev01:1 (root)' desktop is abmdev01:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/abmdev01:1.log |
使用客户端连接
关闭vnc连接
1 2 3 4 5 6 7 8 9 10 11 |
[root@test~]# vncserver -list TigerVNC server sessions: X DISPLAY # PROCESS ID :1 6069 :2 6487 [root@test~]# vncserver -kill :1 Killing Xvnc process ID 6069 [root@test~]# vncserver -kill :2 Killing Xvnc process ID 6487 |
关闭vnc服务
1 |
[root@test~]# service vncserver stop |