静默式配置IHS855跟WAS855的整合(Plugin模式)

以前was7 和IHS7 整合,也就是实现IHS7跟WAS7的整合,只要在WAS的管理控制台配置就行。如果IHS和WAS是安装在同一台机器上的,只要在DMGR里直接建 webserver,然后创建插件和同步插件就行,如果IHS和WAS安装在不同机器。那只要在DMGR里增加IHS为非受管节点,然后在DMGR直接建webserver,然后创建插件和同步插件就行,但只从WAS版本发展到WAS8以上,这种方法就不行。IBM也转而推出一种plugin配置工具,专门来实现 ihs跟was的整合。也就是实现IHS跟WAS通过plugin来实现的正常应用分发。在有图形化界面下,可以直接使用图形化的plugin配置工具,但有些客户环境,是不提供图形化界面。就只能用字符界面来完成配置,下面就是字符界面的配置过程。以下应用环境是指IHS和WAS安装在不同机器的情况下。也就是IHS和WAS分别安装在不同的机器。

1, 在webserver 服务器安装IM和IHS,PUGIN,TOOLBOX(插件配置工具)

2、在APPSERVER服务器安装IM和WAS,不需要安装PUGIN.TOOLBOX。

3、在WEBSERVER和APPSERVER系统的/etc/hosts 加上IP跟主机名的影射对应关系,例如:

192.168.179.17 rhel6desk
192.168.179.10 ctos6desk

并确应两台机互相 ping  hostname 可以 ping 通。

4、cd 到/opt/IBM/WebSphere/Toolbox/WCT,编辑 wc_shell.sh 和response.txt文件。例如:

cd /opt/IBM/WebSphere/Toolbox/WCT

vi wc_shell.sh

./wctcmd.sh -tool pct -defLocPathname /opt/IBM/WebSphere/Plugins -defLocName webserver1 -createDefinition -response /opt/IBM/WebSphere/Toolbox/WCT/response.txt

vi response.txt

configType=remote
enableAdminServerSupport=true
enableUserAndPass=true
enableWinService=false
ihsAdminCreateUserAndGroup=true
ihsAdminPassword=wasadmin
ihsAdminPort=8008
ihsAdminUnixUserGroup=wasadmin
ihsAdminUnixUserID=wasadmin
mapWebServerToApplications=true
wasMachineHostname=rhel6desk
webServerConfigFile1=/opt/IBM/HTTPServer/conf/httpd.conf
webServerDefinition=webserver1
webServerHostName=ctos6desk
webServerOS=Linux
webServerPortNumber=80
webServerSelected=ihs

5、执行wct_shell.sh

chmod a+x wct_shell.sh

./wct_shell.sh

正在导入定义位置…

已成功导入定义位置

正在启动工具 pct …

工具执行已成功完成。

6、确认 wasadmin 用户组成功创建:

[root@ctos6desk WCT]# more /etc/passwd | grep wasadmin
wasadmin:x:507:508::/home/wasadmin:/bin/false

7、确认在/opt/IBM/Websphere/Plugins/bin 下面成功创建configurewebserver1.sh

[root@ctos6desk WCT]# ls -al /opt/IBM/WebSphere/Plugins/bin/con*
-rwxr-xr-x 1 root root 2122 5月 29 18:20 /opt/IBM/WebSphere/Plugins/bin/configurewebserver1.sh
[root@ctos6desk WCT]#

8、创建ihs 管理服务器的用户与密码:

cd /opt/IBM/HTTPServer/bin

./htpasswd -bc ../conf/admin.passwd wasadmin wasadmin

9、启动IHS和IHS 管理服务器。

cd /opt/IBM/HTTPServer/bin

./apachectl start

./adminctl start

netstat -na | grep 80   确认80/8008端口正常开放。

10,上传configurewebserver1.sh 到was的dmgr bin目录下:

