Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

来源:互联网 发布:知乎 梁湖清 编辑:程序博客网 时间:2024/05/16 06:13

1.   问题


用MobaXterm  在Linux上以root 账号安装ERP 时候,  报错



>> Invocation target exception: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable; you may consider checking your DISPLAY environment variable.


如下设置后,依然报 Error: Can't open display: :0.0


mo-1:/hana/FSPER/730_731_740_750 # DISPLAY=:0.0
mo-1:/hana/FSPER/730_731_740_750 # export DISPLAY
mo-1:/hana/FSPER/730_731_740_750 # xclock
Error: Can't open display: :0.0




2、 解决办法



10.5.1.2  是你当前window 的IP,  换成你自己的IP


mo-1:/hana/FSPER/730_731_740_750 # export DISPLAY=10.5.1.2:0.0
mo-1:/hana/FSPER/730_731_740_750 # env|grep DISPLAY
DISPLAY=10.5.1.2:0.0


再 安装,  就好了。。。。。。


mo-1:/hana/FSPER/730_731_740_750 # ./sapinst




0 0