现象描述
用图形界面形式安装数据库遇到报错,显示报错信息如下:
[dmdba@localhost mnt]$ ./DMInstall.bin
解压安装程序…
No protocol specified
Exception in thread “main” org.eclipse.swt.SWTError: No more handles
[gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4109)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:902)
at org.eclipse.swt.widgets.Display.create(Display.java:890)
at org.eclipse.swt.graphics.Device.
at org.eclipse.swt.widgets.Display.
at org.eclipse.swt.widgets.Display.
at org.eclipse.swt.widgets.Display.getDefault(Display.java:1693)
at org.eclipse.swt.widgets.Shell.
at org.eclipse.swt.widgets.Shell.
at org.eclipse.jface.window.Window.createShell(Window.java:487)
at org.eclipse.jface.window.Window.create(Window.java:430)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at com.dameng.install.ui.MainApplication.run(Unknown Source)
at com.dameng.install.ui.MainApplication.main(Unknown Source)
[dmdba@localhost mnt]$
问题原因
当前操作系统的登录用户应该为非dmdba 用户,如果在当前会话中启用图形界面需
要将图形界面权限放开。
解决方法
切换到root 用户后在命令行中输入xhost +,可以使得dmdba 可以调用图形界面进行安装。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




