欲速则不达
离上次更新已经有一个半月了,这段时间在机房待的比较多,弄的我耳鸣不止,双休日又读书,所以一直懒得动笔,难得的空闲时间又在沉迷《火炬之光》(Torch Light)。博这种东西,一旦有了惰性就完了啊,今天总算打起精神,记下最近走过的几个弯路。
在Linux上安装WAS7,图形界面无法启动的问题
$ ../JDK/jre.pak/repository/package.java.jre/java/jre/bin/java setup.jar The installer is unable to run in graphical mode. Try running the installer with the -console or -silent flag.
这个问题其实是freebsdjlu做实验的时候发现的,因为我之前安装都是没问题,所以一开始觉得是安装软件的问题,没下完整或者ftp没用二进制,后来发现是缺少compat-libstdc++-33这个包。
后来去查了安装环境要求,原来需要的包很多
Preparing Red Hat Enterprise Linux 5 for installation
Platforms that support both 32-bit and 64-bit applications require both the 32-bit and 64-bit versions of the following packages:
- compat-libstdc++-33-3.2.3-61
- compat-db-4.2.52-5.1
- libXp-1.0.0-8
- libXmu-1.0.2-5
- libXtst-1.0.1-3.1
- pam-0.99.6.2-3.26.el5
- libXft-2.1.10-1.1
可以参考 Installing and verifying Linux packages来安装需要的包
- 而且SELinux也是需要考虑的
You should consider the following points if you have enabled Security-Enhanced Linux (SELinux) on your Red Hat Enterprise Linux Version 5 operating system.
- If SELinux is enabled and enforced while you are installing the product from the CD, then you must mount the CD with the following option:
-o context=system_u:object_r:textrel_shlib_t
- If you enable SELinux after installing the product while SELinux was disabled, then the file labels will be reset when the system is rebooted. In this case, you must run the relabel_was.sh script located in app_server_root /properties/version/nif/config/script to relabel the product runtime files. Note that running the relabel_was.sh command is not necessary if you made security mode changes with the commandsetenforce, which does not required a system reboot.
- 后来在一篇博客上看到这么一段
为什么一开始决定要在Windows Server 2003 64bit上安装Oracle9i呢?于是给服务器安装了Windows Server 2003 64bit操作系统。
可是为什么硬件架构是AMD64和Intel 64呢?Oracle9i没有这两个架构的64bit版本。于是格式化了重新安装Redhat Enterprise Linux 5。
可是又为什么不是正版的Redhat Enterprise Linux 5呢?于是格式化安装了Redhat Enterprise Linux 4 Update 2。
可是为什么RHEL4 Update 2不能在阵列上设置MPIO呢?于是格式化安装了Redhat Enterprise Linux 4 Update 4。
时间就这样在一遍一遍地折磨服务器和折磨群众的过程中悄然溜走,转眼就到了下班的时候,Yeah,明天再说了。
- 博主在评论里的一句话道出了真理:都是在出现问题以后才去检查软硬件兼容表的,呵呵。
在IBM刀片机上安装RHEL报错
在一台IBM的刀片机(JS21,PowerPC芯片)上直接安装redhat5.5——rhel-server-5.5-ppc-dvd。安装过程中报错:
md: Autodetecting RAID arrays.
md: autorun …
md: … autorun DONE.
RAMDISK: Compressed image found at block 0
RAMDISK: ran out of compressed data
invalid compressed format (err=1)
Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
机器上原先有操作系统AIX5.3
用上面这串错误去Google的话,会得到很多不同的解释,就是说造成这个问题的原因有多种。一次次的尝试很耗费时间,最后找到了这篇文章,《IBM Installation Toolkit:在 POWER 上加载 Linux》,用文中提到的工具IBM Installation Toolkit for Linux on POWER一次就安装成功了。(因为RHEL 5.5本月头上刚发布,所以工具介绍里没有写明支持,但是安装没有问题,5.3以上都用能用这个来安装)
这个问题其实和先前那个一样,被原有的知识所误导——X86平台上IBM的ServerGuide是为安装Windows操作系统准备的,安装Linux直接用安装盘即可,上手就去做,欲速则不达。


最及时的声音