当前位置:网站首页>Solution of DM database unable to open graphical interface
Solution of DM database unable to open graphical interface
2022-07-02 04:38:00 【Song Xiaorong】
In the installation or use of DM In the database , We often need to use graphical interfaces , But in some cases , We may fail to open the graphical interface , This chapter aims at winning the bid for kylin 7.0 In the environment , The reason why the graphical interface fails to open is given the corresponding solution .
This chapter introduces the adoption of VNC perhaps VMware Connect to the database server , And use Xmanager Third party tools connect to the server to open the graphical interface . The experimental environment won the bid of kylin 7.0 The operating system is installed xorg-x11 Graphical interface related package , If Linux The graphical interface is not installed in the environment , Please install first. xorg-x11 package .
adopt VNC perhaps VMware Workstation Connect
Use root The user logs in to the virtual machine , Switch to a dameng user , perform ./DMInstall.bin install DM database , Report errors : Failed to initialize graphical interface , If the current monitor window does not support the graphical interface , Please enter the folder where the installation files are located and use “./DMInstall.bin-i” Command line installation .
here , The reason for this problem , Is unable to open the graphical interface , Of course , We can also use /DMInstall.bin-i Non graphical interface installation , But this method is not as intuitive as the graphical interface , We can completely solve the problem of graphical interface , To realize the installation of graphical interface .
perform xclock Test the graphical interface , Tips “Error:Cann’topen display:”,DISPLAY The following display is empty , It indicates that... Is not set DISPLAY. Here's the picture :
Use root User execution xclock, At this time, the small clock can be turned on normally , explain root Of DISPLAY The environment variable is normal .
Use root User execution echo $DISPLAY see root Of DISPLAY Parameter values , Is shown as :2, Re execution su - dameng Switch to a dameng user , perform export DISPLAY=:2 Set up display environment variable , Re execution xclock, As shown in the figure below :
[[email protected]~]$ export DISPLAY=:2
[[email protected]~]$ xclock
At this time, you can turn on the small clock , Here's the picture .
And then execute ./DMInstall.bin You can normally open the graphical interface .
Sometimes , We set it up DISPLAY Still unable to open the graphical interface ( It usually occurs when the graphical interface is opened for the first time ), At this point you can use root User execution xhost +, Then switch to dameng user , Set up DISPLAY Then you can open the graphical interface .
In a virtual machine environment , We can also use dameng The user logs in to the virtual machine , You don't need any settings , perform ./DMInstall.bin You can open the graphical interface .
adopt Xmanager Third party tools connect
Windows Machine use Xshell Connect to the database server ,root After logging in, the user switches to dameng user , perform ./DMInstall.bin install DM database , Report errors : Failed to initialize graphical interface , If the current monitor window does not support the graphical interface , Please enter the folder where the installation files are located and use “./DMInstall.bin-i” Command line installation . As shown in the figure below :
The reason for the problem is also the setting of the graphical interface , Need to set up DISPLAY. Let's take a look DISPLAY Setting format of environment variables :
DISPLAY The format of environment variable is :host:NumA.NumB.
among ,host finger Xserver Host host name or IP Address , The graphics will be displayed on this machine , Can be the start of the graphical interface Linux/Unix machine , It can also be installed Exceed,X-Deep/32 etc. Windows Platform running Xserver Of Windows machine , If Host It's empty , said Xserver Running on this machine ; And graphic programs (Xclient) Use unix socket Way to connect to Xserver, instead of TCP The way ; Use TCP Mode connection ,NumA Subtract... For the connected port 6000 Value , If NumA by 0, Is connected to 6000 port ; Use unix socket Mode connection means connected unix socket The path of , If 0, Is connected to /tmp/.X11-unix/X0;NumB Almost always 0.
host The concept of is easy to understand , In fact, that is windows machine IP(A Connect B The server , Set to A Of IP).NumA.NumB It's not easy to understand what it means , But we can use Xmanager– Passive Tool View .
Be careful : Use Xshell Open the graphic world , Need to open Xmanager– Passive, The tool is in Xmanager Installation directory , Shortcuts are usually created on the desktop , Here's the picture .
Double-click on the run Xmanager- Passive, Will appear in the taskbar Xmanager- Passive The icon , Hovering the mouse will show that the device for graphical monitoring is [:0.0]. This value is NumA.NumB Value .
good , got it NumA.NumB after , Let's look at this machine windows Connected to the virtual machine IP Address , open CMD Window execution ipconfig see IP Address , Here's the picture .
My virtual machine network is set in host only mode , An intranet network will be established between the host and the virtual machine “ Ethernet adapter VMware Network Adapter VMnet1”.
It can also be used in virtual machines root User execution ifconfig View virtual machine IP Address information , Here's the picture , You can see IP The address is 192.168.88 start .
It can be seen that this machine windows Use between machine and virtual machine “ Ethernet adapter VMware Network AdapterVMnet1” Network communication , Execute the following command to set DISPLAY Of IP For this machine 192.168.88.1,NumA.NumB by 0.0.
[[email protected]~]$ export DISPLAY=192.168.88.1:0.0
Pop up window prompt “ A connection request was received from an unauthorized client . Please accept when starting the client or a known source .”.
choice “ yes ”, open clock Small clock , Here's the picture .
here , Then execute the installation script ./DMInstall.bin You can open the graphical interface .
Be careful , Some environments may be set up DISPLAY Still can't open after ( Usually when it is opened for the first time ), At this time in Linux On the main engine root User execution xhost + Command to open x-window Access rights of , To set up DISPLAY The graphical interface is normal .
[[email protected]~]# xhost +
in addition , When using third-party tools , Make sure that Xmanager–Passive Turn on . We can also use dameng User connection server , You don't need any settings , perform ./DMInstall.bin You can open the graphical interface .
If you are using DM Database time , perform dbca.sh Open the graphical interface of the database configuration assistant and report the following error , It is also a graphical problem , Follow the above method to set DISPLAY That's all right. .
Last , Let's summarize .
(1) Use VNC perhaps VMware When connecting and logging in to the database server , Set up DISPLAY Environment variables , You don't have to set it IP Address , because VNC And the virtual machine login to the server is operated on the local machine , Default DISPLAY Don't specify IP when , It means the machine localhost.
(2) If in Windows Machine use Xmanager When a third-party tool connects to the database server remotely and opens the graphical interface , First of all to ensure Xmanager–Passive Turn on , Then set the hostIP:NumA.NumB,hostIP The address is windows This machine IP, We need to pay attention to , Set up IP It needs to be set as the network for communication between the local machine and the virtual machine IP( For example, in virtual machine settings, the network adapter is set to host mode , An intranet virtual machine network will be established between the host and the virtual machine “ Ethernet adapter VMware Network Adapter VMnet1” Used for communication between host and virtual machine , Set this IP Address ).
(3)DISPLAY When the setting is correct , Still unable to open the graphical interface , For example, error reporting “Xlib:connection to ":0.0" refused by server Xlib: No protocolspecified” etc. , You can use root User execution xhost + command , Then switch users , Set up DISPLAY value .
(4)xclock Commands can be used to test graphical interfaces , according to xclock To locate the setting problem of the graphical interface , If xclock Can open normally , It shows that there is no problem with the graphical interface settings , Run the installation or open DM The graphical interface of the management tool reports an error , It's not about the graphical interface , It is necessary to check the reason from the error message .
边栏推荐
- Markdown编辑语法
- CorelDRAW Graphics Suite2022免费图形设计软件
- Pytorch---使用Pytorch进行鸟类的预测
- Social media search engine optimization and its importance
- 万卷共知,一书一页总关情,TVP读书会带你突围阅读迷障!
- June book news | 9 new books are listed, with a strong lineup and eyes closed!
- LeetCode-归并排序链表
- Exposure X8标准版图片后期滤镜PS、LR等软件的插件
- Mysql database learning
- Cannot activate CONDA virtual environment in vscode
猜你喜欢
66.qt quick QML Custom Calendar component (supports vertical and horizontal screens)
C language practice - binary search (half search)
Typescript practice for SAP ui5
[JS event -- event flow]
Deep understanding of lambda expressions
深圳打造全球“鸿蒙欧拉之城”将加快培育生态,优秀项目最高资助 1000 万元
Realize the function of data uploading
Vmware安装win10报错:operating system not found
One click generation and conversion of markdown directory to word format
Pytorch---使用Pytorch进行鸟类的预测
随机推荐
Deep understanding of lambda expressions
Message mechanism -- message processing
What methods should service define?
One step implementation of yolox helmet detection (combined with oak intelligent depth camera)
The core idea of performance optimization, dry goods sharing
June book news | 9 new books are listed, with a strong lineup and eyes closed!
Bitmap principle code record
Mysql中常见的锁
DC-1靶场搭建及渗透实战详细过程(DC靶场系列)
Learn what definitelytyped is through the typescript development environment of SAP ui5
How muddy is the water in the medical beauty industry with a market scale of 100 billion?
Use a mask to restrict the input of the qlineedit control
Several methods of capturing packets under CS framework
[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
Beginner crawler - biqu Pavilion crawler
C language practice - number guessing game
[improvement class] st table to solve the interval maximum value problem [2]
[understand one article] FD_ Use of set
powershell_ View PowerShell function source code (environment variable / alias) / take function as parameter
Its appearance makes competitors tremble. Interpretation of Sony vision-s 02 products