当你运行xterm出现错误如下:
xterm Xt error: Can't open display:
xterm: DISPLAY is not set
我的系统centos6.2
解决办法:
1、首先确定你安装了x11:yum -y install xorg-x11-xauth
2、其次修改配置文件:/etc/ssh/sshd_config,
AllowTcpForwarding
yes
X11Forwarding
yes
ForwardX11
yes 或者(ForwardX11Trusted )
3、重启
本文介绍了如何解决在CentOS 6.2系统中使用xterm时出现的Can't open display错误,通过安装x11、修改sshd_config配置文件以及重启系统来解决问题。
400

被折叠的 条评论
为什么被折叠?



