设为首页 收藏本站
查看: 1016|回复: 0

[经验分享] WebSphere V7.0 IBM HTTP Server 静默安装(无人值守命令安装)及概要管理命令

[复制链接]

尚未签到

发表于 2017-5-27 09:37:41 | 显示全部楼层 |阅读模式
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

新安装脚本:

自动创建Dmgr01AppSrv01

-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.
# *******************************************



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-381596-1-1.html 上篇帖子: IBM中化携手云端 共创中国首个企业云平台(2009云计算时代) 下篇帖子: Build and deploy OSGi as Spring bundles using Felix(From IBM developerworks)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表