网站建设资讯

NEWS

网站建设资讯

weblogic命令行模式安装及域创建

 一、使用软件
wls1036_generic      jdk-7u40-ea-bin-b34-linux-x64-17_jul_2013.tar

二、准备工作

成都创新互联公司是一家集网站建设,汝城企业网站建设,汝城品牌网站建设,网站定制,汝城网站建设报价,网络营销,网络优化,汝城网站推广为一体的创新建站企业,帮助传统企业提升企业形象加强企业竞争力。可充分满足这一群体相比中小企业更为丰富、高端、多元的互联网需求。同时我们时刻保持专业、时尚、前沿,时刻以成就客户成长自我,坚持不断学习、思考、沉淀、净化自己,让我们为更多的企业打造出实用型网站。

2.1 创建Linux用户组及用户

首先我们需要创建一个weblogic用户组帐号,命令如下:

groupadd –g 601 weblogic

然后再创建一个weblogic用户账号,归属于WebLogic组下,其命令如下:

useradd -g weblogic weblogic

创建完用户后修改密码:passwdweblogic          

出现以下字样:

>Changing password for user weblogic.

>New UNIX password:weblogic

>BAD PASSWORD: it is based on a dictionaryword

>Retype new UNIX password:weblogic

>passwd: all authentication tokens updatedsuccessfully.

 

2.2 创建安装目录并设置权限

1安装介质存放位置

创建目录:mkdir /installs/installs_package

修改目录权限: chmod 777/installs/installs_package

将JDK1.6版的安装介质jrrt-4.0.0-1.6.0-linux-x64.bin和WebLogic10.3.3 for Linux 64bit版的安装介质wls1033_generic.jar拷贝到/installs/installs_package目录下。

2安装目录(安装目录可根据实际情况设置)

创建目录:mkdir /userapp/weblogicapp

修改目录权限: chmod 777 /userapp/weblogicapp

 

2.3 安装jdk(此步略)

三、安装weblogic(红色为翻译部分)

java -jar  wls1036_generic.jar   -mode=console 
接下来进入控制台安装的欢迎界面
Unable to instantiate GUI, defaulting to console mode.
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".
欢迎使用: -------------   
此安装程序将引导您完成 WebLogic 10.3.6.0 的安装。
键入 "Next" 或按 Enter 键继续下一个提示。如果您希望更改以前输入的数据,请键入 "Previous"。
您可以随时通过键入 "Exit" 退出安装程序。

Enter [Exit][Next]> next    下一步


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

Choose BEA Home Directory: 选择中间件主目录:
--------------------------

    "BEA Home" = [Enter new value or use default "/home/zhuying/bea"]  "中间件主目录" = [输入新值或使用默认值 "/home/zhuying/bea"]

Enter new BEA Home OR [Exit][Previous][Next]> /userapp/Oracle/Middleware     选择安装目录,如需更改目录直接在此处写出目录路径


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

Choose BEA Home Directory:
--------------------------

    "BEA Home" = [/userapp/Oracle/Middleware]

Use above value or select another option: 使用以上值或选择另一选项:  
    1 - Enter new BEA Home   1 - 输入新值中间件主目录 
    2 - Change to default [/home/zhuying/bea]   2 - 更改为默认值 [/home/zhuying/bea]


Enter option number to select OR [Exit][Previous][Next]> 1     选1使用新的目录

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

Choose BEA Home Directory:
--------------------------

    "BEA Home" = [/userapp/Oracle/Middleware]

Enter new BEA Home OR [Exit][Previous][Next]> next    下一步

<-------------------- 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] 接收安全更新:[Yes]


Enter index number to select OR [Exit][Previous][Next]> 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"]

     "接收安全更新:" = [输入新值或使用值 "Yes"]

