服务器Tomcat启动 访问出现Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLA

来源:互联网 发布:中美 知乎 编辑:程序博客网 时间:2024/06/05 10:43

[oracle@localhost database]$ export DISPLAY=:0
[oracle@localhost database]$ su
Password:
[root@localhost database]# xhost + localhost
localhost being added to access control list

 

PS: xhost + hostname /IP : 指定的host就可以让Client端能使用当前服务器的X Server,即用服务器的显示设备做为终端来输出。

阅读全文
0 0