注册

Centos7安装DM8,gui界面无法正常显示?

青松 2025/03/25 351 6

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:dm8
【操作系统】:centos7
【CPU】:Intel(R) Xeon(R) W-2123 CPU @ 3.60GHz
【问题描述】*:在安装配置dm8时,命令行安装、配置实例可正常操作,但是在图形化安装、配置实例时无法正常显示gui界面

启用图形界面前需要通过如下方法将图形界面权限放开:
Copy
[root@localhost mnt]# xhost +
access control disabled, clients can connect from any host
[root@localhost mnt]# echo $DISPLAY
[root@localhost mnt]# su - dmdba
Last login: 四 1月 25 16:41:51 CST 2024 on pts/1
[dmdba@localhost ~]$ export DISPLAY=:0.0
进入 DM 安装目录下的 tool 目录,使用如下命令打开 DM 服务查看器,如下所示:

Copy
[dmdba@localhost ~]$ cd /home/dmdba/dmdbms/tool/
[dmdba@localhost tool]$ ll
[dmdba@localhost tool]$ ./dbca.sh

执行到这里就会卡住,没有对应的gui界面弹出
image.png

这里是执行./dbca.sh指令及前期的配置xhost操作

[dmdba@localhost mnt]$ xhost +
xhost:  unable to open display "192.168.124.121:0.0"
[dmdba@localhost mnt]$ su
Password: 
[root@localhost mnt]# xhost +
xhost:  unable to open display "192.168.124.121:0.0"
[root@localhost mnt]# echo $DISPLAY
192.168.124.121:0.0
[root@localhost mnt]# xhost +
xhost:  unable to open display "192.168.124.121:0.0"
[root@localhost mnt]# ps aux | grep Xorg
root       951  0.0  0.0 225960  3632 ?        Ss   Mar11   0:00 /usr/bin/abrt-watch-log -F Backtrace /var/log/Xorg.0.log -- /usr/bin/abrt-dump-xorg -xD
root     56662  0.0  0.0 112812   972 pts/2    S+   16:56   0:00 grep --color=auto Xorg
[root@localhost mnt]# yum grouplist
Loaded plugins: fastestmirror, langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * epel: repo.jing.rocks
Available Environment Groups:
   Minimal Install
   Compute Node
   Infrastructure Server
   File and Print Server
   Cinnamon Desktop
   MATE Desktop
   Basic Web Server
   Virtualization Host
   Server with GUI
   GNOME Desktop
   KDE Plasma Workspaces
   Development and Creative Workstation
Available Groups:
   Cinnamon
   Compatibility Libraries
   Console Internet Tools
   Development Tools
   Educational Software
   Electronic Lab
   Fedora Packager
   General Purpose Desktop
   Graphical Administration Tools
   Haskell
   LXQt Desktop
   Legacy UNIX Compatibility
   MATE
   Milkymist
   Scientific Support
   Security Tools
   Smart Card Support
   System Administration Tools
   System Management
   TurboGears application framework
   Xfce
Done
[root@localhost mnt]# sudo systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
[root@localhost mnt]# sudo systemctl start graphical.target
[root@localhost mnt]# ps aux | grep Xorg
root       951  0.0  0.0 225960  3632 ?        Ss   Mar11   0:00 /usr/bin/abrt-watch-log -F Backtrace /var/log/Xorg.0.log -- /usr/bin/abrt-dump-xorg -xD
root     57101  0.0  0.0 112812   976 pts/2    S+   16:59   0:00 grep --color=auto Xorg

[root@localhost mnt]# lspci | grep -i vga
00:1f.5 Non-VGA unclassified device: Intel Corporation 200 Series/Z370 Chipset Family SPI Controller
21:00.0 VGA compatible controller: NVIDIA Corporation GP107GL [Quadro P1000] (rev a1)
[root@localhost mnt]# sudo yum install xorg-x11-drv-intel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * epel: repo.jing.rocks
Package xorg-x11-drv-intel-2.99.917-28.20180530.el7.x86_64 already installed and latest version
Nothing to do
[root@localhost mnt]# sudo yum install xorg-x11-drv-nvidia
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * epel: repo.jing.rocks
No package xorg-x11-drv-nvidia available.
Error: Nothing to do
[root@localhost mnt]# sudo systemctl start graphical.target
[root@localhost mnt]# xhost +
xhost:  unable to open display "192.168.124.121:0.0"
[root@localhost mnt]# export DISPLAY=:0
[root@localhost mnt]# xhost +
access control disabled, clients can connect from any host
[root@localhost mnt]# echo $DISPLAY
:0
[root@localhost mnt]# su - dmdba
Last login: Tue Mar 25 15:33:22 CST 2025 from 192.168.124.121 on pts/8
[dmdba@localhost ~]$ export DISPLAY=:0.0
[dmdba@localhost ~]$ cd /home/dmdba/dmdbms/tool/

[dmdba@localhost tool]$ ./dbca.sh
2025-03-25 17:06:44 [com.dameng.dbca.Startup]
[INFO] 启动DBCA


回答 0
暂无回答
扫一扫
联系客服