How to specify port number when start up VNC server?

How to specify port number when start up VNC server?

Command line like below:
#vncserver -rfbport <port number>

-rfbport port
Specifies the TCP port on which Xvnc listens for connections from viewers (the protocol used in

VNC is called RFB - "remote framebuffer"). The default is 5900 plus the display number.

How to specify port number when shutdown VNC server?

#vncserver -kill :2

-EOF-

你可能感兴趣的:(server)