靜默式配置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…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營