Weblogic安装及配置(linux环境)

来源:互联网 发布:ubuntu 分区命令 编辑:程序博客网 时间:2024/06/01 03:58

主要步骤

修改控制参数——>用户组和用户操作——>安装程序——>创建domain

一、用户组和用户操作

创建一个weblogic用户组帐号
groupadd weblogic

创建一个weblogic用户帐号,且属于weblogic用户组
useradd –g weblogic weblogic

创建weblogic账户密码
passwd weblogic

二、下载Weblogic的jar文件或者bin文件

赋予安装程序可执行权限
chmod a+x filename
三,安装程序
bin的安装方法:
首先赋予.bin可执行权限
chmod a+x filename.bin
然后执行
./filename.bin -mode=console

jar的安装方法:
java -jar filename.jar -mode=console

选择更新(选为否,切记切记)
<———- Oracle Installer - WebLogic 10.3.5.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

<——- Oracle Installer - WebLogic 10.3.5.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
<——- Oracle Installer - WebLogic 10.3.5.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

<——— Oracle Installer - WebLogic 10.3.5.0 ———>

Register for Security Updates:

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

1|Email:[]
2|Support Password:[]

第五步,安装类型选择
<——————– Oracle Installer - WebLogic 10.3.5.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
| - Oracle Enterprise Pack for Eclipse

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

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

第六步,选择产品安装目录
<——————– Oracle Installer - WebLogic 10.3.5.0 ——————->

Choose Product Installation Directories:

Middleware Home Directory: [/soft/weblogic/Middleware]

Product Installation Directories:

1|WebLogic Server: [/soft/weblogic/Middleware/wlserver_10.3]
2|Oracle Coherence: [/soft/weblogic/Middleware/coherence_3.6]
3|Oracle Enterprise Pack for Eclipse:
|[/soft/weblogic/Middleware/oepe_11gR1PS4]

Enter index number to select OR [Exit][Previous][Next]> next
第七步,选择安装的组件
<——————– Oracle Installer - WebLogic 10.3.5.0 ——————->

The following Products and JDKs will be installed:

WebLogic Platform 10.3.5.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|_____Oracle Enterprise Pack for Eclipse|    |_____Common Files|_____JDKs     |_____SUN SDK 1.6.0_24     |_____Oracle JRockit 1.6.0_24 SDK*Estimated size of installation: 1,442.9 MB

Enter [Exit][Previous][Next]> next
Jul 18, 2011 3:20:51 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.

最后,执行安装
<——————– Oracle Installer - WebLogic 10.3.5.0 ——————->

Installing files..

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

<——————– Oracle Installer - WebLogic 10.3.5.0 ——————->

Installing JDK….

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

Performing String Substitutions…

<——————– Oracle Installer - WebLogic 10.3.5.0 ——————->

Configuring OCM…

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

Creating Domains…

<——————– Oracle Installer - WebLogic 10.3.5.0 ——————->

Installation Complete

Congratulations! Installation is complete.

到此,安装结束
四,创建 domain
进入/opt/weblogic/Middleware/wlserver_10.3/common/bin目录
运行 ./config.sh -mode=console
<——————- 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]> 1

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

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

Edit Domain Information:

|  Name  |    Value    |

|_|_____|
1| *Name: | base_domain |

Enter value for “Name” OR [Exit][Previous][Next]> weblogic

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

Edit Domain Information:

|  Name  |  Value   |

|_|__|
1| *Name: | weblogic |

Use above value or select another option:
1 - Modify “Name”
2 - Discard Changes

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

Select the target domain directory for this domain:

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

“/soft/weblogic/Middleware/user_projects/domains”]

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

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

直到出现 Successfully
这里写图片描述

验证配置

1, 在domain域目录下,运行startweblogic.sh ,启动web服务
2, 浏览器打开:http://ip:7001/console
3, 用创建domain时设置的账户密码登录。

开启后台运行

1、找到/Oracle/Middleware/user_projects/domains/用户_domain目录,
2、执行nohup ./startWebLogic.sh >nohup.out 2>&1 &
3、使用命令tail -f 文本文件名即可监视远程文件的变动情况,例如要监视Weblogic某一域的日志输出只需要输入命令:tail -f nohup.out

原创粉丝点击