centos7系统Weblogic14部署安装教程

编程入门 行业动态 更新时间:2024-10-28 00:17:20

一、准备环境
linux操作系统
java环境
weblogic安装包

1、安装java

# tar -zxvf jdk-8u251-linux-x64.tar.gz
# cd /usr/local/
# mkdir jdk
# cd jdk/
# mv /home/jdk1.8.0_251/ .
# vim /etc/profile #添加以下内容
export JAVA_HOME=/usr/local/jdk/jdk1.8.0_251
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
# source /etc/profile
# java -version
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)

2、创建weblogic用户

# useradd weblogic
# passwd weblogic
# su - weblogic

3、安装weblogic

$ unzip fmw_14.1.1.0.0_wls_quick_Disk1_1of1.zip

4、创建loc文件和response文件

$ vim oraInst.loc
inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic
$ vim 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 Home
# Apart from the need to install the directory, there is no need to make changes in other places.
ORACLE_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 Password
#
#MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
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=<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=

5、执行安装脚本
安装时会进行检查,如jdk版本检查、cpu速度、交换空间大小、临时空间大小等,复制时会显示百分比进度条,时间较长,请耐心等待。

$ java -jar fmw_14.1.1.0.0_wls_quick.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc -ignoreSysPrereqs
Launcher log file is /tmp/OraInstall2020-07-08_02-25-04AM/launcher2020-07-08_02-25-04AM.log.
Extracting the installer . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 1991.997 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 2047 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 148366 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-07-08_02-25-04AM
Log: /tmp/OraInstall2020-07-08_02-25-04AM/install2020-07-08_02-25-04AM.log
 
*****************************************************
 
 
Distribution Name : Oracle Fusion Middleware 14.1.1 WebLogic and Coherence Developer
Distribution Version : 14.1.1.0.0
 
Oracle Inventory : /home/weblogic/oraInventory
 
Oracle Home : /home/weblogic/wls1411
Java Home : /usr/local/jdk/jdk1.8.0_251
 
Note: Oracle Home not supplied (defaulted to <present working dir>/wls1411)
 
*****************************************************
 
Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Validations are enabled for this session.
Verifying data
Copying Files
 
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100
 
The installation of Oracle Fusion Middleware 14.1.1 WebLogic and Coherence Developer 14.1.1.0.0 completed successfully.
Logs successfully copied to /home/weblogic/wls1411/cfgtoollogs/oui.

以上显示安装成功

6、创建domain域

# mkdir -p /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/

7、创建create_domain.rsp文件

$ vim create_domain.rsp
read template from "/home/weblogic/wls1411/wlserver/common/templates/wls/wls.jar";
 
set JavaHome "/usr/local/jdk/jdk1.8.0_251";
 
set ServerStartMode "dev";
 
find Server "AdminServer" as AdminServer;
 
set AdminServer.ListenAddress "";
 
set AdminServer.ListenPort "7001";
 
set AdminServer.SSL.Enabled "true";
 
set AdminServer.SSL.ListenPort "8002";
 
//We can directly create a new managed server.
 
create Server "base" as BASE;
 
set BASE.ListenAddress "";
 
set BASE.ListenPort "8003";
 
//set BASE.SSL.Enabled "true";
 
//set BASE.SSL.ListenPort "8004″;
//Create Machine
create Machine "base" as Machinename;
//use templates default weblogic user
find User "weblogic" as u1;
set u1.password "weblogic123";
//create a new user
create User "weblogic2" as u2;
set u2.password "weblogic123";
write domain to "/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/";
//The domain name will be "demo-domain"
close template;

8、配置weblogic

$ [weblogic@weblogic ~]$ cd wls1411/wlserver/common/bin/
$ [weblogic@weblogic bin]$ pwd
/home/weblogic/wls1411/wlserver/common/bin
$ ls
 config.sh  pack.sh  unpack.sh  wlscontrol.sh  wlsifconfig.sh  wlst.sh
