Chinaunix首页 | 论坛 | 博客
  • 博客访问: 868093
  • 博文数量: 192
  • 博客积分: 8554
  • 博客等级: 中将
  • 技术积分: 1892
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-12 04:36
文章分类

全部博文(192)

文章存档

2012年(5)

2010年(27)

2009年(22)

2008年(42)

2007年(51)

2006年(45)

分类:

2008-01-16 15:38:00

现象:
 
今天发现SAM无法正常显示.输入sam后,很长时间内没有反应.最后出现一些错误提示:
The DISPLAY environment variable is set to "*.*.*.*:0.0", but
the current configuration won't allow sam to run on that display.
The DISPLAY environment variable may be incorrect, or, if you are
running sam remotely, you may need to allow the remote system
to access your local X server by typing
      /usr/bin/X11/xhost +bjdcap7
on your local machine.
Do you want to proceed using the terminal version of sam?
(yes or no) [yes]
输入y后,可正常显示.
 
解决方法:
 
1.查看错误提示,可以看到有人修改了环境变量,将输出指向了"*.*.*.*:0.0"这个IP.(其实,后半部分的错误信息说明,那个IP也无法正常显示sam.嘿嘿~)
2.因为我用的是root用户,就先查看/.profile文件.发现在后半部分确实有人添加了以下信息:
export PS1='['`whoami`@':$PWD]'#
export TMP=/temp
export TEMP=/temp
export TMPDIR=/temp
export SAPINST_JRE_HOME=/opt/java1.4
export JAVA_HOME=/opt/java1.4
export DISPLAY=*.*.*.*:0.0
export SHLIB_PATH=/sapmnt/CNT/exe
alias cdsap='cd /sapcd/master/IM_HPUX_PARISC/SAPINST/UNIX/HP11_64'
alias cdtemp='cd /temp/sapinst_instdir/NW04/SYSTEM/ABAP/ORA/NUC'
 
3.经询问,原来是金姐添加的.就没问原因.估计是当时要在这个系统上装SAP netweaver的原因吧!
4.将export display那行注释掉就可以了.
 
 
============================================================
当初因为着急,没等出现错误信息,就在CU上问大侠们.我报告的现象是"sam无任何显示."
有位名为 的网友说可以先把/etc/sam下的东西mv出去,再将/usr/newconfig/etc/sam下的东西cp进来,试式.
试过了,在现在这种情况下是无法解决问题的.
只是不知道,如果确实没有显示的时候会不会有用.
谨此一记!
阅读(2659) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~