Websphere配置手册 联系客服

发布时间 : 星期三 文章Websphere配置手册更新完毕开始阅读72de83e3524de518964b7d03

Websphere配置手册

Websphere配置手册 ........................................................................................................................ 1 1. 启动 WebSphere Application Server ....................................................................................... 1 2. 系统启动和关闭的集成 ........................................................................................................... 1 3. 启停the deployment manager .............................................................................................. 5 4. 添加应用程序 ........................................................................................................................... 6 5. 删除应用程序 ......................................................................................................................... 13 6. 更新应用程序 ......................................................................................................................... 14 7. 更新WebSphere(silent方式安装) ......................................................................................... 14

安装升级工具 ......................................................................................................................... 14 升级文件 ................................................................................................................................. 15

1. 启动 WebSphere Application Server

a) WebSphere Application Server 提供 startServer.sh shell 脚本以简化应用

服务器的启动过程。此脚本有一个参数,即要启动的应用服务器的名称。 b) 启动应用服务器的方法是,使用 su 或 sudo -s 命令(取决于使用的是 UNIX 系

统还是 Linux 发行版)变成安装 WebSphere Application Server 的系统上的特权用户。在出现提示时,分别输入根密码或您的密码。 c) 接下来,输入以下命令启动 WebSphere Application Server:

/opt/IBM/WebSphere/AppServer/bin/startServer.sh server1

(在刚安装 WebSphere Application Server 的系统上,默认的服务器名称是 server1)。

2. 系统启动和关闭的集成

a) 在系统上安装应用服务器之后,通常希望在每次重新启动系统时自动启动它。在

Microsoft Windows 等平台上安装 WebSphere Application Server 时,安装过程允许用户把服务器和管理服务器定义为在启动系统时自动启动的 Windows 服务。但是,UNIX 和 Linux 安装程序没有提供相似的启动集成机制。因此,在 UNIX 和

Linux 系统上,必须手工地把 WebSphere Application Server 集成到系统启动过程中。

b) 所有 UNIX 和 Linux 系统都有一系列在系统启动时执行的 shell 脚本(通常称为

init 脚本),通过它们定义应该在启动和关闭过程中执行的任务。按照这种机制,

系统的主要启动脚本都放在 /etc/init.d 中(在某些系统上,此目录可能是 /etc/rc.d/init.d 目录的符号链接)。在系统引导时执行的针对特定操作级(称为 runlevel)的脚本是符号链接,它们把 /etc/rcrunlevel.d 目录中的脚本链接到 /etc/init.d 目录中的脚本。

1. 创建 SysVInit 脚本

为了为 WebSphere Application Server 创建 SysVInit 脚本,可以采用以下方法之一:

下载本教程提供的示例 SysVInit 脚本。

复制并修改现有的 init 脚本,让它执行与 WebSphere Application Server 相关联的进程。

本节的其余部分解释如何下载和使用本教程提供的示例 SysVInit 脚本,见 清单 1。 2.

示例 SysVInit 脚本 #!/bin/bash # # Simple startup script for IBM WebSphere Application Server # # chkconfig: - 85 15 # description: IBM WebSphere Application Server is a powerful \\ # middleware platform for connecting Web-based applications and \\ # servers. # Path to the WebSphere startup and shutdown scripts startscript=/opt/IBM/WebSphere/AppServer/bin/startServer.sh shutscript=/opt/IBM/WebSphere/AppServer/bin/stopServer.sh

prog=\RETVAL=0

# modify the following line as needed to reflect any custom Java # installation directory

PATH=/opt/IBM/ibm-java-x86_64_60/bin:$PATH

# Function to start the server start() {

echo -n $\$startscript server1 RETVAL=$? echo

return $RETVAL }

# Function to stop the server stop() {

echo -n $\

$shutscript server1 -username ADMINUSER -password PASSWORD RETVAL=$? echo

return $RETVAL }

# See how we were called. case \start)

start

;; stop)

stop ;; restart)

stop start ;; *)

echo $\exit 1 esac

exit $RETVAL

按照以下步骤下载和安装示例 SysVInit 脚本:

下载示例脚本。

作为根用户(或通过使用 sudo 命令)把此文件保存到系统上的 /etc/init.d 目录中,把它命名为 websphere_sysvinit.sh。

使用文本编辑器编辑它,把 ADMINUSER 和 PASSWORD 改为 在安装过程中定义的管理用户名和密码 并保存这些修改。

作为根用户或使用 sudo 命令,使用以下命令设置文件的可执行权限:

chmod 755 /etc/init.d/websphere_sysvinit.sh