Linux 7图形化安装Oracle或者其他软件,打不开图形界面的问题
(来源:网站编辑 2025-09-27 14:10)
文章正文
1、简介
linux 7操作系统图形化安装Oracle软件,需要设置DISPLAY环境变量,之前的版本几乎是不需要设置的,如果不设置DISPLAY环境变量,在启动图形界面的时候,很可能会遇到下面的错误。
[root@19cs ~]# xhost +access control disabled, clients can connect from any host[root@19cs ~]# su – oracle[oracle@19cs ~]$ cd $ORACLE_HOME[oracle@19cs dbhome_1]$ ./runInstallerERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.No X11 DISPLAY variable was set, but this program performed an operation which requires it.2、设置环境变量这时就需要设置DISPLAY环境变量了,但是现在并不清楚DISPLAY的端口,需要用xdpyinfo命令查看DISPLAY的当前端口是什么,默认是0。
[root@19cs ~]# xdpyinfo | headname of display: :0version number: 11.0vendor string: The X.Org Foundationvendor release number: 11905000X.Org version: 1.19.5maximum request size: 16777212 bytesmotion buffer size: 256bitmap unit, bit order, padding: 32, LSBFirst, 32image byte order: LSBFirstnumber of supported pixmap formats: 7xdpyinfo的命令输出过多,这里只需要关注第一行也就是name of display后面的值,然后设置DISPLAY环境变量的值为name of display后面的值即可。
[oracle@19cs dbhome_1]$ export DISPLAY=:0或者像下面这样设置也可以。
[oracle@19cs dbhome_1]$ export DISPLAY=localhost:0.03、重新打开图形化界面这时发现就解决这个问题,并且打开图形界面了。
[oracle@19cs dbhome_1]$ ./runInstaller
欢迎大家扫码关注:

本公众号只写原创,不接广告、不接广告、不接广告。下期小伙伴想学习什么技术,可以私信发我吆。
