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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33450681/article/details/77865048

[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,即用服务器的显示设备做为终端来输出。

猜你喜欢

转载自blog.csdn.net/qq_33450681/article/details/77865048
今日推荐