自动执行WebSphere插件配置:httpd.conf中的$ {WAS_PLUGIN_DRIVER}变量未解决

问题描述 投票:1回答:1

我正在在CentOS 7上使用Ansible进行HCL Connections 6.5的自动部署。它已经包括IBM IM,WAS(Dmgr + Node),DB2和Connections本身。 HTTP服务器(IHS)已安装,但是现在我需要对其进行配置。我需要使用WCT配置WebSphere插件。

出于教育目的,我过去曾在另一个使用GUI模式的测试服务器上执行此操作:

cd /opt/IBM/WebSphere/Toolbox/WCT
./wct.sh

enter image description here

现在,我们得到了一个包含几个步骤的向导,询问插件位置,Web服务器定义名称,HTTP Server的端口等。

自动化向导

我发现了wctcmd.sh作为wtc.sh的CLI等效项,以自动配置Web服务器。所以我做了下面的响应文件

configType=remote
enableAdminServerSupport=true
enableUserAndPass=true
enableWinService=false
ihsAdminCreateUserAndGroup=true
ihsAdminPassword=password
ihsAdminPort=8008
ihsAdminUnixUserGroup=ihsadmin
ihsAdminUnixUserID=ihsadmin
mapWebServerToApplications=true
wasMachineHostname=cnx65.internal
webServerConfigFile1=/opt/IBM/HTTPServer/conf/httpd.conf
webServerDefinition=webserver1
webServerHostName=cnx65.internal
webServerOS=operating_system_value
webServerPortNumber=80
webServerSelected=ihs

并且像这样运行wctcmd.sh

cd /opt/IBM/WebSphere/Toolbox/WCT
./wctcmd.sh -tool pct -createDefinition -defLocPathname /opt/IBM/WebSphere/Plugins -response resp-file

它说该工具已成功执行。但是,当我打开Web服务器配置/opt/IBM/HTTPServer/conf/httpd.conf时,它添加了以下两行:

LoadModule was_ap22_module ${WAS_PLUGIN_DRIVER}
WebSpherePluginConfig /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml

未定义此变量,并在启动Web服务器时引发错误:

# /opt/IBM/HTTPServer/bin/apachectl start
httpd: Syntax error on line 915 of /opt/IBM/HTTPServer/conf/httpd.conf: Cannot load ${WAS_PLUGIN_DRIVER} into server: ${WAS_PLUGIN_DRIVER}: cannot open shared object file: No such file or directory

[我认为${WAS_PLUGIN_DRIVER}的存在指示wctcmd.sh出了问题,因为我查看了另一台测试服务器,该服务器手动安装了Connections 6(使用GUI),并且手动安装的服务器上没有变量:

LoadModule was_ap22_module /opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so
WebSpherePluginConfig /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml

[在WebSphere / Connections中拥有10多年经验的顾问确认,如果一切正常,LoadModule was_ap22_module /opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so是正确的,所以应该没有任何变量。

问题

  1. 为什么该工具将${WAS_PLUGIN_DRIVER}变量放置在我的http配置中而不解决它们?
  2. 发生这种情况我在做什么错?
websphere websphere-8 ibm-connections
1个回答
0
投票

[发现我误解了webServerOS的operating_system_value值。我以为脚本会自动检测操作系统,但是文档说

用于指定Web服务器操作系统的webServerOS参数的有效值为Windows,Linux,Solaris,AIX,HPUX,OS390和OS400。

我也设置了webServerType=IHS。现在,它生成以下工作配置:

LoadModule was_ap22_module /opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so
WebSpherePluginConfig /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml
© www.soinside.com 2019 - 2024. All rights reserved.