Error: Can't open display

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: Can't open display相关的知识,希望对你有一定的参考价值。

当你运行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、重启


以上是关于Error: Can't open display的主要内容,如果未能解决你的问题,请参考以下文章

Error: Can't open display

Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist(

[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn'

Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist(

Mysql报错Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't

“Unicode Error ”unicodeescape" codec can't decode bytes… Cannot open text files in Python 3