一、安装weblogic
操作系统环境
CentOS Linux release 7.4.1708 (Core)
1、 创建weblogic操作用户
useradd weblogicpasswd weblogic #密码:123456
2、 安装jdk-7u80-linux-x64.tar.gz
mkdir -p /applicationtar -zxvf jdk-7u80-linux-x64.tar.gz -C /applicationJAVA_HOME=/application/jdk1.7export JRE_HOME=/application/jdk1.7/jreexport CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATHexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
3、 修改配置
vim /application/jdk1.7/jre/lib/security/java.security最初securerandom.source=file:/dev/urandom修改后securerandom.source=file:/dev/./urandom
4、创建清单文件,以及组
echo '#Oracle Installer Location File Location' >> /etc/oraInst.locecho 'inst_group=weblogic' >> /etc/oraInst.locecho 'inventory_loc=/home/weblogic/oraInventory' >> /etc/oraInst.locchmod 755 /etc/oraInst.locchown -R weblogic:weblogic /etc/oraInst.loc
5、创建rsp文件切换到weblogic用户创建
su - weblogicvim wls.rsp[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 HomeORACLE_HOME=/home/weblogic/Oracle/Middleware ---》指定安装的目录路径#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 PasswordMYORACLESUPPORT_PASSWORD=<SECURE VALUE>DECLINE_SECURITY_UPDATES=true#Set this to true if My Oracle Support Password is specifiedSECURITY_UPDATES_VIA_MYORACLESUPPORT=false#Provide the Proxy HostPROXY_HOST=#Provide the Proxy PortPROXY_PORT=#Provide the Proxy UsernamePROXY_USER=#Provide the Proxy PasswordPROXY_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=
6、增加文件权限:
chmod 755 wls.rsp
7、下载安装weblogic
java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /etc/oraInst.loc
8、安装域(domain)
mkdir -p /home/weblogic/Oracle/Middleware/domainscd /home/weblogic/Oracle/Middleware/wlserver/common/bin./commEnv.sh./wlst.shwls:/offline> readTemplate('/home/weblogic/Oracle/Middleware/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('weblogic12c')wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/home/weblogic/Oracle/Middleware/domains')wls:/offline/domains/Security/domains/User/weblogic>closeTemplate()wls:/offline>exit()
9、启动控制台
[[email protected] domains]$ pwd/home/weblogic/Oracle/Middleware/domains[[email protected] domains]$ ./startWebLogic.sh &
二、登录页面
1、链接及端口
http://10.0.0.112:7001/consoleweblogic、weblogic12c