weblogic下载与安装

采用weblogic10.3.6版本

下载过程

oracle中文官网

左上角三条杠->下载->中间件->WebLogic Server->See All Free WebLogic Server for Developer downloads->Installers with Oracle WebLogic Server and Oracle Coherence->Generic(通用)->下载jar包

安装过程

weblogic:wls1036_generic.jar

操作系统:centos7

jdk:1.8

执行安装命令

java -jar wls1036_generic.jar -mode=console    后面-mode=console为进入控制台安装模式,如果不加并且支持图形界面则会进入界面安装

1.介绍执行过程,键入"Next" 或按"Enter"键继续下一项,键入"Previous"表示返回上一项

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.6.0. 
Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".

Enter [Exit][Next]> Next

2.选择安装目录,默认值"/root/Oracle/Middleware",或者直接输入指定目录来指定

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default 
"/root/Oracle/Middleware"]

Enter new Middleware Home OR [Exit][Previous][Next]> /opt/Oracle/Middleware

3.确认修改安装目录

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [/opt/Oracle/Middleware]

Use above value or select another option:
    1 - Enter new Middleware Home
    2 - Change to default [/root/Oracle/Middleware]

Enter option number to select OR [Exit][Previous][Next]>Next

4.设置接收安全更新的电子邮件地址、oracle口令和设置是否接收安全更新

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[Yes]

Enter index number to select OR [Exit][Previous][Next]> 3

5.修改安全更新设置为不接收

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]

Enter [Yes][No]? No

6.确认绕过配置管理器的启动过程并且不接收配置中存在严重安全问题的通知

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]

    ** Do you wish to bypass initiation of the configuration manager and
    **  remain uninformed of critical security issues in your configuration?

Enter [Yes][No]? Yes

7.再次执行设置接收安全更新的电子邮件地址、oracle口令和设置是否接收安全更新

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]

Enter index number to select OR [Exit][Previous][Next]> Next

8.选择要执行的安装类型,1典型(包含WebLogic Server和Oracle Coherence),2定制

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform. 

 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

   2|Custom
    |  Choose software products and components to install and perform optional 
    |configuration.

Enter index number to select OR [Exit][Previous][Next]> 2

9.选择产品和组件,有x表示会安装

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Products and Components:
-------------------------------

    Release 10.3.6.0
    |_____WebLogic Server [1] x
    |    |_____Core Application Server [1.1] x
    |    |_____Administration Console [1.2] x
    |    |_____Configuration Wizard and Upgrade Framework [1.3] x
    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
    |    |_____WebLogic SCA [1.5] x
    |    |_____WebLogic JDBC Drivers [1.6] x
    |    |_____Third Party JDBC Drivers [1.7] x
    |    |_____WebLogic Server Clients [1.8] x
    |    |_____WebLogic Web Server Plugins [1.9] x
    |    |_____UDDI and Xquery Support [1.10] x
    |    |_____Server Examples [1.11] 
    |    |_____Evaluation Database [1.12] x
    |_____Oracle Coherence [2] x
         |_____Coherence Product Files [2.1] x
         |_____Coherence Examples [2.2] 

    *Estimated size of installation: 690.2 MB

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next

10.选择jdk

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------

JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

   1|Add Local Jdk
   2|/opt/jdk1.8.0[x]

   *Estimated size of installation:  690.2 MB
   
Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> Next

11.显示配置目录,主目录/opt/Oracle/Middleware,WebLogic Server目录/opt/Oracle/Middleware/wlserver_10.3,Oracle Coherence目录/opt/Oracle/Middleware/coherence_3.7

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/opt/Oracle/Middleware]

Product Installation Directories:

   1|WebLogic Server: [/opt/Oracle/Middleware/wlserver_10.3]
   2|Oracle Coherence: [/opt/Oracle/Middleware/coherence_3.7]

Enter index number to select OR [Exit][Previous][Next]> Next