sftp root@192.168.179.17
Connecting to 192.168.179.17…
root@192.168.179.17’s password:
sftp> cd /opt/IBM/WebSphere
sftp> ls
AppServer Plugins Toolbox
sftp> cd AppServeer
Couldn’t canonicalise: No such file or directory
sftp> cd AppServer
sftp> cd profiles
sftp> ls
AppSrv01 Dmgr01
sftp> cd Dmgr01
sftp> cd bin
sftp> put configurewebserver1.sh
Uploading configurewebserver1.sh to /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/configurewebserver1.sh
configurewebserver1.sh 100% 2122 2.1KB/s 00:00
sftp> bye

11、在 was 的Dmgr bin目录下,启动./startManaget.sh 启动Dmgr,并执行configurewebserver1.sh

[root@rhel6desk bin]# ./configurewebserver1.sh
区域/单元名: <default>
Username: wasadmin
Password:
WASX7209I: 已使用 SOAP 连接器连接到节点 rhel6deskCellManager01 上的进程“dmgr”;进程的类型为:DeploymentManager
WASX7303I: 已将下列选项传递至脚本编制环境,它们将作为参数存储在 argv 变量中:“[webserver1, IHS, /opt/IBM/HTTPServer, /opt/IBM/HTTPServer/conf/httpd.conf, 80, MAP_ALL, /opt/IBM/WebSphere/Plugins, unmanaged, ctos6desk-node, ctos6desk, linux]”。

Input parameters:

Web server name – webserver1
Web server type – IHS
Web server install location – /opt/IBM/HTTPServer
Web server config location – /opt/IBM/HTTPServer/conf/httpd.conf
Web server port – 80
Map Applications – MAP_ALL
Plugin install location – /opt/IBM/WebSphere/Plugins
Web server node type – unmanaged
Web server node name – ctos6desk-node
Web server host name – ctos6desk
Web server operating system – linux
IHS Admin port – 8008
IHS Admin user ID – “”
IHS Admin password – “”
IHS service name – “”

Creating the unmanaged node ctos6desk-node .
Unmanged node ctos6desk-node is created.

Creating the web server definition for webserver1 on node ctos6desk-node.
Parameters for administering IHS web server can also be updated using wsadmin script or admin console.
Web server definition for webserver1 is created.

Start computing the plugin properties ID.
Plugin properties ID is computed.

Start updating the plugin install location.
Plugin install location is updated.

Start updating the plugin log file location.
Plugin log file location is updated.

Start updating the RemoteConfigFilename location.
Plugin remote config file location is updated.

Start updating the RemoteKeyRingFileName location.
Plugin remote keyring file location is updated.

Start saving the configuration.

Configuration save is complete.

Computed the list of installed applications.

Processing the application DefaultApplication.
Get the current target mapping for the application DefaultApplication.
Computed the current target mapping for the application DefaultApplication.
Start updating the target mappings for the application DefaultApplication.
ADMA5075I: 已开始编辑应用程序 DefaultApplication。
Target mapping is not updated for the application DefaultApplication, exception = com.ibm.ws.scripting.ScriptingException: com.ibm.websphere.management.exception.AdminException
javax.management.MBeanException
com.ibm.websphere.management.exception.AdminException: ADMA5026E: 没有在模块 DefaultWebApplication.war+WEB-INF/web.xml 的 ObjectName WebSphere:cell=rhel6deskCell01,node=rhel6deskCellManager01,server=server1 中指定有效目标。

Start saving the configuration.

Configuration save is complete.

12、登陆WAS管理控制台,发现在节点里项,已经加上IHS的非受管节点。并在web服务器里,可以看到已经添加webserver1 服务器。点击webserver1,在远程 Web 服务器管理里,确认远程管理端口为:8008,并且用户名和密码为:wasadmin .

13、确认创建插件和分发成功,启停IHS成功。至此,IHS855跟WAS855的整合成功。

以下文章点击率最高

Loading…

发表评论