Enter [Yes][No]? no

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

     "接收安全更新:" = [输入新值或使用值 "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.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



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

Choose Install Type:选择安装类型。
--------------------

Select the type of installation you wish to perform. 选择您要执行的安装类型。 

 ->1|Complete完整安装
    |  Install the following software products and examples:安装以下产品和组件: 
    | - WebLogic Server
    | - Workshop

   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.6.0 ------------------->  
JDK Selection (Any * indicates Oracle Supplied VM):
JDK 选择 (所有 * 都指示 Oracle 提供的 VM):   
JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.
将安装与此产品安装一起使用的所选 JDK。如果未取消选中, 则在脚本字符串替换操作中将使用支持的默认值。     
1| Add Local Jdk  添加本地 JDK     

2|/usr/local/jdk[x]      

*安装预计所需的大小: 727.6 MB    

输入 1 以添加, 或者输入>= 2 可切换选定内容或 [Exit][Previous][Next]> Next
 

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

Choose Product Installation Directories:选择产品安装目录: 
----------------------------------------

Middleware Home Directory: [/userapp/Oracle/Middleware]中间件主目录: 

Product Installation Directories:产品安装目录:

   1|WebLogic Server: [/userapp/Oracle/Middleware/wlserver_10.3]

   2|Oracle Coherence: [/userapp/Oracle/Middleware/coherence_3.7]



Enter index number to select OR [Exit][Previous][Next]>按回车或者输入Next


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

The following Products and JDKs will be installed:将安装下列产品和 JDK:
--------------------------------------------------

    WebLogic Platform 10.3.0.0
    |_____WebLogic Server
    |    |_____Core Application Server
    |    |_____Administration Console
    |    |_____Configuration Wizard and Upgrade Framework
    |    |_____Web 2.0 HTTP Pub-Sub Server
    |    |_____WebLogic JDBC Drivers
    |    |_____Third Party JDBC Drivers
    |    |_____WebLogic Server Clients
    |    |_____WebLogic Web Server Plugins
    |    |_____UDDI and Xquery Support
    |    |_____Server Examples
    |_____Workshop
    |    |_____Workshop for WebLogic
    |    |_____Workshop Runtime Framework
    |_____JDKs
         |_____Sun SDK 1.6.0_05
         |_____BEA JRockit 1.6.0_05 SDK

    *Estimated size of installation: 1,129.9 MB 安装预计所需的大小1,129.9 MB


Enter [Exit][Previous][Next]>按回车

<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->

Installing files..


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


<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->

Installing JDK....

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


Performing String Substitutions... 


Creating Domains...



<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->

Installation Complete


Congratulations! Installation is complete.


Press [Enter] to continue or type [Exit]> 按回车会直接退出
[zhuying@Test232 opt]$ 

2.3 创建服务

cd /userapp/Oracle/Middleware/wlserver_10.3/common/bin/

./config.sh

Unable to instantiate GUI, defaulting to console mode.


<---------------------------------------------- Oracle WebLogic 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
    |    Extend an existing WebLogic domain.  Use this option to add applications and services, or to override existing database 
    |access (JDBC) and messaging (JMS) settings. You can also incorporate additional functionality in your domain, for example, by 
    |including AquaLogic Service Bus. 

Enter index number to select OR [Exit][Next]> 1  创建一个新的weblogic域

<---------------------------------------------- Oracle WebLogic 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  选择Weblogic平台组件

You can choose the Weblogic component(s) that you want supported in your domain. 你可以选择| WebLogic组件(S),你想在你的域的支持

   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   选择1


<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->
Application Template Selection:
-------------------------------


    Available Templates
    |_____WebLogic Server (Required)x
    |_____Workshop for WebLogic 10.3 [2] 


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

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

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

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

Enter value for "Name" OR [Exit][Previous][Next]> yilucaifu  创建新域名,如不写,使用默认的base_domain


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

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

    |  Name  |   Value   |
   _|________|___________|
   1| *Name: | yilucaifu |

Use above value or select another option:
    1 - Modify "Name"   修改
    2 - Discard Changes  放弃修改

Enter option number to select OR [Exit][Previous][Next]> 直接回车



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

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

    "Target Location" = [Enter new value or use default  使用新目录
"/userapp/Oracle/Middleware/user_projects/domains"]   确认安装目录


Enter new Target Location OR [Exit][Previous][Next]> 回车或使用其它目录




<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->

Configure Administrator Username 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|       *User 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 "User name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"

Enter option number to select OR [Exit][Previous][Next]> 1  设置用户名

<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->
Configure Administrator Username 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|       *User name:       |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |


Enter value for "User name" OR [Exit][Previous][Next]> weblogic 输入用户名

<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->
Configure Administrator Username 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|       *User name:       |                 zhuying                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "User 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]> 2  创建密码,大于等于8位,并且加数字组合


<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->

Configure Administrator Username 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]> 【按要求输入你账号的密码】

<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->

Configure Administrator Username 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|       *User name:       |                 zhuying                 |
   2|     *User password:     |               ***********               |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "User 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  重复输入密码


<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->

Configure Administrator Username 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]> 【再次输入你账号的密码】


<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->

Configure Administrator Username 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|       *User name:       |                 zhuying                 |
   2|     *User password:     |               ***********               |
   3| *Confirm user password: |               ***********               |
   4|      Description:       | This user is the default administrator. |


Use above value or select another option:
    1 - Modify "User 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]> 按回车

<---------------------------------------------- Oracle WebLogic 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]>选 1,回车

<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->

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

 ->1|Sun SDK 1.7.0_40-ea @ /usr/local/jdk
   2|Other Java SDK

Enter index number to select OR [Exit][Previous][Next]> 选择要使用的JDK

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

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

   1|Administration Server [ ]   管理服务器
   2|Managed Servers, Clusters and Machines [ ]  受管服务器,集群和计算机
   3|RDBMS Security Store [ ]  RDBMS安全存储

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


<------------------- 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]> 可修改用户名,监听IP,端口号等,如果不修改,直接回车

<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Creating Domain...

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

**** Domain Created Successfully! ****   完成安装

启动weblogic  (域路径)/userapp/Oracle/Middleware/user_projects/domains/ylcf(域名称)
               ./startWebLogic.sh 

管理地址:http://localhost:7001/console 



文章名称:weblogic命令行模式安装及域创建
标题链接:http://cdweb.net/article/jicidg.html