【发布时间】:2011-07-22 11:26:57
【问题描述】:
有谁知道如何通过控制台安装 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] setup JAR 至少应该告诉你为什么它会失败,而无需求助于未记录的设置或反编译 JAR。
【问题讨论】:
-
如何将问题标记为已解决???
-
你应该提供答案:-)
标签: linux console installation websphere websphere-6.1