max*_*max 9 linux vnc centos vnc-viewer
我在服务器中安装了tigervnc-server 包。
[root@localhost ~]# rpm -qa Tigervnc-server Tigervnc-server-1.1.0-5.el6.i686
创建了一个 vnc 用户并为该用户创建了 vncpasswd。
[root@localhost ~]# useradd vnc [root@localhost ~]# vncpasswd vnc 密码: 核实: [root@localhost ~]#
在/etc/sysconfig/vncserver
我改变了这两行
VNCSERVERS="2:vnc" VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
之后我重新启动了vncserver
服务
[root@localhost ~]# service vncserver restart 关闭 VNC 服务器:2:vnc [OK] 启动 VNC 服务器:2:vnc 新的 'localhost.localdomain:2 (vnc)' 桌面是 localhost.localdomain:2 启动 /home/vnc/.vnc/xstartup 中指定的应用程序 日志文件是 /home/vnc/.vnc/localhost.localdomain:2.log [ 好的 ]
清iptables
还。
[root@localhost ~]# iptables -F
在客户端运行 vncviewer 时出现此错误
[root@client ~]# vncviewer 10.10.2.39:2
如何解决这个错误?
小智 10
您也可能想尝试此选项:
-本地主机没有
对我有用的命令是:
vncserver -localhost no -geometry 800x600 -depth 24
这个想法是让 vncserver 监听网络接口,而不仅仅是环回接口 (lo)。
归档时间: |
|
查看次数: |
72301 次 |
最近记录: |