Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.(示例

Posted dev0ps

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.(示例相关的知识,希望对你有一定的参考价值。

安装oracle数据时需要用到图形界面安装,当我们用root用户登录后切换到oracle用户时运行./runInstaller
提示报错: Can‘t connect to X11 window server using ‘:1.0‘ as the value of the DISPLAY variable.

这是因为没有赋予oracle运行图形界面的权限,这时只要在root下运行xhost + 然后回车即可解决问题。
[[email protected] ~]# xhost +
access control disabled, clients can connect from any host
[[email protected] ~]#
[[email protected] ~]# su - oracle
 再运行./runInstaller就可以出安装界面了。

以上是关于Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.(示例的主要内容,如果未能解决你的问题,请参考以下文章

Linux 下centos7启动 Tomcat 抛出Can't connect to X11 window server 问题的解决方法

CentOS8安装pycharm报错Can't connect to X11 window server using ':0' as the value of the DIS(

Can‘t connect to X11 window server using ‘localhost:10.0‘ as the value of th

[Z3001] connection to database 'zabbix' failed: [2003] Can't connect to MySQL server on

Can't connect to MySQL server (10065)

MySQL Can't connect to MySQL server on 'localhost' (10061)