Linux 安装Weblogic12 - copy

时间:2023-03-09 00:15:08
Linux 安装Weblogic12 - copy
# groupadd weblogic
# useradd -g weblogic weblogic
# passwd weblogic
# mkdir -p /var/bea
# chown -R weblogic:weblogic /var/bea
# su - weblogic
$ vi ~/.bash_profile
增加 export LANG=en_US.iso885915
$ su -
# chmod a+x /root/wls1211_linux32.bin
# ./wls1211_linux32.bin -mode=console
Welcome:
--------
This installer will guide you through the installation of WebLogic 12.1.1.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]>        

Application Template Selection:
-------------------------------
    Available Templates
    |_____Basic WebLogic Server Domain - 12.1.1.0 [wlserver_12.1]x
    |_____Basic WebLogic SIP Server Domain - 12.1.1.0 [wlserver_12.1] [2]
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 12.1.1.0 [wlserver_12.1] [3]
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 12.1.1.0 [wlserver_12.1] [4]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>        next

Edit Domain Information:
------------------------
    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | base_domain |
Enter value for "Name" OR [Exit][Previous][Next]>        weblogic

Edit Domain Information:
------------------------
    |  Name  | Value     |
   _|________|_______    |
   1| *Name: | weblogic  |
Use above value or select another option:
    1 - Modify "Name"
    2 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]>        next

Select the target domain directory for this domain:
---------------------------------------------------
    "Target Location" = [Enter new value or use default
"/var/bea/user_projects/domains"]
Enter new Target Location OR [Exit][Previous][Next]>         Next

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

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]>   输入密码(至少八位)

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

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]>     重复密码(至少八位)

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

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

Java SDK Selection:
-------------------
   1|JRockit SDK 1.6.0_29 @ /var/bea/jrockit_160_29_D1.2.0-10
 ->2|Sun SDK 1.6.0_29 @ /var/bea/jdk160_29
   3|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]>     next

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

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

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

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 port" OR [Exit][Previous][Next]>     8080

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:   |        8080         |
   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]>     4

Each WebLogic Server domain must have one Administration Server. The Administration
Server is used to perform administrative tasks.
    *Enter index number to modify "Value"
   1|true
 ->2|false
   3|Unspecified
Enter index number to select OR [Exit][Reset][Accept]>     1

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:   |        8080         |
   4| SSL listen port: |        7002         |
   5|   SSL enabled:   |        true         |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL listen port"
    5 - Modify "SSL enabled"
    6 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]>     4

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:   |        8080         |
   4| SSL listen port: |        7002         |
   5|   SSL enabled:   |        true         |
Enter value for "SSL listen port" OR [Exit][Previous][Next]>     8081

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:   |        8080         |
   4| SSL listen port: |        8081         |
   5|   SSL enabled:   |        true         |
Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL listen port"
    5 - Modify "SSL enabled"
    6 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]>     next

Creating Domain...
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****

启动weblogic
# /var/bea/user_projects/domains/weblogic/startWebLogic.sh

http://192.168.1.50:8080/console/
用户名为weblogic

密码:八位密码

Weblogic 开机启动
# vi /etc/rc.local
追加 sh /var/bea/user_projects/domains/weblogic/bin/startWebLogic.sh &