有谁知道如何通过控制台安装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/