鲲鹏环境下安装weblogic报“can't connect to x11 window server using ':0' as the value of the DISPLAY variable”解决方法
收藏回复举报
鲲鹏环境下安装weblogic报“can't connect to x11 window server using ':0' as the value of the DISPLAY variable”解决方法
发表于2023-09-16 21:54:34
0 查看

【问题描述】

鲲鹏环境下安装weblogic报“can't connect to x11 window server using ':0' as the value of the DISPLAY variable”错误,详细报错信息如下:

Checking monitor: must be configured to display at least 256 colors.  DISPLAY environment variable not set.    Failed <<<<

can't connect to x11 window server using ':0' as the value of the DISPLAY variable

【解决方法】

1、修改/etc/ssh/sshd_config

vim /etc/ssh/sshd_config,增加如下内容

X11Forwarding yes

#X11DisplayOffset 10

X11UseLocalhost yes

如下图所示:

cke_11586.png

2、重启sshd

systemctl status sshd.service

3、使用ssh工具连接系统时,勾选“X11-Forwarding”,Mobaxterm工具截图截图如下:

cke_31917.png

4、将root用户的.Xauthority拷贝到安装weblogic的非root用户路径下并更改属组,如下命令以weblogic用户为例(根据实际环境进行替换):

cp /root/.Xauthority /home/weblogic/

cd /home/weblogic

chown weblogic:weblogic .Xauthority

本帖最后由 匿名用户 于 2025/04/01 19:31:32 编辑

我要发帖子