

一,创立使用户组和使用户
[root@localhost weblogic]# groupadd weblogic
[root@localhost weblogic]# useradd –g weblogic weblogic
[root@localhost weblogic]# passwd weblogic 输入weblogic使用户的密码
二,准备weblogic目录
[root@localhost weblogic]# mkdir /opt/weblogic
[root@localhost weblogic]# chown -R weblogic /opt/weblogic
安装WebLogic
[root@localhost weblogic]# chown weblogic:weblogic /home/weblogic/fmw_12.1.3.0.0_wls.jar
[root@localhost weblogic]# chmod a+x /home/weblogic/fmw_12.1.3.0.0_wls.jar
[root@localhost weblogic]# su weblogic
[weblogic@localhost ~]$ java -d64 -jar fmw_12.1.3.0.0_wls.jar
weblogic Server 12.1.1一律都可以使用原来方式.
WebLogic Server 12.1.2后已经取消了console安装模式,目前只有gui和静默安装模式。并且安装方式下也有很大变化
三, 创立初始化环境文件oraInst.loc
inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic
有的文档上写成 inst_group=oui_install_group
四,创立响应文件wls.resp
[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=/opt/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=
#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=
#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=
五, 执行安装
java -jar -d64 /home/weblogic/fmw_12.1.3.0.0_wls.jar -silent -invPtrLoc /home/weblogic/oraInst.loc -responseFile /home/weblogic/wls.resp
Oracle Fusion Middleware 12c WebLogic Server 和 Coherence 12.1.3.0.0 的 安装 已成功完成。
日志已成功复制到/home/weblogic/oraInventory/logs。 -----打印此信息,说明weblogic安装成功了。
六. 创立domain
[weblogic@localhost bin]$ pwd /opt/weblogic/wlserver/common/bin
[weblogic@localhost bin]$ ./commEnv.sh MW_HOME or WL_HOME is not set.
[weblogic@localhost bin]$
注:export MW_HOME=$ORACLE_HOME 见响应文件 wls.resp 中的 ORACLE_HOME
export MW_HOME=/opt/weblogic
export WLS_HOME=$MW_HOME/wlserver
export WL_HOME=$WLS_HOME
cd /opt/weblogic/wlserver/common/bin
bash$ pwd
/opt/weblogic/wlserver/common/bin
bash$ ./commEnv.sh
bash$ ./wlst.sh
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> readTemplate('/opt/weblogic/wlserver/common/templates/wls/wls.jar')
wls:/offline/base_domain>cd('Servers/AdminServer')
wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)
wls:/offline/base_domain/Server/AdminServer>cd('../..')
wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic12')
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/opt/weblogic/user_projects/domains/test')
closeTemplate()
exit()
七, 启动nodeManager和weblogic
cd /opt/weblogic/user_projects/domains/test
./startWebLogic.sh &
./startNodeManager.sh &