如何在Bluemix中为集合配置Web服务器?

时间:2015-12-19 06:48:44

标签: ibm-cloud websphere-liberty ibmhttpserver ibm-was-oc

我发现doc表示我需要在集合环境中设置Web服务器,但是,我无法确定正确的步骤集。想法?

1 个答案:

答案 0 :(得分:1)

了解您已尝试过的内容会有所帮助,但请考虑以下因素:

  1. 在一个或多个主机上创建两个或多个服务器,并将它们连接到集合体。确保您的服务器是clusterMembers和collectiveMembers。以下帖子应该有助于创建服务器并将它们连接到集合体: How can I setup a cell and collective in Bluemix

  2. 使用集合体中所有主机的主机名更新控制器的/etc/hosts文件。

  3. 下载并按照本指南在控制器上生成plugin-cfg.xml文件: https://developer.ibm.com/wasdev/downloads/#asset/scripts-jython-Generate_Cluster_Plugin

  4. 将生成的plugin-cfg.xml文件复制到/opt/IBM/WebSphere/HTTPServer/conf

  5. 修改/opt/IBM/WebSphere/HTTPServer/conf/httpd.conf并取消注释文件底部的这两行:

    LoadModule was_ap22_module /opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so
    WebSpherePluginConfig /opt/IBM/WebSphere/Profiles/Liberty/servers/controller/pluginConfig/myLibertyCluster-plugin-cfg.xml
    
  6. WebSpherePluginConfig值更改为/opt/IBM/WebSphere/HTTPServer/conf/plugin-cfg.xml

  7. 停止并启动HTTP服务器

    sudo ./apachectl stop
    sudo ./apachectl start
    
  8. 使用网络服务器<webserverIP>:80/appname

  9. 验证是否可以访问该应用程序
  10. 如果添加或删除了应用程序,则再次生成插件。