12.显示会安装的软件

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
    |    |_____Core Application Server
    |    |_____Administration Console
    |    |_____Configuration Wizard and Upgrade Framework
    |    |_____Web 2.0 HTTP Pub-Sub Server
    |    |_____WebLogic SCA
    |    |_____WebLogic JDBC Drivers
    |    |_____Third Party JDBC Drivers
    |    |_____WebLogic Server Clients
    |    |_____WebLogic Web Server Plugins
    |    |_____UDDI and Xquery Support
    |    |_____Evaluation Database
    |_____Oracle Coherence
         |_____Coherence Product Files

    *Estimated size of installation: 690.3 MB

Enter [Exit][Previous][Next]> Next

13.安装OCM、域

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Configuring OCM...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Creating Domains...

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installation Complete

Congratulations! Installation is complete.

Press [Enter] to continue or type [Exit]> 回车键

14.清理缓存

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Clean up process in progress ...

安装完成  

来看看Oracle/Middleware的目录结构

coherence_3.7是Oracle Coherence目录
domain-registry.xml
logs是日志目录
modules
ocm.rsp
registry.dat
registry.xml
utils
wlserver_10.3是WebLogic Server目录
  common常用配置目录
    bin
    deployable-libraries
    derby
    eval
    lib
    nodemanager节点管理目录
    quickstart
    templates模板目录
    wlst
  inventory
  L10N
  server运行服务器的组件目录
    adr
    bin可执行文件目录
    db
    ext存放扩展jar包的目录,比如xml的jar包,jdbc驱动jar包等
    include
    lib是weblogic server运行的jar包
    locale
    native
    plugin
  sip
  uninstall卸载WebLogic Server的目录,里面有卸载脚本

安装完成后也不能使用,必须进行域domain(管理单元,包含一个或多个weblogic server,每个域中必须包含一个administration server管理服务)的配置

执行命令(就是调用想用的jar包来创建相应的文件和配置)

cd /opt/Oracle/Middleware/wlserver_10.3/common/bin/
./config.sh -mode=console    采用控制台的方式来创建domain

1.选择1创建新的域,选择2扩展现有域,默认1

<------------------- Fusion Middleware Configuration Wizard ------------------>

Welcome:
--------

Choose between creating and extending a domain. Based on your selection, 
the Configuration Wizard guides you through the steps to generate a new or 
extend an existing domain.

 ->1|Create a new WebLogic domain
    |    Create a WebLogic domain in your projects directory.  

   2|Extend an existing WebLogic domain
    |    Use this option to add new components to an existing domain and modify     |configuration settings. 

Enter index number to select OR [Exit][Next]> Next

2.选择如何创建域,1表示通过Weblogic Platform组件创建域,2表示定制域模板创建域

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the 
domain by selecting from the required components or by selecting from a 
list of existing domain templates.

 ->1|Choose Weblogic Platform components
    |    You can choose the Weblogic component(s) that you want supported in 
    |your domain. 

   2|Choose custom template
    |    Choose this option if you want to use an existing  template. This 
    |could be a custom created template using the Template Builder. 

Enter index number to select OR [Exit][Previous][Next]> 1

3.选择创建应用程序的模板,默认选择1就可以了

<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:
-------------------------------

    Available Templates
    |_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x        基本的weblogic的模板(自带的模板)
    |_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2] 
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3] 高级的weblogic的模板
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4] 其他模板

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next

4.设置域的名字,如果需要新名字可直接输入自定义的名字字符串

<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | base_domain |

Enter value for "Name" OR [Exit][Previous][Next]> Next

5.设置域的目录

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:
---------------------------------------------------

    "Target Location" = [Enter new value or use default 
"/opt/Oracle/Middleware/user_projects/domains"]

Enter new Target Location OR [Exit][Previous][Next]> Next

6.创建域的管理员,默认用户名为weblogic

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the 
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"

Enter option number to select OR [Exit][Previous][Next]> 2

7.输入域的管理员的密码,最少8位

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the 
default administrator used to start development mode servers.

    "*User password:" = []

Enter new *User password: OR [Exit][Reset][Accept]> 12345678

8.再次进入创建域的管理员页面,输入确认密码

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the 
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                 ******                  |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]> 3

9.输入确认密码

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the 
default administrator used to start development mode servers.

    "*Confirm user password:" = []