$ ./config.sh -mode=silent -silent_script=/home/weblogic/create_domain.rsp -logfile=/home/weblogic/create_domain.log
WARNING: This is a deprecated script. Please invoke the config.sh script under oracle_common/common/bin.
<< read template from "/home/weblogic/wls1411/wlserver/common/templates/wls/wls.jar"
>>  succeed: read template from "/home/weblogic/wls1411/wlserver/common/templates/wls/wls.jar"
<< set config option JavaHome to "/usr/local/jdk/jdk1.8.0_251"
>>  succeed: set config option JavaHome to "/usr/local/jdk/jdk1.8.0_251"
<< set config option ServerStartMode to "dev"
>>  succeed: set config option ServerStartMode to "dev"
<< find Server "AdminServer" as AdminServer
>>  succeed: find Server "AdminServer" as AdminServer
<< set AdminServer attribute ListenAddress to ""
>>  succeed: set AdminServer attribute ListenAddress to ""
<< set AdminServer attribute ListenPort to "7001"
>>  succeed: set AdminServer attribute ListenPort to "7001"
<< set AdminServer attribute SSL!Enabled to "true"
>>  succeed: set AdminServer attribute SSL!Enabled to "true"
<< set AdminServer attribute SSL!ListenPort to "8002"
>>  succeed: set AdminServer attribute SSL!ListenPort to "8002"
<< create Server "base" as BASE
>>  succeed: create Server "base" as BASE
<< set BASE attribute ListenAddress to ""
>>  succeed: set BASE attribute ListenAddress to ""
<< set BASE attribute ListenPort to "8003"
>>  succeed: set BASE attribute ListenPort to "8003"
<< create Machine "base" as Machinename
>>  succeed: create Machine "base" as Machinename
<< find User "weblogic" as u1
>>  succeed: find User "weblogic" as u1
<< set u1 attribute Password to "********"
>>  succeed: set u1 attribute Password to "********"
<< create User "weblogic2" as u2
>>  succeed: create User "weblogic2" as u2
<< set u2 attribute Password to "********"
>>  succeed: set u2 attribute Password to "********"
<< write Domain to "/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/"
..................................................
>>  succeed: write Domain to "/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/"
<< close template
>>  succeed: close template

9、启动weblogic

$ cd Oracle/Middleware/user_projects/domains/base_domain/
$ ls
autodeploy  bin  common  config  console-ext  fileRealm.properties  init-info  lib  nodemanager  security  servers  startManagedWebLogic_readme.txt  startWebLogic.sh
$ ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000
.
CLASSPATH=/usr/local/jdk/jdk1.8.0_251/lib/tools.jar:/home/weblogic/wls1411/wlserver/server/lib/weblogic.jar:/home/weblogic/wls1411/wlserver/../oracle_common/modules/thirdparty/ant-contrib-1.0b3.jar:/home/weblogic/wls1411/wlserver/modules/features/oracle.wls.common.nodemanager.jar::/home/weblogic/wls1411/wlserver/common/derby/lib/derbynet.jar:/home/weblogic/wls1411/wlserver/common/derby/lib/derbyclient.jar:/home/weblogic/wls1411/wlserver/common/derby/lib/derby.jar:.:/usr/local/jdk/jdk1.8.0_251/lib:/usr/local/jdk/jdk1.8.0_251/jre/lib
.
PATH=/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin:/home/weblogic/wls1411/wlserver/server/bin:/home/weblogic/wls1411/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.10.5.0.0/apache-ant-1.10.5/bin:/usr/local/jdk/jdk1.8.0_251/jre/bin:/usr/local/jdk/jdk1.8.0_251/bin:/usr/local/jdk/jdk1.8.0_251/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/weblogic/.local/bin:/home/weblogic/bin
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
Starting WLS with line:
/usr/local/jdk/jdk1.8.0_251/bin/java -server   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -cp /home/weblogic/wls1411/wlserver/server/lib/weblogic-launcher.jar -Dlaunch.use.env.classpath=true -Dweblogic.Name=AdminServer -Djava.security.policy=/home/weblogic/wls1411/wlserver/server/lib/weblogic.policy  -Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader  -javaagent:/home/weblogic/wls1411/wlserver/server/lib/debugpatch-agent.jar -da -Dwls.home=/home/weblogic/wls1411/wlserver/server -Dweblogic.home=/home/weblogic/wls1411/wlserver/server     -Djava.endorsed.dirs=/usr/local/jdk/jdk1.8.0_251/jre/lib/endorsed:/home/weblogic/wls1411/wlserver/../oracle_common/modules/endorsed:/home/weblogic/wls1411/wlserver/modules/endorsed  weblogic.Server
<Jul 8, 2020 2:37:13 AM EDT> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.>
<Jul 8, 2020 2:37:13 AM EDT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.>
<Jul 8, 2020 2:37:15 AM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.251-b08 from Oracle Corporation.>
<Jul 8, 2020 2:37:15 AM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 14.1.1.0.0  Thu Mar 26 03:15:09 GMT 2020 2000885>
<Jul 8, 2020 2:37:18 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<Jul 8, 2020 2:37:18 AM EDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.>
<Jul 8, 2020 2:37:19,903 AM EDT> <Notice> <Log Management> <BEA-170019> <The server log file weblogic.logging.FileStreamHandler instance=1479554185
Current log file=/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log
Rotation dir=/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/logs
 is opened. All server side log events will be written to this file.>
