weblogic安装以及建域(Linux)

weblogic安装以及建域(Linux)

目录

weblogic安装以及建域(Linux)

准备工作

Jdk准备

Weblogic安装

上传安装包并添加执行权限

Weblogic安装

执行安装命令

开始安装

Weblogic建域

启动与停止

直接启动

后台启动

停止服务

查看进程

清理缓存

配置

设置密码

设置内存参数


准备工作

Jdk准备

安装过程略,需注意系统是否自带jdk和jdk版本

本文演示root用户下安装和建域,正式的环境可能是用weblogic用

Weblogic安装

上传安装包并添加执行权限

chmod a+x wls1036_generic.jar 

Weblogic安装

执行安装命令

Java  -jar  filename.jar  -mode=console

注:如果安装文件是.bin格式的文件,安装命令为:./wls1036_generic.bin -mode=console;(加“-mode=console”为控制台文本模式,本文演示命令行安装,若有图形化界面,不加该参数可以进入图形化界面)

 

开始安装

-bash-4.1$ java -jar wls1036_generic.jar
Unable to instantiate GUI, defaulting to console mode.无法实例化 GUI,默认进入控制台模式。
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]> 回车

 

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

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

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

 
Enter new Middleware Home OR [Exit][Previous][Next]> /bea/weblogic/  *weblogic安装目录

 

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

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

    "Middleware Home" = [/bea/weblogic]

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

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

 

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

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

"Middleware Home" = [/bea/weblogic]


Enter new Middleware Home OR [Exit][Previous][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]


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

 

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

 

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

 

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

 

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

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

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

 

<-------------------- 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.7.0_79[x]

 

  *Estimated size of installation:  678.7 MB


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

 

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

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

Middleware Home Directory: [/bea/weblogic]

Product Installation Directories:


    "WebLogic Server" = [Enter new value or use default
"/bea/weblogic/wlserver_10.3"]

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

 

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

 

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

 

Weblogic建域

#cd  /bea/weblogic/wlserver_10.3/common/bin/

#./config.sh


Unable to instantiate GUI, defaulting to console mode.


<------------------- 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.6.0 [wlserver_10.3]x
    |_____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 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]>


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

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

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


Enter value for "Name" OR [Exit][Previous][Next]> fstest *创建的域的名称,可以自己填写


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

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

    |  Name  |  Value  |
  _|________|_________|
  1| *Name: | fstest |

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
"/bea/weblogic/user_projects/domains"]

Enter new Target Location OR [Exit][Previous][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"


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


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


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


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


<------------------- 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 *选择生产模式


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

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

 ->1|N/A SDK 1.6.0_24 @ /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
  2|Other Java SDK


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


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


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


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

Creating Domain...

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


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

启动与停止

直接启动

#cd  /bea/weblogic/user_projects/domains/fstest

#./startWebLogic.sh

后台启动

# nohup ./startWebLogic.sh & tail -f nohup.out

停止服务

查看进程

[root@WQcentos6 fstest]# netstat -anp|grep 7001

tcp        0      0 fe80::a00:27ff:fe59:a9:7001 :::*  LISTEN      10041/java         

tcp        0      0 ::ffff:192.168.56.168:7001  :::*  LISTEN      10041/java         

tcp        0      0 ::ffff:127.0.0.1:7001       :::*  LISTEN      10041/java         

tcp        0      0 ::ffff:192.168.0.173:7001   :::*  LISTEN      10041/java         

tcp        0      0 fe80::a00:27ff:fee4:f9:7001 :::*  LISTEN      10041/java         

tcp        0      0 ::1:7001                :::*     LISTEN   10041/java         

tcp        0      0 ::ffff:127.0.0.1:51715      ::ffff:127.0.0.1:7001       TIME_WAIT   -                   

[root@WQcentos6 fstest]# kill -9 10041

[root@WQcentos6 fstest]#

清理缓存

/bea/weblogic/user_projects/domains/fstest/servers/AdminServer下,以下文件

cache  data  logs  tmp 都可以删,看个人

配置

设置密码

在/bea/weblogic/user_projects/domains/base_domain/servers/AdminServer路径下,新建文件

#mkdir security

#vi boot.properties

username=weblogic

password=weblogic1

 

设置内存参数

文件路径:/bea/weblogic/user_projects/domains/fstest/bin

Vi  setDomainEnv.sh

 

if [ "${JAVA_VENDOR}" = "Sun" ] ; then

         WLS_MEM_ARGS_64BIT="-Xms512m -Xmx768m"

         export WLS_MEM_ARGS_64BIT

         WLS_MEM_ARGS_32BIT="-Xms512m -Xmx1024m"

         export WLS_MEM_ARGS_32BIT

else

         WLS_MEM_ARGS_64BIT="-Xms512m -Xmx768m"

         export WLS_MEM_ARGS_64BIT

         WLS_MEM_ARGS_32BIT="-Xms1024m -Xmx1024m"

         export WLS_MEM_ARGS_32BIT

fi

 

MEM_ARGS_64BIT="${WLS_MEM_ARGS_64BIT}"

export MEM_ARGS_64BIT

 

MEM_ARGS_32BIT="${WLS_MEM_ARGS_32BIT}"

export MEM_ARGS_32BIT

 

if [ "${JAVA_USE_64BIT}" = "true" ] ; then

         MEM_ARGS="${MEM_ARGS_64BIT}"

         export MEM_ARGS

else

         MEM_ARGS="${MEM_ARGS_32BIT}"

         export MEM_ARGS

fi

 

MEM_PERM_SIZE_64BIT="-XX:PermSize=512m"

export MEM_PERM_SIZE_64BIT

 

MEM_PERM_SIZE_32BIT="-XX:PermSize=128m"

export MEM_PERM_SIZE_32BIT

 

if [ "${JAVA_USE_64BIT}" = "true" ] ; then

         MEM_PERM_SIZE="${MEM_PERM_SIZE_64BIT}"

         export MEM_PERM_SIZE

else

         MEM_PERM_SIZE="${MEM_PERM_SIZE_32BIT}"

         export MEM_PERM_SIZE

fi

 

MEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=512m"

export MEM_MAX_PERM_SIZE_64BIT

 

MEM_MAX_PERM_SIZE_32BIT="-XX:MaxPermSize=256m"

export MEM_MAX_PERM_SIZE_32BIT

*实际参数根据服务器情况填写

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值