centos6.x 配置 vnc server
环境: centos6.x 桌面环境 用户root 安装vnc服务端软件 yum install -y tigervnc-server 配置vnc vncserver :1 设置密码后会自动生成相关配置文件 如下 root@localhost ~]# vncserver :1 You will require a password to access your desktops. Password: Verify: xauth: (stdin):1: bad display name "localhost:1" in "add" command New 'localhost:1 (root)' desktop is localhost:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/localhost:1.log 配置防火墙 vnc服务默认使用5900以后端口 :1使用5901 :2使用5902 ##以此类推 查看使用哪个端口 netstat -tupln|grep vnc tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 5969/Xvnc