Windows サービスの登録・削除方法 WebSphere Application Server 6.1 Base
by user
Comments
Transcript
Windows サービスの登録・削除方法 WebSphere Application Server 6.1 Base
WebSphere Application Server 6.1 Base エディション インストール補足資料 Windows サービスの登録・削除方法 日本アイ・ビー・エム株式会社 ソフトウェア事業 2006 年 7 月 はじめに WebSphere Application Server(以下、WAS)V6.1 Base エディションをインストールする と、自動的に WAS のアプリケーション・サーバー プロセスが Windows サービスに登録され ます。 当ガイドでは、自動登録されたアプリケーション・サーバーの Windows サービスを削除、あ るいは登録する手順を記述します。 Windows サービスの登録・削除は、WAS が提供する WASService コマンドを使用します。 WASService コマンドのの詳細オプションについては、infocenter の以下のサイトをご覧くだ さい。 http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.webspher e.base.doc/info/aes/ae/rins_wasservice.html Windows サービスの登録 1. WASService コマンドを使用してアプリケーション・サーバーをサービスに登録します。 以下のコマンドを実行します。 WAS の管理セキュリティーが無効の場合 > cd <WAS インストールディレクトリ>¥bin > WASService.exe -add "<サービス名>" -serverName <アプリケーション・サーバー名> -profilePath "<プロファイルルートディレクトリ※>" (1 行) WAS の管理セキュリティーが有効の場合 > cd <WAS インストールディレクトリ>¥bin > WASService.exe -add "<サービス名>" -serverName <アプリケーション・サーバー名> -profilePath "<プロファイルルートディレクトリ※>" –stopArgs “-username <管理セキュリティユーザー名> –password <管理セ キュリティパスワード>” (1 行) ※通常、プロファイルルートディレクトリは、 <WAS 導入ディレクトリ>¥profiles¥<プロファイル名> です。 Base エディションの初期導入の環境は、 "C:¥Program Files¥IBM¥WebSphere¥AppServer¥profiles¥AppSrv01” です。 1 【実行例】 C:¥>cd "C:¥Program Files¥IBM¥WebSphere¥AppServer¥bin" C:¥Program Files¥IBM¥WebSphere¥AppServer¥bin>WASService.exe -add "wpi08" -serverName server1 -profilePath Files¥IBM¥WebSphere¥AppServer¥profiles¥AppSrv01" -stopArgs "C:¥Program "-username wasadm -password wasadm" Adding Service: wpi08 Config Root: C:¥Program Files¥IBM¥WebSphere¥AppServer¥profiles¥AppSrv01¥config Server Name: server1 Profile Path: C:¥Program Files¥IBM¥WebSphere¥AppServer¥profiles¥AppSrv01 Was Home: C:¥Program Files¥IBM¥WebSphere¥AppServer¥ Start Args: Restart: 1 IBM WebSphere Application Server V6.1 - wpi08 service successfully added. 2. Windows サービスで、「IBM WebSphere Application Server V6.1 - <サービス名>」 が登録されたことを確認します。 Windows サービスの削除 1. 削除するアプリケーション・サーバーの Windows サービスを停止します。 Windows サービスのウィンドウで「IBM WebSphere Application Server V6.1 - <サ ービス名>」を停止します。 2. WASService コマンドでアプリケーション・サーバーの Windows サービスを削除します。 以下のコマンドを実行します。 > cd <WAS インストールディレクトリ>¥bin > WASService.exe -remove <サービス名> 【実行例】 C:¥>cd "C:¥Program Files¥IBM¥WebSphere¥AppServer¥bin" C:¥Program Files¥IBM¥WebSphere¥AppServer¥bin>WASService.exe -remove wpi08Node01 Remove Service: wpi08Node01 Successfully removed service 3. Windows サービスで、「IBM WebSphere Application Server V6.1 - <サービス名>」 が削除されたことを確認します。 2