[weblogic@hdp-01 ~]$ xhost +
No protocol specified
xhost:  unable to open display "192.168.56.1:0.0"
[weblogic@hdp-01 ~]$ env|grep DISPLAY
DISPLAY=192.168.56.1:0.0
[weblogic@hdp-01 ~]$ exit
logout
[root@hdp-01 ~]#  env|grep DISPLAY
DISPLAY=localhost:10.0

然后看看 /etc/hosts 发现了缺失 localhost 

[root@hdp-01 ~]# cat /etc/hosts
192.168.56.129   hdp-01 

[root@hdp-01 ~]# vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.129   hdp-01
 
OJBK 了
[root@hdp-01 ~]# xhost +
access control disabled, clients can connect from any host
 
 
 

相关文章:

  • 2021-07-04
  • 2021-04-24
  • 2021-12-29
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
猜你喜欢
  • 2021-10-30
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案