명령줄에 WAS ND v9 Traditional~의 3을 추가해 보십시오.
개시하다
시간이 많이 비었지만.
저번는 WAS ND 관련 S/W 가져오기 프로세스에서 다음 6~7을 설명합니다.실행됨.
이번에는 WAS ND의 8.웹 서버의 정의~9.AP 서버를 만들 때까지
WAS 설정은 AP 서버가 설정된 후에도 여러 가지 설정이 필요합니다.
여기서는 9까지 끝난다.
웹 서버 정의
WAS를 관리하는 DMgr에 웹 서버(IBM HTTP Server)를 등록합니다.
개요는 먼저 PCT 도구와 응답 파일을 이용하여 웹 서버 구성 스크립트를 작성합니다.
스크립트를 실행하는 두 단계.
정의할 때 다음과 같은 정보가 필요합니다.자세한 내용은 "ptt 도구를 사용한 웹 서버 플러그인 구성"참조
매개 변수
값
시험을 준비하다
defLocPath
/usr/IBM/WebSphere/Plugins
웹 서버 정의 정보의 저장 경로
defLocName
webserver1
관리 콘솔의 웹 서버 정의 이름
response
/mnt/IBM/work/response_pct_was9a.xml
응답 파일 경로
script
configurewebserver1.sh
웹 서버 구성 스크립트 이름
복제 대상
/usr/IBM/WebSphere/AppServer/bin
웹 서버 구성 스크립트 복제 대상
응답 파일은 다음과 같습니다.configType=remote
enableAdminServerSupport=false
mapWebServerToApplications=true
wasMachineHostname=was9a
webServerConfigFile1=/usr/IBMIHS/conf/httpd.conf
webServerDefinition=webserver1
webServerHostName=was9a
webServerOS=AIX
webServerPortNumber=80
webServerSelected=ihs
PCT 도구를 사용하여 웹 서버 구성 스크립트를 만드는 명령 형식은 다음과 같습니다../wctcmd.sh
-tool pct
-createDefinition
-defLocPathname Webサーバー定義情報の格納パス
-defLocName Webサーバー定義名
-response レスポンスファイルパス
우선, 정의가 없음을 확인합니다.# cd /usr/IBM/WebSphere/Toolbox/WCT
# ./wctcmd.sh -tool pct -listDefinitionLocations
ツール pct の定義ロケーションが見つかりません
실제 명령은 다음과 같다.(실제로 한 행에 지정됨("\"없음)# cd /usr/IBM/WebSphere/Toolbox/WCT
# ./wctcmd.sh -tool pct \
-createDefinition \
-defLocPathname /usr/IBM/WebSphere/Plugins \
-defLocName webserver1 \
-response /mnt/IBM/work/response_pct_was9a.xml
定義ロケーションをインポート中...
定義ロケーションが正常にインポートされました
ツール pct を起動中...
ツール実行が正常に完了しました。
정의가 생성되었는지 확인합니다.# ./wctcmd.sh -tool pct -listDefinitionLocations
ツール pct の選択可能な定義ロケーション
名前: webserver1
パス: /usr/IBM/WebSphere/Plugins
# ./wctcmd.sh -tool pct -defLocPathname /usr/IBM/WebSphere/Plugins -listDefinitions
定義ロケーションが正常にインポートされました
ツール pct を起動中...
webserver1
ツール実行が正常に完了しました。
다음은configurewebserver1입니다.sh가 생성되었는지 확인합니다.# cd /usr/IBM/WebSphere/Plugins/bin
# ls -l configurewebserver1.sh
-rwxr-xr-x 1 root system 2096 Jan 16 14:56 configurewebserver1.sh
제작된configurewebserver1.sh를 WAS의 bin 디렉토리에 복사하여 실행합니다.# cp -p configurewebserver1.sh /usr/IBM/WebSphere/AppServer/bin
# cd /usr/IBM/WebSphere/AppServer/bin
# ./configurewebserver1.sh -user wasadmin -password wasadmin
Using WAS admin userID wasadmin
WASX7209I: ノード was9aCellManager01 のプロセス "dmgr" に、SOAP コネクターを使用して接続しました。プロセスのタイプは DeploymentManager です。
WASX7303I: 次のオプションはスクリプト環境に渡され、argv 変数に格納される引数として使用可能になります: "[webserver1, IHS, /usr/IBMIHS, /usr/IBMIHS/conf/httpd.conf, 80, MAP_ALL, /usr/IBM/WebSphere/Plugins, unmanaged, was9a-node, was9a, aix]"
Input parameters:
Web server name - webserver1
Web server type - IHS
Web server install location - /usr/IBMIHS
Web server config location - /usr/IBMIHS/conf/httpd.conf
Web server port - 80
Map Applications - MAP_ALL
Plugin install location - /usr/IBM/WebSphere/Plugins
Web server node type - unmanaged
Web server node name - was9a-node
Web server host name - was9a
Web server operating system - aix
IHS Admin port - 8008
IHS Admin user ID - ""
IHS Admin password - ""
IHS service name - ""
Found node with matching hostname. Using existing node was9aNode01
Node definition was9aNode01 already exists.
Creating the web server definition for webserver1 on node was9aNode01.
Parameters for administering IHS web server can also be updated using wsadmin script or admin console.
Web server definition for webserver1 is created.
Start computing the plugin properties ID.
Plugin properties ID is computed.
Start updating the plugin install location.
Plugin install location is updated.
Start updating the plugin log file location.
Plugin log file location is updated.
Start updating the RemoteConfigFilename location.
Plugin remote config file location is updated.
Start updating the RemoteKeyRingFileName location.
Plugin remote keyring file location is updated.
Start saving the configuration.
Configuration save is complete.
Computed the list of installed applications.
Start saving the configuration.
Configuration save is complete.
configurewebserve1.sh를 실행한 후 관리 컨트롤러에 웹 서버가 정의되어 있는지 확인하십시오.
(다음 그림은 둘 다 정의된 그림입니다.)
AP 서버 만들기
그런 다음 AP 서버(응용 프로그램을 실행하는 JVM)를 정의합니다.
그 다음에는 주로 Jython 스크립트를 사용합니다.
WAS의 다양한 정의는 관리 콘솔에서 수행할 수 있습니다.
Jython 스크립트를 실행하는 방법을 내보낼 수 있습니다.
참고로 Jython 스크립트 만들기 → 실행 형식으로 정의합니다.#############################
## variables
cellname="was9aCell01"
nodename="was9aNode01"
nodename2="was9bNode01"
clustername="wascl1"
membername="wassrv1"
templatename="default"
nodegroup="DefaultNodeGroup"
coregroup="DefaultCoreGroup"
resourcescope="cluster"
#############################
## Create Cluster
AdminTask.createCluster('[-clusterConfig [-clusterName '+clustername+' -preferLocal true]]')
#############################
## Create Cluster Member
AdminTask.createClusterMember('[-clusterName '+clustername+' -memberConfig [-memberNode '+nodename+' -memberName '+membername+' -memberWeight 2 -genUniquePorts true -replicatorEntry false] -firstMember [-templateName '+templatename+' -nodeGroup '+nodegroup+' -coreGroup '+coregroup+' -resourcesScope '+resourcescope+']]')
AdminTask.createClusterMember('[-clusterName '+clustername+' -memberConfig [-memberNode '+nodename2+' -memberName '+membername+' -memberWeight 2 -genUniquePorts true -replicatorEntry false]]')
AdminConfig.list('ServerCluster', AdminConfig.getid( '/Cell:'+cellname+'/'))
#############################
## Save & Sync
AdminConfig.save()
AdminNodeManagement.syncActiveNodes()
#############################
## End
이것에 대한 상세한 내용은 쓰면 끝이 없기 때문에 나는 사랑을 끊을 것이다
큰 절차는 다음과 같다.
configType=remote
enableAdminServerSupport=false
mapWebServerToApplications=true
wasMachineHostname=was9a
webServerConfigFile1=/usr/IBMIHS/conf/httpd.conf
webServerDefinition=webserver1
webServerHostName=was9a
webServerOS=AIX
webServerPortNumber=80
webServerSelected=ihs
./wctcmd.sh
-tool pct
-createDefinition
-defLocPathname Webサーバー定義情報の格納パス
-defLocName Webサーバー定義名
-response レスポンスファイルパス
# cd /usr/IBM/WebSphere/Toolbox/WCT
# ./wctcmd.sh -tool pct -listDefinitionLocations
ツール pct の定義ロケーションが見つかりません
# cd /usr/IBM/WebSphere/Toolbox/WCT
# ./wctcmd.sh -tool pct \
-createDefinition \
-defLocPathname /usr/IBM/WebSphere/Plugins \
-defLocName webserver1 \
-response /mnt/IBM/work/response_pct_was9a.xml
定義ロケーションをインポート中...
定義ロケーションが正常にインポートされました
ツール pct を起動中...
ツール実行が正常に完了しました。
# ./wctcmd.sh -tool pct -listDefinitionLocations
ツール pct の選択可能な定義ロケーション
名前: webserver1
パス: /usr/IBM/WebSphere/Plugins
# ./wctcmd.sh -tool pct -defLocPathname /usr/IBM/WebSphere/Plugins -listDefinitions
定義ロケーションが正常にインポートされました
ツール pct を起動中...
webserver1
ツール実行が正常に完了しました。
# cd /usr/IBM/WebSphere/Plugins/bin
# ls -l configurewebserver1.sh
-rwxr-xr-x 1 root system 2096 Jan 16 14:56 configurewebserver1.sh
# cp -p configurewebserver1.sh /usr/IBM/WebSphere/AppServer/bin
# cd /usr/IBM/WebSphere/AppServer/bin
# ./configurewebserver1.sh -user wasadmin -password wasadmin
Using WAS admin userID wasadmin
WASX7209I: ノード was9aCellManager01 のプロセス "dmgr" に、SOAP コネクターを使用して接続しました。プロセスのタイプは DeploymentManager です。
WASX7303I: 次のオプションはスクリプト環境に渡され、argv 変数に格納される引数として使用可能になります: "[webserver1, IHS, /usr/IBMIHS, /usr/IBMIHS/conf/httpd.conf, 80, MAP_ALL, /usr/IBM/WebSphere/Plugins, unmanaged, was9a-node, was9a, aix]"
Input parameters:
Web server name - webserver1
Web server type - IHS
Web server install location - /usr/IBMIHS
Web server config location - /usr/IBMIHS/conf/httpd.conf
Web server port - 80
Map Applications - MAP_ALL
Plugin install location - /usr/IBM/WebSphere/Plugins
Web server node type - unmanaged
Web server node name - was9a-node
Web server host name - was9a
Web server operating system - aix
IHS Admin port - 8008
IHS Admin user ID - ""
IHS Admin password - ""
IHS service name - ""
Found node with matching hostname. Using existing node was9aNode01
Node definition was9aNode01 already exists.
Creating the web server definition for webserver1 on node was9aNode01.
Parameters for administering IHS web server can also be updated using wsadmin script or admin console.
Web server definition for webserver1 is created.
Start computing the plugin properties ID.
Plugin properties ID is computed.
Start updating the plugin install location.
Plugin install location is updated.
Start updating the plugin log file location.
Plugin log file location is updated.
Start updating the RemoteConfigFilename location.
Plugin remote config file location is updated.
Start updating the RemoteKeyRingFileName location.
Plugin remote keyring file location is updated.
Start saving the configuration.
Configuration save is complete.
Computed the list of installed applications.
Start saving the configuration.
Configuration save is complete.
그런 다음 AP 서버(응용 프로그램을 실행하는 JVM)를 정의합니다.
그 다음에는 주로 Jython 스크립트를 사용합니다.
WAS의 다양한 정의는 관리 콘솔에서 수행할 수 있습니다.
Jython 스크립트를 실행하는 방법을 내보낼 수 있습니다.
참고로 Jython 스크립트 만들기 → 실행 형식으로 정의합니다.
#############################
## variables
cellname="was9aCell01"
nodename="was9aNode01"
nodename2="was9bNode01"
clustername="wascl1"
membername="wassrv1"
templatename="default"
nodegroup="DefaultNodeGroup"
coregroup="DefaultCoreGroup"
resourcescope="cluster"
#############################
## Create Cluster
AdminTask.createCluster('[-clusterConfig [-clusterName '+clustername+' -preferLocal true]]')
#############################
## Create Cluster Member
AdminTask.createClusterMember('[-clusterName '+clustername+' -memberConfig [-memberNode '+nodename+' -memberName '+membername+' -memberWeight 2 -genUniquePorts true -replicatorEntry false] -firstMember [-templateName '+templatename+' -nodeGroup '+nodegroup+' -coreGroup '+coregroup+' -resourcesScope '+resourcescope+']]')
AdminTask.createClusterMember('[-clusterName '+clustername+' -memberConfig [-memberNode '+nodename2+' -memberName '+membername+' -memberWeight 2 -genUniquePorts true -replicatorEntry false]]')
AdminConfig.list('ServerCluster', AdminConfig.getid( '/Cell:'+cellname+'/'))
#############################
## Save & Sync
AdminConfig.save()
AdminNodeManagement.syncActiveNodes()
#############################
## End
이것에 대한 상세한 내용은 쓰면 끝이 없기 때문에 나는 사랑을 끊을 것이다큰 절차는 다음과 같다.
wsadmin 명령을 사용하여 만든 jython 스크립트를 WAS에 투입합니다.(Dmgr 부팅 필요)
형식은 다음과 같습니다.
./wsadmin.sh [
-lang jython \
-conntype SOAP \
-host Dmgr稼働ホスト名 \
-user 管理ユーザー名 \
-password 管理ユーザーのパスワード \
-profileName APサーバー用プロファイル名 \
-f Jythonスクリプトファイルパス
사실은 다음과 같다.# cd /usr/IBM/WebSphere/AppServer/bin
# ./wsadmin.sh -lang jython -conntype SOAP -host was9a -user wasadmin -password wasadmin -profileName Custom01 -f /mnt/IBM/work/createClsuter_was9.jy
WASX7209I: ノード was9aCellManager01 のプロセス "dmgr" に、SOAP コネクターを使用して接続しました。プロセスのタイプは DeploymentManager です。
---------------------------------------------------------------
AdminNodeManagement: Synchronize the active nodes
Usage: AdminNodeManagement.syncActiveNodes()
Return: If the command is successfully invoked, a value of 1 is returned.
---------------------------------------------------------------
was9aNode01
was9bNode01
제작이 완료되면 우선 관리 컨트롤러로 집합의 형성을 확인한다.다음에 AP 서버가 성공했는지 확인합니다.
AP 서버 생성이 완료되었습니다.
지금까지 GUI를 3회 사용할 수 없는 경우(또는 대량 가져오기 등 GUI가 불편한 경우)
명령줄에서 가져올 수 있도록 설명합니다.
그리고 기회가 된다면 WAS뿐만 아니라 많은 글을 썼으면 좋겠어요!
← 지난번: 명령줄에 WAS ND v9 Traditional~ 2
참고 자료
■ ptt 도구를 사용한 웹 서버 플러그인의 구성
https://www.ibm.com/support/knowledgecenter/ja/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/tins_pctcl_using.html
■ Jython에서 wsadmin 스크립트 사용
https://www.ibm.com/support/knowledgecenter/ja/SSAW57_9.0.0/com.ibm.websphere.nd.multiplatform.doc/ae/cxml_jython.html
Reference
이 문제에 관하여(명령줄에 WAS ND v9 Traditional~의 3을 추가해 보십시오.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/shimauma_Zzzzz/items/210cc977c46860835f86
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Reference
이 문제에 관하여(명령줄에 WAS ND v9 Traditional~의 3을 추가해 보십시오.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/shimauma_Zzzzz/items/210cc977c46860835f86텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)