关于db2控制中心的启动

[复制链接]
查看11 | 回复2 | 2005-2-28 12:57:00 | 显示全部楼层 |阅读模式
这两天刚在turbolinux8 上安装了db2 8.1,
但启动控制中心时出错,错误提示如下。
db2inst1@db2:/root> db2cc 6789&
[1] 5163
db2inst1@db2:/root> Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window
server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:7
7)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:72)
at java.awt.Font.initializeFont(Font.java:285)
at java.awt.Font.(Font.java:319)
at javax.swing.plaf.FontUIResource.(FontUIResource.java:51)
at javax.swing.plaf.basic.BasicLookAndFeel.getFont(BasicLookAndFeel.java :252)
at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLo okAndFeel.java:271)
at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLo okAndFeel.java:210)
at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel. java:80)
at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel. java:1088)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:408)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:435)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:895)
at javax.swing.UIManager.initialize(UIManager.java:991)
at javax.swing.UIManager.maybeInitialize(UIManager.java:974)
at javax.swing.UIManager.getDefaults(UIManager.java:495)
at javax.swing.UIManager.get(UIManager.java:586)
at com.ibm.db2.tools.common.CommonUIManager.initialize(Unknown Source)
at CC.setLookAndFeel(Unknown Source)
at CC.(Unknown Source)
at CC.main(Unknown Source)
DB2JAVIT : RC = 1
望高手指点,先谢了!
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
it looks to me your X server config is not correct.
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
open another terminal and login with root, issue the following command:
$> xhost +
then try to start db2cc again.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行