<Jul 8, 2020 2:37:20,139 AM EDT> <Notice> <Security> <BEA-090946> <Security pre-initializing using security realm: myrealm>
<Jul 8, 2020 2:37:21,717 AM EDT> <Notice> <Security> <BEA-090947> <Security post-initializing using security realm: myrealm>
<Jul 8, 2020 2:37:23,821 AM EDT> <Notice> <Security> <BEA-090082> <Security initialized using administrative security realm: myrealm>
<Jul 8, 2020 2:37:24,624 AM EDT> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://192.168.122.17:7001/jndi/weblogic.management.mbeanservers.runtime.>
<Jul 8, 2020 2:37:26,620 AM EDT> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://192.168.122.17:7001/jndi/weblogic.management.mbeanservers.domainruntime.>
<Jul 8, 2020 2:37:27,028 AM EDT> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://192.168.122.17:7001/jndi/weblogic.management.mbeanservers.edit.>
<Jul 8, 2020 2:37:28,947 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.>
<Jul 8, 2020 2:37:28,948 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<Jul 8, 2020 2:37:29,022 AM EDT> <Notice> <Log Management> <BEA-170036> <The Logging monitoring service timer has started to check for logged message counts every 30 seconds.>
<Jul 8, 2020 2:37:29,803 AM EDT> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.>
<Jul 8, 2020 2:37:30,085 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.>
<Jul 8, 2020 2:37:30,203 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.>
<Jul 8, 2020 2:37:30,448 AM EDT> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/security/DemoIdentity.jks.>
<Jul 8, 2020 2:37:30,465 AM EDT> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /home/weblogic/wls1411/wlserver/server/lib/DemoTrust.jks.>
<Jul 8, 2020 2:37:30,467 AM EDT> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /usr/local/jdk/jdk1.8.0_251/jre/lib/security/cacerts.>
<Jul 8, 2020 2:37:30,490 AM EDT> <Warning> <Server> <BEA-002611> <The hostname "localhost", maps to multiple IP addresses: 127.0.0.1, 0:0:0:0:0:0:0:1.>
<Jul 8, 2020 2:37:30,492 AM EDT> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "base_domain" running in development mode.>
<Jul 8, 2020 2:37:30,497 AM EDT> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>
<Jul 8, 2020 2:37:30,502 AM EDT> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 192.168.122.17:8002 for protocols iiops, t3s, ldaps, https.>
<Jul 8, 2020 2:37:30,503 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jul 8, 2020 2:37:30,503 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.122.17:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jul 8, 2020 2:37:30,503 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 0:0:0:0:0:0:0:1%lo:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jul 8, 2020 2:37:30,504 AM EDT> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[2]" is now listening on 127.0.0.1:8002 for protocols iiops, t3s, ldaps, https.>
<Jul 8, 2020 2:37:30,504 AM EDT> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[1]" is now listening on 0:0:0:0:0:0:0:1%lo:8002 for protocols iiops, t3s, ldaps, https.>
<Jul 8, 2020 2:37:30,504 AM EDT> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 192.168.122.17:8002 for protocols iiops, t3s, ldaps, https.>
<Jul 8, 2020 2:37:30,504 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jul 8, 2020 2:37:30,505 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.122.17:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jul 8, 2020 2:37:30,505 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 0:0:0:0:0:0:0:1%lo:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jul 8, 2020 2:37:30,505 AM EDT> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[2]" is now listening on 127.0.0.1:8002 for protocols iiops, t3s, ldaps, https.>
<Jul 8, 2020 2:37:30,506 AM EDT> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[1]" is now listening on 0:0:0:0:0:0:0:1%lo:8002 for protocols iiops, t3s, ldaps, https.>
<Jul 8, 2020 2:37:30,568 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>

10、访问web页面
用户名:weblogic
密码:weblogic123

更多推荐

centos7系统Weblogic14部署安装教程

本文发布于:2023-06-14 07:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1451503.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:教程   系统

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!