IHS 8.5安装及配置plugin
IHS 6 或 7 的安装方法相对简单,在这里不做介绍,如有需求尽管留言,IHS 8
以上版本需要用到wct工具来安装plugin插件,同事在部署时发现wct工具无法调用,缺少各种依赖包,等依赖包全部安装之后,再执行wct没有了任何反应,于是给出以下静默安装plugin方案:
一、 安装IBM Installation Manager
安装过程略
二、 使用IBM Installation Manager安装IBM HTTP server
解压IHS包
将WAS_V8.5.5_SUPPL_1_OF_3.zip、WAS_V8.5.5_SUPPL_2_OF_3.zip、WAS_V8.5.5_SUPPL__OF_3.zip 解压打开IBM Installation Manage工具
添加repository.config文件
repository.config在上一步解压的目录中。选择安装组件
如下图所示,只选择 “IBM HTTP Server” 和 “Web Server Plug-ins”
- 完成安装
安装过程中注意选择安装目录和端口,出现下图界面则安装成功。
三、 拷贝plugin文件
将was控制台生成的plugin文件拷贝至IHS服务器的/opt/IBM/WebSphere/Plugins/config/webserver1/中,准备配置转发。
四、 配置plugin程序
cd /opt/IBM/WebSphere/Plugins/bin
./configureIHSPlugin.sh \
-plugin.home /opt/IBM/WebSphere/Plugins \
-plugin.config.xml /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml \
-ihs.conf.file /opt/IBM/HTTPServer/conf/httpd.conf \
-ihs.admin.usergroup nobody -operating.system linux \
-operating.system.arch 64 \
-WAS.webserver.name webserver1 \
-WAS.host.name app1
解析:
-plugin.home /opt/IBM/WebSphere/Plugins #Plugins的安装目录
-plugin.config.xml /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml #plugin文件位置
-ihs.conf.file /opt/IBM/HTTPServer/conf/httpd.conf #http.conf文件位置
-ihs.admin.usergroup nobody -operating.system linux #系统类型Linux、AIX
-operating.system.arch 64 #64位系统
-WAS.webserver.name webserver1 #was控制台的web服务器名称
-WAS.host.name app1 #was服务器主机名
你可以在IBM/WebSphere/Plugins/bin/ ConfigureIHSPlugin.sh得到使用方法:
Where:
"plugin.home" is the plugin install root
"plugin.config.xml" is the full path of plugin-config.xml file
"ihs.conf.file" is the full path name of the httpd.conf
"ihs.admin.usergroup" is the user group of IHS Admin server
"operating.system" is the name of the operating system
Possible values are: Linux|AIX|HP-UX|SunOS|ZOS
"operating.system.arch" is the architecture of the operating system
Possible values are: 32|64. Default value is 32
"WAS.webserver.name" is the name of the webserver as defined
in WebSphere admin console. Default is webserver1
"WAS.host.name" is the host name of the WebSphere
IHS Example:
ConfigureIHSPlugin.sh -plugin.home /opt/IBM/WebSphere/Plugins
-plugin.config.xml /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml
-ihs.conf.file /opt/IHS/conf/httpd.conf
-ihs.admin.usergroup ihsadmin
-operating.system AIX
-operating.system.arch 64
-WAS.webserver.name webserver2
-WAS.host.name localhost
五、 修改http.conf文件was模块
vim /opt/IBM/HTTPServer/conf/httpd.conf
执行完./ConfigureIHSPlugin.sh后会生成LoadModule的路径
将${WAS_PLUGIN_DRIVER} 改为was_ap22模块的绝对路径
如果你不知道was_ap22模块在哪,可以用find 搜索一下。
LoadModule was_ap22_module /opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so
六、 启动apachectl
略
—-END