管理概要文件、WebSphere Application Server V7 和 IBM HTTP Server V7 的快速参考

本主题总结了管理概要文件,以及停止和启动 WebSphere Application Server 概要文件和 IBM HTTP Server 的常用过程。 这些指示信息适用于 WebSphere Application Server 和 IBM HTTP Server V7。 有关安装和配置 WebSphere Application Server 和 IBM HTTP Server V8 的信息,请参阅技术说明 #1569987。有关受支持配置的信息,请参阅 WebSphere Application Server 和 IBM HTTP Server 安装概述
包含以下任务的指示信息:

管理概要文件

表 1 包含查找概要文件信息(如概要文件名称、根目录和概要文件部署所在的端口号)的过程。此外,还提供了除去概要文件的指示信息。关于管理概要文件的其他信息,请参阅 WebSphere Application Server 7.0 信息中心

表 1. WebSphere Application Server - 概要文件管理任务
任务 指示信息
列出 WebSphere Application Server 概要文件
要列出服务器上的所有概要文件,请执行以下操作:
  • 在 Windows 上:was_install_dir\bin\manageprofiles.bat –listProfiles
  • 在 UNIX/Linux 上:was_install_dir/bin/manageprofiles.sh –listProfiles
确定 WebSphere Application Server 概要文件的根目录

要确定 WebSphere Application Server 概要文件的根目录,请执行以下操作:

  • 在 Windows 上:was_install_dir>\bin\manageprofiles.bat –getPath –profileName profile
  • 在 UNIX/Linux 上:was_install_dir/bin/manageprofiles.sh –getPath –profileName profile
确定概要文件的端口

要确定概要文件的端口,请执行以下操作:

  1. 找到概要文件的根目录。
  2. 打开概要信息文件 was_profiles_dir/profile_name/logs/AboutThisProfile.txt
  3. 查看 HTTP TRANSPORT PORT 参数的值。
在 WebSphere Application Server 概要文件中找到应用程序

要在 WebSphere Application Server 概要文件中找到应用程序,请执行以下操作:

  1. 使用浏览器,连接到包含应用程序的概要文件的 WebSphere Application Server 管理控制台 (http://server:port/ibm/console)。
  2. 浏览至应用程序 > 应用程序类型 > WebSphere 企业应用程序,这将列出应用程序。
从 WebSphere Application Server 概要文件中除去应用程序
要从 Windows 上的 WebSphere Application Server 概要文件中除去应用程序,请执行以下操作:
  1. 在浏览器中使用以下 URL 连接到包含应用程序的概要文件的 WebSphere Application Server 管理控制台:http://server:port/ibm/console
  2. 浏览至应用程序 -> 应用程序类型 -> WebSphere 企业应用程序
  3. 选中要除去的应用程序左侧的框。
  4. 单击“卸载”并确认操作。
  5. 将更改保存到主配置。
  6. 停止然后启动概要文件以应用更改。
除去 WebSphere Application Server 概要文件
要除去 WebSphere Application Server 概要文件,请执行以下操作:
  1. 使用以下某个命令删除概要文件:
    • 在 Windows 上:was_install_dir\bin\manageprofiles.bat –delete –profileName profile
    • 在 UNIX/Linux 上:was_install_dir/bin/manageprofiles.sh –delete –profileName profile
  2. 确保通过运行以下命令,从概要文件注册表中除去对已删除概要文件的引用:
    • 在 Windows 上:was_install_dir\bin\manageprofiles.bat –validateAndUpdateRegistry
    • 在 UNIX/Linux 上:was_install_dir/bin/manageprofiles.sh –validateAndUpdateRegistry
  3. 删除从 profile_dir 开始的概要文件目录树(如果上一个操作中未删除)。

启动和停止 WebSphere Application Server 概要文件和 IBM HTTP Server

请参阅以下各表,了解启动和停止指示信息。

关于启动和停止其他 WebSphere Application Server 和 IBM HTTP Server 功能部件的信息,请在 WebSphere Application Server 7.0 信息中心搜索启动和停止快速参考主题。

表 2. WebSphere Application Server - 启动和停止过程
任务 指示信息
启动 WebSphere Application Server 概要文件
注: 如果要启动缺省 WebSphere Application Server 概要文件,那么执行此任务时,请勿指定或选择概要文件名称。
在 Windows 上

要启动 WebSphere Application Server 概要文件,请使用以下任一方法:

  • 转至开始 > 程序 > IBM WebSphere > Application Server V7.0 > 概要文件 > profile_name > 启动服务器
  • 启动与 IBM WebSphere Application Server V7.0 profile 相关联的 Windows 服务。
  • 运行以下命令:was_install_dir\bin\startServer.bat server1 –profileName profile
  • 运行以下命令:profile_dir\bin\startServer.bat server1
在 UNIX/Linux 上
要在 UNIX 或 Linux 上启动 WebSphere Application Server 概要文件,请使用以下任一命令:
  • was_install_dir/bin/startServer.sh server1 –profileName profile
  • profile_dir/bin/startServer.sh server1
停止 WebSphere Application Server 概要文件
在 Windows 上
要停止 WebSphere Application Server 概要文件,请使用以下任一方法:
  • 转至“开始 > 程序 > IBM WebSphere > Application Server V7.0 > 概要文件 > profile > 停止服务器”。
  • 停止与 IBM WebSphere V7.0 profile 相关联的 Windows 服务。
  • 运行以下命令:was_install_dir\bin\stopServer.bat server1 –profileName profile
  • 运行以下命令:profile_dir\bin\stopServer.bat server1
在 UNIX/Linux 上

要停止 WebSphere Application Server 概要文件,

请使用以下任一命令:
  • was_install_dir/bin/stopServer.sh server1 –profileName profile_name
  • profile_dir/bin/stopServer.sh server1
表 3. IBM HTTP Server - 启动和停止过程
任务 指示信息
启动 IBM HTTP Server
在 Windows 上
要在 Windows 上启动 HTTP Server,请执行以下操作:
  1. 从“开始”菜单,启动控制面板,然后转至管理工具 > 服务
  2. 在“服务”页面上,右键单击 IBM HTTP Administration 7.0。然后,选择启动
  3. 右键单击 IBM HTTP Server 7.0。选择启动
在 UNIX/Linux 上

要启动 HTTP Server,请运行以下命令:ihis_install_dir/bin/apachectl –k start

.
停止 IBM HTTP Server

停止 IBM HTTP Server

在 Windows 上
要停止 IBM HTTP Server,请执行以下操作:
  1. 从“开始”菜单,启动控制面板,然后转至管理工具 > 服务
  2. 在“服务”页面上,右键单击 IBM HTTP Administration 7.0。然后,选择停止
  3. 右键单击 IBM HTTP Server 7.0。选择停止
在 UNIX/Linux 上
要停止 HTTP Server,请运行以下命令:ihis_install_dir/bin/apachectl –k stop

反馈