centos7部署weblogic14

资源下载

java:链接:https://pan.baidu.com/s/1O1EMc4nZSKa7e2IcFDdHMg 
提取码:g7gc

weblogic:链接:https://pan.baidu.com/s/12v7dqxz_2Gri0QgBNbKdsQ 
提取码:oi8k 

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

创建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=
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=

运行安装脚本,安装时会进行检查,如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 /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.

创建domain域

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

创建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;

配置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

启动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
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

启动完成,访问页面

centos7部署weblogic14_第1张图片

centos7部署weblogic14_第2张图片

用户名:weblogic 密码:weblogic@123

centos7部署weblogic14_第3张图片

参考:https://www.programmersought.com/article/4359992342/

你可能感兴趣的:(centos7部署weblogic14)