【问题描述】
鲲鹏环境下安装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
如下图所示:

2、重启sshd
systemctl status sshd.service
3、使用ssh工具连接系统时,勾选“X11-Forwarding”,Mobaxterm工具截图截图如下:

4、将root用户的.Xauthority拷贝到安装weblogic的非root用户路径下并更改属组,如下命令以weblogic用户为例(根据实际环境进行替换):
cp /root/.Xauthority /home/weblogic/
cd /home/weblogic
chown weblogic:weblogic .Xauthority
【问题描述】
鲲鹏环境下安装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
如下图所示:
2、重启sshd
systemctl status sshd.service
3、使用ssh工具连接系统时,勾选“X11-Forwarding”,Mobaxterm工具截图截图如下:
4、将root用户的.Xauthority拷贝到安装weblogic的非root用户路径下并更改属组,如下命令以weblogic用户为例(根据实际环境进行替换):
cp /root/.Xauthority /home/weblogic/
cd /home/weblogic
chown weblogic:weblogic .Xauthority