window客户端:VNC软件客户端
LINUX 服务端:【注意,LINUX上以哪个用户创建,连接成功后的身份就是哪个用户】
[sybase@sybase_1 ~]$ vncserver :3
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /home/sybase/.Xauthority
xauth: (stdin):1: bad display name "sybase_1:3" in "add" command
New 'sybase_1:3 (sybase)' desktop is sybase_1:3
Creating default startup script /home/sybase/.vnc/xstartup
Starting applications specified in /home/sybase/.vnc/xstartup
Log file is /home/sybase/.vnc/sybase_1:3.log
[sybase@sybase_1 ~]$ netstat -antlp | grep vnc
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)【查看生成端口】
tcp 0 0 0.0.0.0:5903 0.0.0.0:* LISTEN 1175/Xvnc
tcp 0 0 0.0.0.0:6003 0.0.0.0:* LISTEN 1175/Xvnc
tcp 0 0 :::6003 :::* LISTEN 1175/Xvnc
【注意】使用完后,最好KILL 掉进程,关服务好像不行