WebSphere V7.0靜默安裝
WebSphere V7.0靜默安裝及集羣配置
選項參考:
Option Name (-OPT) |
WebSphere Application Server Network Deployment |
|
Values |
Default |
|
allowNonRootSilentInstall |
"true | false" |
Commented |
disableOSPrereqChecking |
"true | false" |
Commented |
disableNonBlockingPrereqChecking |
"true | false" |
Commented |
checkFilePermissions |
"true | false" |
Commented |
feature |
"noFeature | samplesSelected | languagepack.console.all | languagepack.server.all" |
"samplesSelected" |
installLocation |
Any valid directory path |
app_server_root directories for root and non-root installers |
installType |
"installNew | addFeature" |
"installNew" |
profileType |
"standAlone | management | cell | custom | none | secureProxy" |
"cell" |
silentInstallLicenseAcceptance |
"true | false" |
"false" |
cimSelected |
"true | false" |
Commented |
cimRepositoryLocation |
Any valid directory path |
Commented |
traceFormat |
ALL | text | XML |
Commented |
traceLevel |
OFF | SEVERE | WARNING | INFO | CONFIG | FINE | FINER | FINEST |
Commented |
PROF_adminUserName |
Any valid user ID |
Empty string |
PROF_adminPassword |
Any valid user password |
Empty string |
PROF_appServerProfileName |
A valid profile name |
Commented |
PROF_appServerNodeName |
A string with valid characters |
Commented |
PROF_cellName |
A string with valid characters |
Commented |
PROF_defaultPorts |
Commented | Uncommented |
Commented |
PROF_dmgrAdminPassword |
Valid deployment manager administrative user password |
Commented |
PROF_dmgrAdminUserName |
Valid deployment manager administrative user name |
Commented |
PROF_dmgrHost |
Host name of the deployment manager |
Commented |
PROF_dmgrPort |
SOAP port of the deployment manager |
Commented |
PROF_dmgrProfileName |
A valid profile name |
Commented |
PROF_enableAdminSecurity |
"true | false" |
"true" |
PROF_hostName |
Any valid host name |
Commented |
PROF_isDefault |
Commented | Uncommented |
Commented |
PROF_nodeName |
Any valid and unique node name |
Commented |
PROF_nodeOmitAction |
Valid name of a configuration action for the cell |
Commented |
PROF_omitAction |
Name of a configuration action |
Commented |
PROF_portsFile |
Any valid file path to a valid ports file |
Commented |
PROF_profileName |
Any valid profile name string |
Commented |
PROF_profilePath |
Commented |
|
PROF_serverType |
DEPLOYMENT_MANAGER | JOB_MANAGER | ADMIN_AGENT |
Commented |
PROF_serverName |
Any application server name, such as server1 |
Commented |
PROF_startingPort |
Any valid port number |
Commented |
PROF_validatePorts |
Commented | Uncommented |
Commented |
PROF_webServerCheck |
"true | false" |
Commented |
PROF_webServerHostname |
A valid host name of the system with the Web server |
Commented |
PROF_webServerInstallPath |
Any valid directory path to the Web server |
Commented |
PROF_webServerName |
A valid name of a valid Web server |
Commented |
PROF_webServerOS |
linux | windows | aix | hp | solaris | os390 | i5os |
Commented |
PROF_webServerPluginPath |
Any valid directory path to the Web server plug-ins |
Commented |
PROF_webServerPort |
A valid port to access the Web server |
Commented |
PROF_webServerType |
IHS | IIS | SUNJAVASYSTEM | DOMINO | APACHE | HTTPSERVER_ZOS |
Commented |
PROF_winserviceAccountType |
specified user | localsystem |
Commented |
PROF_winserviceCheck |
"true | false" |
Commented |
PROF_winserviceStartupType |
manual | automatic | disabled |
Commented |
PROF_winservicePassword |
The password of the valid specified user |
Commented |
PROF_winserviceUserName |
The name of the valid specified user |
Commented |
例子:已測試成功的例子,默認安裝Dmgr01/AppSrv01
新安裝腳本:
自動創建Dmgr01和AppSrv01
-OPT silentInstallLicenseAcceptance="true" -OPT installType="installNew" -OPT profileType="cell" -OPT feature="noFeature" -OPT PROF_enableAdminSecurity="true" -OPT PROF_adminUserName=admin -OPT PROF_adminPassword=admin -OPT installLocation="/opt/IBM/WebSphere/AppServer" |
添加特徵腳本:
-OPT silentInstallLicenseAcceptance="true" -OPT installType="addFeature" -OPT feature="languagepack.console.all" -OPT feature="languagepack.server.all" -OPT feature="samplesSelected" -OPT PROF_enableAdminSecurity="true" -OPT PROF_adminUserName=admin -OPT PROF_adminPassword=admin -OPT PROF_samplesPassword=admin -OPT installLocation="/opt/IBM/WebSphere/AppServer" |
或者只安裝websphere:
-OPT silentInstallLicenseAcceptance="true" -OPT installType="installNew" -OPT profileType="none" -OPT feature="languagepack.console.all" -OPT feature="languagepack.server.all" -OPT feature="samplesSelected" -OPT PROF_enableAdminSecurity="true" -OPT PROF_adminUserName=admin -OPT PROF_adminPassword=admin -OPT installLocation="/opt/IBM/WebSphere/AppServer" |
參考:
注意:
1、在聯合節點之前要在/etc/hosts中加入相關的IP 地址及主機名:
例如:
192.168.11.44 rhost1
192.168.11.45 rhost2
2、注意防火牆設置,添加服務端口或關閉防火牆。
否則會導致不能聯合節點
創建部署管理器概要:
./manageprofiles.sh -create -profileName Dmgr001 -templatePath "/opt/IBM/WebSphere/AppServer/profileTemplates/management" -serverType DEPLOYMENT_MANAGER -nodeName Dmgr001Node -cellName Dmgr001NodeCell -hostName rhost2 -dmgrAdminPassword admin -dmgrAdminUserName admin -isDefault -defaultPorts
-enableAdminSecurity true
添加密碼:
-adminUserName admin -adminPassword admin
./manageprofiles.sh -create -profileName Dmgr001 -templatePath "/opt/IBM/WebSphere/AppServer/profileTemplates/management" -serverType DEPLOYMENT_MANAGER -nodeName Dmgr001Node -cellName Dmgr001NodeCell -hostName 192.168.11.36 -isDefault –defaultPorts
./manageprofiles.sh -create -profileName Dmgr001 -templatePath "/opt/IBM/WebSphere/AppServer/profileTemplates/management" -serverType DEPLOYMENT_MANAGER -nodeName Dmgr001Node -cellName Dmgr001NodeCell -hostName rhost -adminUserName admin -adminPassword admin -isDefault -defaultPorts
創建一個自定義可管理概要並添加到部署管理概要:
./manageprofiles.sh -create -profileName Custom01 -templatePath"/opt/IBM/WebSphere/AppServer/profileTemplates/managed" -nodeName CustomNode01 -cellName CustomNodeCell01 -hostName localhost -isDefault -dmgrHost localhost -dmgrPort 8879 -defaultPorts
先創建自定義概要再用addNode 添加到部署管理概要:
./manageprofiles.sh -create -profileName Custom001 -templatePath "/opt/IBM/WebSphere/AppServer/profileTemplates/managed" -nodeName CustomNode001 -cellName CustomNodeCell001 -hostName wangtietang -isDefault -defaultPorts
addNode.bat 192.168.11.36 8879 -profileName Custom001 -username admin -password admin
注意聯合節點時在主機/etc/hosts中加入相關的服務器信息,例如:192.168.11.36 rhost2
添加部署管理器節點: manageprofiles.bat -create -profileName Dmgr001 -templatePath "D:/Program Files/IBM/WebSphere/AppServer/profileTemplates/management" -serverType DEPLOYMENT_MANAGER -nodeName Dmgr001Node -cellName Dmgr001NodeCell -hostName 192.168.11.2 -dmgrAdminPassword admin -dmgrAdminUserName admin -enableAdminSecurity true -adminUserName admin -adminPassword admin -isDefault -defaultPorts
未啓用安全添加節點及server及聯合節點: manageprofiles.bat -create -profileName Custom01 -templatePath "D:/Program Files/IBM/WebSphere/AppServer/profileTemplates/managed" -nodeName CustomNode01 -cellName CustomNodeCell01 -hostName 192.168.11.2 -isDefault -dmgrHost 192.168.11.2 -dmgrPort 8879 -defaultPorts
啓用安全時添加節點及server: manageprofiles.bat -create -profileName Custom001 -templatePath "D:/Program Files/IBM/WebSphere/AppServer/profileTemplates/managed" -nodeName CustomNode001 -cellName CustomNodeCell001 -hostName 192.168.11.2 -isDefault -defaultPorts 啓用安全時聯合節點: addNode.bat 192.168.11.2 8879 -profileName Custom001 -username admin -password admin 啓用安全時添加節點及server: manageprofiles.bat -create -profileName Custom002 -templatePath "D:/Program Files/IBM/WebSphere/AppServer/profileTemplates/managed" -nodeName CustomNode002 -cellName CustomNodeCell002 -hostName 192.168.11.2 -isDefault -defaultPorts 啓用安全時聯合節點: addNode.bat 192.168.11.2 8879 -profileName Custom002 -username admin -password admin
|
或
默認: ./manageprofiles.sh -create -profileName Custom001 -templatePath "/opt/IBM/WebSphere/AppServer/profileTemplates/managed" -hostName rhost2 -isDefault -defaultPorts
./addNode.sh rhost1 8879 -profileName Custom001 -username admin -password admin
|
例子:
./install -options /opt/setup/setup.txt -silent
-OPT silentInstallLicenseAcceptance="true"
-OPT installType="installNew"
-OPT profileType="cell"
-OPT feature="languagepack.console.all"
-OPT feature="languagepack.server.all"
-OPT feature="samplesSelected"
-OPT PROF_enableAdminSecurity="true"
-OPT PROF_adminUserName=admin
-OPT PROF_adminPassword=admin
-OPT PROF_samplesPassword="admin"
-OPT installLocation="/opt/IBM/WebSphere/AppServer"
-OPT PROF_appServerProfileName="MyServer01"
-OPT PROF_appServerNodeName="MyNode01"
-OPT PROF_cellName="MyCell01"
-OPT PROF_dmgrAdminUserName=admin
-OPT PROF_dmgrAdminPassword=admin
-OPT PROF_dmgrHost="192.168.11.36"
-OPT PROF_dmgrProfileName="MyDmgr01"
-OPT PROF_defaultPorts
-OPT PROF_hostName="192.168.11.36"
-OPT PROF_isDefault
-OPT PROF_nodeName="MyNode01"
IBM HTTP Server 靜默安裝:安裝並創建plugin
腳本,雙擊打開:
#靜默安裝,是否接受license -OPT silentInstallLicenseAcceptance="true" #安裝目錄 -OPT installLocation="/opt/IBM/HTTPServer" #HTTP監聽端口 -OPT httpPort="80" #管理監聽端口 -OPT adminPort="8008" #是否創建管理員權限,以進行IBM HTTP Server 管理服務器認證,用於使用WebSphere Application Server管理控制檯進行IHS管理服務認證 -OPT createAdminAuth="true" #管理員用戶名稱 -OPT adminAuthUser="admin" #管理員用戶密碼 -OPT adminAuthPassword="admin" #管理員用戶密碼確認 -OPT adminAuthPasswordConfirm="admin"
# ******************************************************************** # Set this to "true" to perform steps to setup IBM HTTP Administration # Server on Linux and UNIX operating systems. When set to "true", the # installation grants a user ID write access to the necessary IBM HTTP # Server and plug-in configuration files. # ******************************************************************** # -OPT runSetupAdmin="true"
# ***************************************************************************** # Set createAdminUserGroup to "true" to create a user ID and group used # to setup the IBM HTTP Administration Server on Linux and UNIX operating # systems. If the user ID or Group previously exists, set createAdminUserGroup # to "false". # *****************************************************************************
-OPT createAdminUserGroup=www
# ********************************************************************** # User ID and Group name used to setup IBM HTTP Administration Server on # Linux and UNIX operating systems. # **********************************************************************
-OPT setupAdminUser="www" -OPT setupAdminGroup="www"
-OPT installPlugin="true"
# ********************************************************************************** # # Web server Definition Name # # A web server definition allows for Web server administration through the WebSphere # admin console. # # Note : No spaces are allowed in the Web server definition name. # **********************************************************************************
-OPT webserverDefinition="webserver1"
# ********************************************************************************** # # WebSphere Application Server Machine HostName # # Enter the hostname of the WebSphere Application Server machine. # # Note : Hostname is required when installPlugin is set to true. No spaces are # allowed in the Hostname definition. # **********************************************************************************
-OPT washostname="rhost1"
# ******************************************* # End features for WebSphere Plugin for the # IBM HTTP Server. # *******************************************
|