redhat系统使用xshell连接后无法弹出界面
2015-08-24 11:31
831 查看
问题现象:系统安装在redhat系统,使用xshell连接后无法弹出界面,主要异常信息如下
Caused by: java.lang.NoClassDefFoundError: sun.awt.X11GraphicsEnvironment (initialization failure)
Caused by: java.lang.InternalError: Can't connect to X11 window server using '192.168.1.135:0.0' as the value of the DISPLAY variable.
技术分析:
1.查看X11日志
[root@redhat ~]$ tail -100 /var/log/Xorg.0.log
其中有异常信息
[ 1699.465] AUDIT: Thu Aug 20 16:24:02 2015: 1690: client 12 disconnected
[ 1958.614] AUDIT: Thu Aug 20 16:28:21 2015: 1690: client 12 rejected from local host ( uid=501 gid=501 pid=2051 )
2. 进一步查看hosts文件
[root@redhat ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 redhat localhost.localdomain localhost
#::1 localhost6.localdomain6 localhost6
解决方案:发现localhost未有解析说明,尝试在hosts文件增加
127.0.0.1 localhost
再尝试打开界面脚本,可以正常打开界面
Caused by: java.lang.NoClassDefFoundError: sun.awt.X11GraphicsEnvironment (initialization failure)
Caused by: java.lang.InternalError: Can't connect to X11 window server using '192.168.1.135:0.0' as the value of the DISPLAY variable.
技术分析:
1.查看X11日志
[root@redhat ~]$ tail -100 /var/log/Xorg.0.log
其中有异常信息
[ 1699.465] AUDIT: Thu Aug 20 16:24:02 2015: 1690: client 12 disconnected
[ 1958.614] AUDIT: Thu Aug 20 16:28:21 2015: 1690: client 12 rejected from local host ( uid=501 gid=501 pid=2051 )
2. 进一步查看hosts文件
[root@redhat ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 redhat localhost.localdomain localhost
#::1 localhost6.localdomain6 localhost6
解决方案:发现localhost未有解析说明,尝试在hosts文件增加
127.0.0.1 localhost
再尝试打开界面脚本,可以正常打开界面
相关文章推荐
- BASH find substring in string
- shell里的各种括号
- linux:bash基础
- 希尔排序(shell)
- BASH第七课第二题
- BASH第七课第一题
- 解决adb shell input text 中文输入,unicode转utf-8
- 查看linux中shell的几种方法汇总
- linux shell 正则表达式(BREs,EREs,PREs)差异比较
- linux shell 正则表达式(BREs,EREs,PREs)差异比较
- 有关PowerShell脚本你必须知道的十个基本概念
- 有关PowerShell脚本你必须知道的十个基本概念
- PowerShell 在线教程 4
- PowerShell 在线教程 4
- PowerShell与Unix Shell对比:八大实例
- PowerShell与Unix Shell对比:八大实例
- bash的基础特性(1)
- Linux下简单Shell实现(三)获取任务列表
- shell编程
- shell-流程控制 if