linux系统weblogic11g安装

          

1.创建用户

1)创建管理用户weblogic ,并添加密码 (root)    

2)weblogic自定义配置 (weblogic即可)

~/.bash_profile

    umask 022    (weblogic创建的所有文件的权限是755)

    ulimit -c unlimited     (不限制core文件的大小)

    cd <domain路径 >

2.创建新目录(root)

  /weblogic  权限为755

   /weblogic/weblogic 权限为755

 以上所有目录所属人和所属组均为weblogic。

3.安装jdk   

1)    安装jdk-6u45-linux-x64  (root)

2)配置java环境变量 :(weblogic)

vi  ~/.bash_profile

export PATH

export JAVA_HOME=/usr/java/jdk1.6.0_45

export JRE_HOME=/usr/java/jdk1.6.0_45/jre

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib

export PATH=$JAVA_HOME/bin:$PATH

4.安装weblogic11g

把安装包放到/weblogic/install下

wls1036_generic.jar

执行命令安装。

1)/usr/java/jdk1.6.0_45/bin/java -jar wls1036_generic.jar

Extracting 0%....................................................................................................100%

<----------------------- 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]>

2)解压完成后首先进入欢迎界面,输入Next或者直接按Enter继续

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

Choose Middleware Home Directory:

---------------------------------

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

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

3).输入指定的安装路径,输入Next或者直接按Enter继续

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

Choose Middleware Home Directory:

---------------------------------

    "Middleware Home" = [/weblogic/weblogic]

Use above value or select another option:

    1 - Enter new Middleware Home

    2 - Change to default [/weblogic/weblogic/Middleware]

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

4)确认指定目录,输入Next或者直接按Enter继续:

<----------------------- 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)此步骤用于配置是否通过MyOracleSupport接收安全更新选项,通常不需要,选择3,设置不需要更新.

<----------------------- 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)输入No,表明不接受更新,按Enter继续:

<----------------------- 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)确认不需要更新,输入Yes并按Enter继续:

<----------------------- 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]>

8)看到第3个选项值已经变成了No,证明取消配置已生效,输入Next或者直接按Enter继续:

<----------------------- 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]>

9)这里选择安装类型,有Typical和Custom两种,可以选择第一种,即完全安装,也可以选择定制方式进行选择性安装,选2,回车。

<----------------------- 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: 653.9 MB

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

10)这里可以针对WebLogicServer和Coherence两个大组件以及其下各个子模块进行选择性安装,不需要Coherence,输入2回车,

<----------------------- 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] 

         |_____Coherence Product Files [2.1] 

         |_____Coherence Examples [2.2]

    *Estimated size of installation: 653.9 MB

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

11Oracle Coherence组件没有x表示没有选择,点下一步。

<-------------------- 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|/usr/java/jdk1.6.0_95[x]

   *Estimated size of installation:  678.7 MB

Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]>

12)此处对WebLogic所需jdk进行选择,本处选取sun jdk,x是已经选上了,回车继续:

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

Choose Product Installation Directories:

----------------------------------------

Middleware Home Directory: [/weblogic/weblogic]

Product Installation Directories:

    "WebLogic Server" = [Enter new value or use default

"/weblogic/weblogic/wlserver_10.3"]

Enter new WebLogic Server OR [Exit][Previous][Next]>

13)这里确认所安装组件的物理路径,可以选择相应数字进行修改,此处采取默认,输入Next或者直接按Enter继续:

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

    *Estimated size of installation: 678.8 MB

Enter [Exit][Previous][Next]>

14)展示所需安装组件及所需磁盘空间,输入Next或者直接按Enter继续下一步进入安装:

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

Installing files..

0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]

Performing String Substitutions...

<-------------------- 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]>

15)安装完成按回车

5.创建domain 

1) 创建domain前,在/weblogic/weblogic/wlserver_10.3/common/bin/config.sh  中添加随机数,加快domain创建

JVM_ARGS="-Djava.security.egd=file:///dev/urandom -Dprod.props.file='${WL_HOME}/.product.properties' -Dpython.cachedir=/tmp/cachedir ${JVM_D64    } ${MEM_ARGS} ${CONFIG_JVM_ARGS}"

2)/weblogic/weblogic/wlserver_10.3/common/bin/config.sh

