1.安装weblogic2.安装xmanager3.创建域3.1.在aixunix下创建域先通过xmanager登录系统,用户root口令root在terminal下执行cd/bea/weblogic81/common/bin./config.sh建新域的操作同下面的windows的操作3.2在windows下创建域1.启动开始菜单的quickstart,执行createanewdomainconfiguration…2.下一步3.下一步,选自定义4.下一步,name=myserver,listenport:60015.下一步6.下一步,user=weblogicpassword=weblogic7.下一步8.下一步,选择生产模式aix机器要选用ibm提供的jdk,路径:/usr/java149.下一步10.创建,完成4.配置服务4.1服务配置:4.1.1启动口令配置文件:在管理服务器的主目录中,例如:/bea/user_projects/domains/mydomain,创建文件boot.properties加入两行username=weblogicpassword=weblogic4.1.2启动命令配置在启动命令startWebLogic.sh最后加上-DINDIGO_HOME=\bea\app4.1.3系统环境设置no-p-oudp_sendspace=327684.2集群服务配置:4.2.1管理服务器配置----代理服务器1.http://管理服务器:6001/console2.部署一个web应用proxy.warproxy.war中的web.xml的地址需要作相应修改,参与cluster的服务器都需要加上。例如:param-nameWebLogicCluster/param-nameparam-valuelocalhost1:9001|localhost2:9001/param-value4.2.2管理服务器配置----cluster1.http://管理服务器:6001/console2.新建一个clustername=jungleCluster(任意)clusteraddress=被管理服务器1:9001,被管理服务器2:9001multicastAddress=237.0.0.1multicastPort=6000(不能和6001--管理服务器和9001--被管理服务器重复)4.2.3管理服务器配置----managedserver1.http://管理服务器:6001/console2.新建一个server属于上面所建的clustercluster=myClustername=MyServer1listenaddress=当前物理机器ipport=60014.2.4被管理服务器配置1.从已建domain目录中,拷贝startManagedWebLogic.sh为startm.sh2.修改startm.sh文件,有五处要修改,下面有全部拷贝及其修改说明。3.用nohup./startm.sh&启动4.如果要在别的物理服务器新建被管理服务器,在该服务器上安装bea,bea_home选择同样的目录5.从已建domain目录拷贝setEnv.sh,startm.sh,serializedsystemini.dat到该被管理服务器同样目录中6.修改startm.sh文件中SERVER_NAME=cluster中配置的服务器名7.chmod777*8.用nohup./starm.sh&启动///////////////////////////////////startm.sh共五处要修改,修改完成后用如下命令启动:nohup./startm.sh&///////////////////////////////////#!/bin/sh#****************************************************************************#ThisscriptisusedtostartamanagedWebLogicServerforthedomaininthe#currentworkingdirectory.ThisscriptreadsintheSERVER_NAMEand#ADMIN_URLaspositionalparameters,setstheSERVER_NAMEvariable,then#startstheserver.##OthervariablesthatstartWLStakesare:##WLS_USER-cleartextuserforserverstartup#WLS_PW-cleartextpasswordforserverstartup#PRODUCTION_MODE-Settotrueforproductionmodeservers,falsefor#developmentmode#JAVA_OPTIONS-Javacommand-lineoptionsforrunningtheserver.(These#willbetaggedontotheendoftheJAVA_VMandMEM_ARGS)#JAVA_VM-ThejavaargspecifyingtheVMtorun.(i.e.-server,#-hotspot,etc.)#MEM_ARGS-Thevariabletooverridethestandardmemoryarguments#passedtojava##Foradditionalinformation,refertotheWebLogicServerAdministrationGuide#(/ConsoleHelp/startstop.html).#****************************************************************************#setupWL_HOME,therootdirectoryofyourWebLogicinstallationWL_HOME=/bea/weblogic81#setupcommonenvironment#SetProductionMode.Whenthisissettotrue,theserverstartsupin#productionmode.Whensettofalse,theserverstartsupindevelopment#mode.Ifitisnotset,itwilldefaulttofalse.PRODUCTION_MODE=#SetJAVA_VENDORtojavavirtualmachineyouwanttorunonserverside.JAVA_VENDOR=IBM#SetJAVA_HOMEtojavavirtualmachineyouwanttorunonserverside.JAVA_HOME=/usr/java14.${WL_HOME}/common/bin/commEnv.sh#SetSERVER_NAMEtothenameoftheserveryouwishtostartup.ADMIN_URL=旧:SERVER_NAME=#新:SERVER_NAME=server45SERVER_NAME=server141#SetWLS_USERequaltoyoursystemusernameandWLS_PWequal#toyoursystempasswordfornousernameandpasswordprompt#duringserverstartup.Botharerequiredtobypassthestartup#prompt.#旧:WLS_USER=#新:WLS_USER=weblogicWLS_USER=weblogic#旧:WLS_PW=#新:WLS_PW=weblogicWLS_PW=weblogic#SetJAVA_VMtojavavirtualmachineyouwanttorunonserverside.#JAVA_VM=#SetJAVA_OPTIONStothejavaflagsyouwanttopasstothevm.Ifthere#aremorethanone,includequotesaroundthem.Forinstance:#JAVA_OPTIONS=-Dweblogic.attribute=value-Djava.attribute=valueusage(){echoNeedtosetSERVER_NAMEandADMIN_URLenvironmentvariablesorspecifyechothemincommandline:echo'Usage:./startManagedWebLogic.sh[SERVER_NAME][ADMIN_URL]'echoforexample:echo'./startManagedWebLogic.shmanagedserver1}#CheckforvariablesSERVER_NAMEandADMIN_URL#SERVER_NAMEandADMIN_URLmustbyspecifiedbeforestartingamanagedserver,#detailedinformationcanbefoundat/adminguide/startstop.html.if[${#}=0];thenif[x${SERVER_NAME}=x-ox${ADMIN_URL}=x];thenusagefielif[${#}=1];thenSERVER_NAME=${1}if[x${ADMIN_URL}=x];thenusagefielif[${#}=2];thenSERVER_NAME=${1}ADMIN_URL=${2}elseusagefi#StartWebLogicserver#Resetnumberofopenfiledescriptorsinthecurrentprocess#ThisfunctionisdefinedincommEnv.shresetFdCLASSPATH=${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${POINTBASE_CLASSPATH}${CLASSPATHSEP}${JAVA_HOME}/jre/lib/rt.jar${CLASSPATHSEP}${WL_HOME}/server/lib/webservices.jar${CLASSPATHSEP}${CLASSPATH}exportCLASSPATH#StartWebLogicserverechoCLASSPATH=${CLASSPATH}echoechoPATH=${PATH}echoecho***************************************************echo*TostartWebLogicServer,useausernameand*echo*passwordassignedtoanadmin-leveluser.For*echo*serveradministration,usetheWebLogicServer*echo*consoleat*/port/hostnameecho***************************************************#旧:#新:MEM_ARGS=-Xms256m-Xmx512m-XrsMEM_ARGS=-Xms256m-Xmx512m-Xrs$JAVA_HOME/bin/java${JAVA_VM}${