达梦数据库(DM)——dmdba用户设置了DISPLAY环境变量但还是无法调用图形化界面,一调用就报错


如果跳转图形化界面失败,就切换到root用户执行xhost +

[root@localhost ~]# xhost +

xhost:  unable to open display ""

目前看到display为空,这样是跳转图形化界面是失败的

导入DISPLAY=:0

[root@localhost ~]# export DISPLAY=:0    

输出

[root@localhost ~]# echo $DISPLAY

:0

[root@localhost ~]# xhost +

access control disabled, clients can connect from any host

再次调用这样就可以了

相关