linux - RHEL 5 上面向开发人员的 Websphere Application Server 6.1 控制台安装失败

标签 linux console installation websphere websphere-6.1

有谁知道如何通过控制台安装Websphere Application Server for Developers (v6.1)?

我正在设置构建服务器,我拥有的服务器是 RHEL 5.6 服务器,没有图形控制台访问权限(只能通过 ssh 访问 tty 控制台)。

我需要在服务器上构建的项目之一依赖于 WAS 6.1(至少修复 23),并且在构建过程中运行各种 WAS 工具来生成 WSDL、EJB 等。我需要安装 WebSphere。因此,我下载了开发人员版本,将 tar.gz 解压缩到一个目录并尝试从那里安装。

我已阅读有关静默安装的各种文档,并按照建议进行操作:使用以下内容创建了一个响应文件(称为 responsefile.txt)

-OPT silentInstallLicenseAcceptance="true"
-OPT allowNonRootSilentInstall="true"
-OPT installType="installNew"
-OPT installLocation="/home/me/apps/was/v6.1"

#This is only a developer install for builds, so no security, features, or profiles!
-OPT PROF_enableAdminSecurity="false"
-OPT feature="noFeature"
-OPT createProfile="false"
-OPT profileType="none"
-OPT PROF_isDeveloperServer="true"

#Logging settings for the install
-OPT traceFormat=text
-OPT traceLevel=CONFIG

当我运行 WAS/install -silent -options "${PWD}/WAS/responsefile.txt 时,脚本似乎会运行,然后在 5 秒左右后返回到命令行。类似地,WAS/install -console -options... 也会执行相同的操作。

我查看了安装脚本并添加了日志记录以显示脚本中使用的各种变量(看看是否有任何意外的值,没有)。 setup.jar 位于正确的目录中,JAVAHOME 来自 WAS 安装程序提供的 JDK (${PWD}/JDK/jre.pak/repository/package.java.jre/java/jre)。

因此,我手动运行了 java 命令:

export JAVAHOME=${PWD}/JDK/jre.pak/repository/package.java.jre/java/jre
${JAVAHOME}/bin/java \
   -cp ${PWD}/WAS/setup.jar \
   -Xms265m -Xmx512m \
   run
   -silent \
   -options "${PWD}/WAS/responsefile.txt"

这次,各种设置被输出到控制台,但大约5秒后仍然返回,没有安装软件(没有创建/home/me/apps/was)。输出为;

I       Process Type: install
I       Install Type: nonOS400
I       Install Mode: silentMode
I       #Received OPT Properties
#Fri Jul 22 07:21:33 EDT 2011
traceLevel=CONFIG
traceFormat=text
PROF_hostName=dev-ci-svr
silentInstallLicenseAcceptance=true
allowNonRootSilentInstall=true
profileType=none
installLocation=/home/me/apps/was/v6.1
installType=installNew
PROF_enableAdminSecurity=false
feature=noFeature

我也以root身份尝试过,结果相同。

文档还提到了 -console 选项,但这仅给出了以下消息

The wizard cannot continue because of the following error: Invalid command line option: console is not supported (1001) (403)

有人成功从 Linux 命令行安装 WebSphere 吗?

[编辑] 好的,看来现在正在安装。事实证明,您可以设置一个环境变量来查看安装程序 is.debug 的更多输出(需要反编译 setup.jar 才能看到这一点)。

当我使用这个定义运行时,我至少可以看到它正在故障转移的问题。

对,在 responsefile.txt 中,我需要删除 createProfile 选项(与 installType 冲突),并通过添加 -OPT disableOSPrereqChecking="true" 禁用操作系统先决条件检查。

之后就安装好了。简单。

[Rant] 安装 JAR 至少应该告诉您失败的原因,而无需诉诸未记录的设置或反编译 JAR。

最佳答案

根据家里的建议,我提供答案(与原始编辑中相同)。

事实证明,您可以设置一个环境变量来查看安装程序 is.debug 的更多输出(需要反编译 setup.jar 才能看到这一点)。

当我使用这个定义运行时,我至少可以看到它正在故障转移的问题。

对,在responsefile.txt中,我需要删除createProfile选项(与installType冲突),并通过添加-OPT disableOSPrereqChecking="true"来禁用操作系统先决条件检查。

之后就安装好了。简单。

关于linux - RHEL 5 上面向开发人员的 Websphere Application Server 6.1 控制台安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6789295/

相关文章:

linux - 在linux系统的对话框中使用什么命令来显示日期/时间和日历?

linux - 尝试在文件名中查找单词的 shell 脚本中出现错误

node.js - 无法在 ubuntu v-20.04.1 中安装 nodejs

ruby - 了解 Gemfile.lock 文件

linux - 将具有最小大小的子文件夹的路径存储到变量中

c# - 打开 WinForm 时隐藏控制台

c# - 从 VS 2012 Express for Web 发布 C# 控制台应用程序。

c# - pConsole.StartInfo.RedirectStandardOutput 和 pConsole.Exited 事件 (c#)

linux - 从本地仓库安装 postgresql——为什么无法从仓库下载?

java - 在 Java 中执行 Bash 脚本返回 Null