<----------- 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]>

3)进入欢迎界面,默认选择1,新建一个domain,再输入Next或者直接回车进入下一步操作

<----------- 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]>

4)此步骤采取默认选择,输入Next或者直接回车进入下一步操作

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

Application Template Selection:

-------------------------------

    Available Templates

    |_____Basic WebLogic Server Domain - 10.3.4.0 [wlserver_10.3]x

    |_____Basic WebLogic SIP Server Domain - 10.3.4.0 [wlserver_10.3] [2]

    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.4.0 [wlserver_10.3] [3]

    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.4.0 [wlserver_10.3] [4]

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

5)选择模板,通常情况下,采取默认,输入Next或者直接回车进入下一步操作

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

Edit Domain Information:

------------------------

    |  Name  |    Value    |

   _|________|_____________|

   1| *Name: | base_domain |

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

6)设置要配置的domain的名称,按照规范要求输入指定domain名称,若无特殊要求,可采取默认值,输入新名称或者直接回车进入下一步操作

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

Select the target domain directory for this domain:

---------------------------------------------------

    "Target Location" = [Enter new value or use default

"/weblogic/weblogic/user_projects/domains"]

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

7)此处配置domain的创建路径,需按照规范要求定向到指定路径下,如:/weblogic/weblogic/user_projects/domains,输入后回车进入下一步操作

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

8)设置管理员帐户的用户名weblogic和密码,输入2,进行密码设置

<------------------- 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]>********

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.

    |          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

10)输入3进行密码确认

<------------------- 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]> ********

11)确认密码后,回车进行后续操作

<------------------- 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]>

12)此步骤中可输入相应数字进行相应的修改,输入Next或者直接回车

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

13)选择domain的运行模式,生产环境中统一选择Production Mode,输入2后回车

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

Java SDK Selection:

-------------------

  ->1|Sun SDK 1.6.0_29 @ /usr/java/jdk1.6.0_45

   2|Other Java SDK

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

14)选择Sun SDK,也可以选择2,添加系统上已经安装的其他JDK,本手册采取默认,输入Next或者回车进入下一步操作

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

15)选择要配置的可选项,此处选择配置1

<------------------- 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]> 2

16)选择1,配置Administratior,下一步

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

   5|   SSL enabled:     |        false        |

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]>

17)对AdminServer进行配置,可选择相应的选项,进行相应的更改,主要改监听地址,输入2,下一步

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

   5|   SSL enabled:   |        false        |

Enter value for "Listen address" OR [Exit][Previous][Next]> 192.168.1.56

18)输入监听地址回车

<------------------- 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: | 192.168.1.56 |

   3|   Listen port:   |     7001     |

   4| SSL listen port: |     N/A      |

   5|   SSL enabled:   |    false     |

Use above value or select another option:

    1 - Modify "Name"

    2 - Modify "Listen address"

    3 - Modify "Listen port"

    4 - Modify "SSL enabled"

    5 - Discard Changes

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

19)查看修改的信息,没有修改了回车。

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

Creating Domain...

0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]

**** Domain Created Successfully! ****

20)安装完成。

6.打补丁

1)创建文件夹并把补丁包传到/weblogic/weblogic/utils/bsu/cache_dir

mkdir /weblogic/weblogic/utils/bsu/cache_di

2)修改文件bsu.sh内存调至4096   

vi /weblogic/weblogic/utils/bsu/bsu.sh

结果:MEM_ARGS="-Xms4096m –Xmx4096m"

3)升级11g bsu打补丁工具

说明:对于11g版本,升级该工具后能有效缩短打补丁时间。

升级bsu步骤

unzip -d /weblogic/weblogic/utils/bsu  p26664545_1036_Generic.zip

sh bsu_update.sh install安装

如果升级完成后需要回退到原来的bsu版本,可执行 sh bsu_update.sh rollback

4)打补丁(红字是补丁的名字 )

sh bsu.sh  -prod_dir=/weblogic/weblogic/wlserver_10.3 -patchlist=AXXI -verbose -install    

5)查询补丁

 sh bsu.sh -prod_dir=/weblogic/weblogic/wlserver_10.3 -status=applied -verbose -view  

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

东方神龙马

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值