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
| Any valid file path. See the description of profile_root in Directory conventions for default values.
| 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"
|
参考:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rxml_manageprofiles.html
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/welcome_express.html
注意:
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.
# *******************************************
|
|