1. cd /home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin
2. ./config.sh -mode=console(用控制台模式安装)
3.选择1创建domain,然后回车
4.选择1默认平台模板,回车
5.选择一个模板,这里选择第一个,直接按回车
6.输入domain名称,回车
7.确认名称,输入1并回车
直接回车
8.输入domain路径并回车
9.设置密码(输入2)和确认密码(输入3)
确认密码
10,回车进入下一步,配置domain模式,这里选择开发模式,1-》回车
11,jdk选择1,现有的配置好的jdk,回车
12.选择管理服务器,输入1然后回车
13.再次回车确认
14.设置服务名称(1)和端口(3),设置完成后按回车
15.domain创建成功
16.设置启动参数,在trap 'stopAll' 1 2 3 15下面:
MEM_ARGS='-d64 -Xms4G -Xmx4G -XX:PermSize=512M -XX:MaxPermSize=1024M -XX:NewSize=1G -XX:MaxNewSize=1G -Djvm.name=02 -Dcom.sun.management.jmxremote.port=7485 -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djavax.management.builder.initial=weblogic.management.jmx.mbeanserver.WLSMBeanServerBuilder -Dweblogic.security.allowCryptoJDefaultPRNG=true -Dweblogic.security.allowCryptoJDefaultJCEVerification=true -XX:ReservedCodeCacheSize=256m -XX:SurvivorRatio=8 -XX:HeapDumpPath=OOM.hprof -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:gc.log -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:ParallelGCThreads=8 -XX:CMSInitiatingOccupancyFraction=40 -XX:MaxTenuringThreshold=18 -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCycle=10'
#由于先加载weblogic的jar,所以将冲突的jar放到CLASSPATH中优先加载
CXFCLASSPATH="$HOME/tools/mbank/geronimo-ws-metadata_2.0_spec-1.1.2.jar:"
SAXCLASSPATH="$HOME/tools/mbank/saxon8.jar:"
SAXDOMCLASSPATH="$HOME/tools/mbank/saxon8-dom.jar:"
XBEANPATHCLASSPTH="$HOME/tools/mbank/xbean_xpath.jar:"
ANTLRCLASSPATH="$HOME/tools/mbank/antlr-2.7.6.jar:"
COMMONLANGPATH="$HOME/tools/mbank/commons-lang-2.6.jar:"
XMLBEANSCLASSPATH="$HOME/tools/mbank/xmlbeans-2.3.0.jar:"
SAXPATH="$HOME/tools/mbank/saxpath.jar:"
CGLIBPATH="$HOME/tools/mbank/cglib-nodep-2.2.jar:"
SAPJCOCLASSPATH="$HOME/tools/jco308/sapjco3.jar:"
DB2PATH="$HOME/tools/mbank/db2jcc.jar:"
DB2JCCPATH="$HOME/tools/mbank/db2jcc_license_cu.jar:"
CLASSPATH="${ANTLRCLASSPATH}${XMLBEANSCLASSPATH}${CXFCLASSPATH}${COMMONLANGPATH}${SAXCLASSPATH}${SAXDOMCLASSPATH}${XBEANPATHCLASSPTH}${SAXPATH}${CGLIBPATH}${SAPJCOCLASSPATH}${DB2PATH}${DB2JCCPATH}${CLASSPATH}"
export CLASSPATH
17.启动,cd 到/home/weblogic/domains/cobankco_mBank_domain/bin
nohup ./startWebLogic.sh &
18.登录 http://ip:8000/console 用户名密码weblogic/weblogic123