ENGINE] #DO NOT CHANGE THIS. Response File Version=1.0.0.0.0 [GENERIC] #The oracle home location. This can be an existing Oracle Home or a new Oracle Home ORACLE_HOME=/weblogic #此项为weblogic的安装目录 #Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples. INSTALL_TYPE=WebLogic Server #Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name. MYORACLESUPPORT_USERNAME= #Provide the My Oracle Support Password MYORACLESUPPORT_PASSWORD=<SECURE VALUE> #Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration DECLINE_SECURITY_UPDATES=true #Set this to true if My Oracle Support Password is specified SECURITY_UPDATES_VIA_MYORACLESUPPORT=false #Provide the Proxy Host PROXY_HOST= #Provide the Proxy Port PROXY_PORT= #Provide the Proxy Username PROXY_USER= #Provide the Proxy Password PROXY_PWD=<SECURE VALUE> #Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port] COLLECTOR_SUPPORTHUB_URL=
inventory_loc=/weblogic/oraInventory
inst_group=weblogic
创建文件并权限授予用户权限
cd /weblogic/
创建/weblogic/domains目录作为域安装目录。
java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /weblogic/wls.rsp -invPtrLoc /weblogic/oraInst.loc
export MW_HOME=/weblogic/domains
export WL_HOME=/weblogic/domains/oracle_common
wls:/offline>readTemplate(‘/weblogic/domains/wlserver/common/templates/wls/wls.jar‘)
wls:/offline/basedomain>cd(‘Servers/AdminServer‘)
wls:/offline/basedomain/Server/AdminServer>set(‘ListenAddress‘,‘‘)
#端口号可以自定义
wls:/offline/basedomain/Server/AdminServer>set(‘ListenPort‘, 7001)wls:/offline/basedomain/Server/AdminServer>cd(‘../..‘)
wls:/offline/basedomain>cd(‘Security/basedomain/User/weblogic‘)
#密码可以自定义,但不能太过简单
wls:/offline/basedomain/Security/basedomain/User/weblogic>cmo.setPassword(‘welcome1‘)wls:/offline/basedomain/Security/basedomain/User/weblogic>setOption(‘OverwriteDomain‘, ‘true‘)
wls:/offline/basedomain/Security/basedomain/User/weblogic>writeDomain(‘/weblogic/domains/domains/basedomain‘)
closeTemplate()
exit()*
原文地址:http://blog.51cto.com/13632960/2102850