Enter new *Confirm user password: OR [Exit][Reset][Accept]> 12345678

10.再次确认域的用户名和密码

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the 
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                 ******                  |
   3| *Confirm user password: |                 ******                  |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]> Next

11.选择域的模式配置,1为开发模式,2为生产模式

<------------------- Fusion Middleware Configuration Wizard ------------------>

Domain Mode Configuration:
--------------------------

Enable Development or Production Mode for this domain. 

 ->1|Development Mode

   2|Production Mode

Enter index number to select OR [Exit][Previous][Next]> 2

12.设置域的jdk

<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

 ->1|Sun SDK 1.8.0_221 @ /opt/jdk1.8.0
   2|Other Java SDK

Enter index number to select OR [Exit][Previous][Next]> Next

13.设置域的类型,1为管理server,2为受管server、集群和计算机,3为RDBMS安全存储

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

   1|Administration Server [ ]
   2|Managed Servers, Clusters and Machines [ ]
   3|RDBMS Security Store [ ]

Enter index number to select OR [Exit][Previous][Next]> 1

14.再次确认所选择的域的类型

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

   1|Administration Server [x]
   2|Managed Servers, Clusters and Machines [ ]
   3|RDBMS Security Store [ ]
   
Enter index number to select OR [Exit][Previous][Next]> Next

15.列出域的配置,这里域选择了管理server,因此会显示管理server配置信息

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure the Administration Server:
------------------------------------

Each WebLogic Server domain must have one Administration Server. The 
Administration Server is used to perform administrative tasks.

    |       Name       |        Value        |
   _|__________________|_____________________|
   1|      *Name:      |     AdminServer     |        
   2| *Listen address: | All Local Addresses |        监听地址
   3|   Listen port:   |        7001         |        监听端口
   4| SSL listen port: |         N/A         |        ssl监听端口
   5|   SSL enabled:   |        false        |        ssl是否启用

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"

Enter option number to select OR [Exit][Previous][Next]> Next

域创建完成后,会在Oracle/Middleware下新增一个user_projects目录,里面就是放域的地方

域domain就是定义一系列资源(例如受管server、集群、数据库连接、安全服务、J2EE的应用程序)。域中包含weblogic应用中的所有东西,weblogic应用服务的启停都是通过域为基本单元完成的

域domain是weblogic的基本单元,域分为管理server和受管server,每个weblogic中必须有一个管理server。受管server从管理server中获取各种指令和配置。通过浏览器可以进入管理控制台(和管理server节点进行交互)。

管理server启动之后,会将config.xml配置(比如哪台server部署什么数据,哪台server的安全性能需要如何配置,哪台server负责事务等)封装成一系列的javaBean对象加载到内存中,这些javaBean可供JMX的API进行调用,同时管理server还记录了这个domains(可理解为域集群)的日志,并且管理server也会将自身注册到受管server中

每个受管server在启动时会像管理server获取配置,然后独立运行,运行中的日志会保存到自身当中,如果是一些重要的日志也会发送给受管服务器,被管理server进行监控。

管理server和受管server之间的交流都是通过调用JMX框架API完成的

每一个server就是java虚拟机中的一个实例

域里面的目录结构

autodeploy在开发模式中,将web应用或者EJB直接拷贝到这个目录中,就会被weblogic直接部署
bin可执行脚本,启动同域中的管理server和受管server
config当前域中的配置和部署状况,主要是config.xml文件
console-ext对域控制的扩展
fileRealm.properties
init-info域的初始化信息
lib域的jar包存放位置
security存放和域相关的安全文件目录
startWebLogic.sh启动脚本

启动域(就是启动weblogic)

cd Oracle/Middleware/user_projects/domains/base_domain
./startWebLogic.sh
需要输入当前域的管理员用户名和密码
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:12345678

浏览器进入后台管理

http://192.168.14.135:7001/console
输入域的管理员用户名和密码:weblogic和12345678

后台显示语言会和浏览器的设置语言一致,控制台的显示也是通过JMX的API进行调用javaBean对象来实现

先学到这里

猜你喜欢

转载自www.cnblogs.com/timeTraveler/p/12625358.html