天天看點

Oracle Weblogic 之---字元安裝全記錄

Oracle Weblogic 之---字元安裝全記錄

系統平台:

作業系統:    RedHat EL55

軟    件:    Oracle Weblogic 10.3.6

Oracle 軟體: Oracle 11gR2

一、下載下傳Weblogic 軟體(Oracle官方網站)

<a href="http://s3.51cto.com/wyfs02/M00/23/17/wKiom1MxPvqyu4x-AAPNLy230bA938.jpg" target="_blank"></a>

二、上傳安裝包到Linux server

1)建立bea group 和 weblogic 使用者

[root@bjsrv soft]# groupadd -g 550 bea

[root@bjsrv soft]# useradd -g bea -u 550 weblogic

[root@bjsrv soft]# passwd weblogic

Changing password for user weblogic.

New UNIX password:

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

2)安裝檔案配置可執行權限

[root@bjsrv soft]# chmod +x wls1036_linux32.bin

[root@bjsrv soft]# ls -l

-rwxr-xr-x 1 oracle oinstall  871091023 Mar 25 15:36 wls1036_linux32.bin

3)建立安裝weblogic目錄

[root@bjsrv ~]# mkdir -p /u01/weblogic

[root@bjsrv ~]# chown -R weblogic:bea /u01/weblogic/

[root@bjsrv ~]#

三、安裝weblogic

[root@bjsrv soft]# ./wls1036_linux32.bin

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

Unable to instantiate GUI, defaulting to console mode.

&lt;----------------------------------- Oracle Installer - WebLogic 10.3.6.0 ----------------------------------&gt;

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]&gt;next    

Enter new Middleware Home OR [Exit][Previous][Next]&gt; /u01/weblogic

Choose Middleware Home Directory:

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

   "Middleware Home" = [/u01/weblogic]

Use above value or select another option:

   1 - Enter new Middleware Home

   2 - Change to default [/root/Oracle/Middleware]

Enter option number to select OR [Exit][Previous][Next]&gt; next

Register for Security Updates:

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

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

  1|Proxy Server:[]

  2|Proxy Port:[500]

  3|Proxy Username:[]

  4|Proxy Password:[]

  5|Remain uninformed:[yes]

Enter index number to select OR [Exit][Previous][Next]&gt;

Enter index number to select OR [Exit][Previous][Next]&gt; next

Choose Install Type:

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

Select the type of installation you wish to perform.

-&gt;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.

Choose Product Installation Directories:

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

Middleware Home Directory: [/u01/weblogic]

Product Installation Directories:

  1|WebLogic Server: [/u01/weblogic/wlserver_10.3]

  2|Oracle Coherence: [/u01/weblogic/coherence_3.7]

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

   |_____Oracle Coherence

   |    |_____Coherence Product Files

   |_____JDKs

        |_____SUN SDK 1.6.0_29

        |_____Oracle JRockit 1.6.0_29 SDK

   *Estimated size of installation: 1,276.0 MB

Enter [Exit][Previous][Next]&gt;

Mar 25, 2014 3:49:59 PM java.util.prefs.FileSystemPreferences$2 run

INFO: Created user preferences directory.

Installing files..

0%          25%          50%          75%          100%

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

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

Installing JDK....

Performing String Substitutions...

Configuring OCM...

Creating Domains...

Installation Complete

Congratulations! Installation is complete.

Press [Enter] to continue or type [Exit]&gt;

四、配置Weblogic domain

[root@bjsrv weblogic]# find ./ -name "config.sh"

./wlserver_10.3/common/bin/config.sh

[root@bjsrv weblogic]# ls

coherence_3.7        jdk160_29                 logs     ocm.rsp       registry.xml  wlserver_10.3

domain-registry.xml  jrockit_160_29_D1.2.0-10  modules  registry.dat  utils

[root@bjsrv weblogic]# cd wlserver_10.3/

[root@bjsrv wlserver_10.3]# ls

common  inventory  L10N  server  sip  uninstall

[root@bjsrv wlserver_10.3]# cd common/

[root@bjsrv common]# ls

bin  deployable-libraries  derby  eval  lib  nodemanager  quickstart  templates  wlst

[root@bjsrv common]# cd bin

[root@bjsrv bin]# ls

commEnv.sh         config.sh  setPatchEnv.sh  startManagedWebLogic.sh  unpack.sh   wlscontrol.sh   wlst.sh

config_builder.sh  pack.sh    startDerby.sh   stopDerby.sh             upgrade.sh  wlsifconfig.sh

[root@bjsrv bin]# ./config.sh

&lt;---------------------------------- Fusion Middleware Configuration Wizard ---------------------------------&gt;

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.

-&gt;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] next

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.

-&gt;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.

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]&gt; next

Edit Domain Information:

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

   |  Name  |    Value    |

  _|________|_____________|

  1| *Name: | base_domain |

Enter value for "Name" OR [Exit][Previous][Next]&gt; bea

   |  Name  | Value |

  _|________|_______|

  1| *Name: |  bea  |

   1 - Modify "Name"

   2 - Discard Changes

Select the target domain directory for this domain:

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

   "Target Location" = [Enter new value or use default "/u01/weblogic/user_projects/domains"]

Enter new Target Location OR [Exit][Previous][Next]&gt; 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. |

   2 - Modify "User password"

   3 - Modify "Confirm user password"

   4 - Modify "Description"

Enter option number to select OR [Exit][Previous][Next]&gt; 2

   "*User password:" = []

Enter new *User password: OR [Exit][Reset][Accept]&gt;

  2|     *User password:     |                 ******                  |

   5 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]&gt; 3

   "*Confirm user password:" = []

Enter new *Confirm user password: OR [Exit][Reset][Accept]&gt;

  3| *Confirm user password: |                 ******                  |

Enter option number to select OR [Exit][Previous][Next]&gt;

注意: password 最少8位

Domain Mode Configuration:

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

Enable Development or Production Mode for this domain.

-&gt;1|Development Mode

  2|Production Mode

Enter index number to select OR [Exit][Previous][Next]&gt; 2

Java SDK Selection:

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

-&gt;1|JRockit SDK 1.6.0_29 @ /u01/weblogic/jrockit_160_29_D1.2.0-10

  2|Sun SDK 1.6.0_29 @ /u01/weblogic/jdk160_29

  3|Other Java SDK

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]&gt; 1

  1|Administration Server [x]

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        |

   2 - Modify "Listen address"

   3 - Modify "Listen port"

   4 - Modify "SSL enabled"

Creating Domain...

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

[root@bjsrv bin]#

五、啟動weblogic(通過domain 啟動)

[root@bjsrv weblogic]# find ./ -name "bea"

./wlserver_10.3/server/lib/consoleapp/consolehelp/WEB-INF/classes/com/bea

./wlserver_10.3/server/lib/consoleapp/webapp/WEB-INF/src/com/bea

./user_projects/domains/bea

./utils/ccr/sysman/admin/scripts/bea

[root@bjsrv weblogic]# cd user_projects/domains/

[root@bjsrv domains]# ls

bea

[root@bjsrv domains]# cd bea

[root@bjsrv bea]# ls

autodeploy  bin  config  console-ext  fileRealm.properties  init-info  lib  security  startWebLogic.sh

[root@bjsrv bea]# ./startWebLogic.sh

.

JAVA Memory arguments: -Xms512m -Xmx512m

WLS Start Mode=Production

CLASSPATH=/u01/weblogic/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/weblogic/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/weblogic/jrockit_160_29_D1.2.0-10/lib/tools.jar:/u01/weblogic/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/weblogic/wlserver_10.3/server/lib/weblogic.jar:/u01/weblogic/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/weblogic/wlserver_10.3/server/lib/webservices.jar:/u01/weblogic/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/weblogic/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/weblogic/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/weblogic/wlserver_10.3/server/lib/xqrl.jar

PATH=/u01/weblogic/wlserver_10.3/server/bin:/u01/weblogic/modules/org.apache.ant_1.7.1/bin:/u01/weblogic/jrockit_160_29_D1.2.0-10/jre/bin:/u01/weblogic/jrockit_160_29_D1.2.0-10/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

***************************************************

*  To start WebLogic Server, use a username and   *

*  password assigned to an admin-level user.  For *

*  server administration, use the WebLogic Server *

*  console at http://hostname:port/console        *

starting weblogic with Java version:

java version "1.6.0_29"

Java(TM) SE Runtime Environment (build 1.6.0_29-b11)

Oracle JRockit(R) (build R28.2.0-79-146777-1.6.0_29-20111005-1807-linux-ia32, compiled mode)

Starting WLS with line:

/u01/weblogic/jrockit_160_29_D1.2.0-10/bin/java -jrockit   -Xms512m -Xmx512m -Dweblogic.Name=AdminServer -Djava.security.policy=/u01/weblogic/wlserver_10.3/server/lib/weblogic.policy  -Dweblogic.ProductionModeEnabled=true   -da -Dplatform.home=/u01/weblogic/wlserver_10.3 -Dwls.home=/u01/weblogic/wlserver_10.3/server -Dweblogic.home=/u01/weblogic/wlserver_10.3/server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u01/weblogic/patch_wls1036/profiles/default/sysext_manifest_classpath:/u01/weblogic/patch_ocp371/profiles/default/sysext_manifest_classpath  weblogic.Server

&lt;Mar 25, 2014 4:13:06 PM CST&gt; &lt;Info&gt; &lt;Security&gt; &lt;BEA-090905&gt; &lt;Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true&gt;

&lt;Mar 25, 2014 4:13:07 PM CST&gt; &lt;Info&gt; &lt;Security&gt; &lt;BEA-090906&gt; &lt;Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true&gt;

&lt;Mar 25, 2014 4:13:07 PM CST&gt; &lt;Info&gt; &lt;WebLogicServer&gt; &lt;BEA-000377&gt; &lt;Starting WebLogic Server with Oracle JRockit(R) Version R28.2.0-79-146777-1.6.0_29-20111005-1807-linux-ia32 from Oracle Corporation&gt;

&lt;Mar 25, 2014 4:13:08 PM CST&gt; &lt;Info&gt; &lt;Management&gt; &lt;BEA-141107&gt; &lt;Version: WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 &gt;

&lt;Mar 25, 2014 4:13:12 PM CST&gt; &lt;Info&gt; &lt;Security&gt; &lt;BEA-090065&gt; &lt;Getting boot identity from user.&gt;

Enter username to boot WebLogic server:weblogic

Enter password to boot WebLogic server: (密碼為配置domain時設定密碼)

&lt;Mar 25, 2014 4:15:48 PM CST&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000365&gt; &lt;Server state changed to STARTING&gt;

&lt;Mar 25, 2014 4:15:48 PM CST&gt; &lt;Info&gt; &lt;WorkManager&gt; &lt;BEA-002900&gt; &lt;Initializing self-tuning thread pool&gt;

&lt;Mar 25, 2014 4:15:49 PM CST&gt; &lt;Notice&gt; &lt;Log Management&gt; &lt;BEA-170019&gt; &lt;The server log file /u01/weblogic/user_projects/domains/bea/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.&gt;

&lt;Mar 25, 2014 4:15:51 PM CST&gt; &lt;Notice&gt; &lt;Security&gt; &lt;BEA-090082&gt; &lt;Security initializing using security realm myrealm.&gt;

&lt;Mar 25, 2014 4:16:00 PM CST&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000365&gt; &lt;Server state changed to STANDBY&gt;

&lt;Mar 25, 2014 4:16:00 PM CST&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000365&gt; &lt;Server state changed to STARTING&gt;

&lt;Mar 25, 2014 4:16:18 PM CST&gt; &lt;Notice&gt; &lt;Log Management&gt; &lt;BEA-170027&gt; &lt;The Server has established connection with the Domain level Diagnostic Service successfully.&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000365&gt; &lt;Server state changed to ADMIN&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000365&gt; &lt;Server state changed to RESUMING&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;Server&gt; &lt;BEA-002613&gt; &lt;Channel "Default[2]" is now listening on fe80:0:0:0:201:2ff:fe03:405:7001 for protocols iiop, t3, ldap, snmp, http.&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;Server&gt; &lt;BEA-002613&gt; &lt;Channel "Default[1]" is now listening on 192.168.122.1:7001 for protocols iiop, t3, ldap, snmp, http.&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;Server&gt; &lt;BEA-002613&gt; &lt;Channel "Default[4]" is now listening on fe80:0:0:0:fcff:ffff:feff:ffff:7001 for protocols iiop, iiop, t3, t3, ldap, ldap, snmp, snmp, http, http.&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;Server&gt; &lt;BEA-002613&gt; &lt;Channel "Default" is now listening on 192.168.8.245:7001 for protocols iiop, t3, ldap, snmp, http.&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;Server&gt; &lt;BEA-002613&gt; &lt;Channel "Default[6]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;Server&gt; &lt;BEA-002613&gt; &lt;Channel "Default[7]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;Server&gt; &lt;BEA-002613&gt; &lt;Channel "Default[3]" is now listening on fe80:0:0:0:200:ff:fe00:0:7001 for protocols iiop, t3, ldap, snmp, http.&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000329&gt; &lt;Started WebLogic Admin Server "AdminServer" for domain "bea" running in Production Mode&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000365&gt; &lt;Server state changed to RUNNING&gt;

&lt;Mar 25, 2014 4:16:19 PM CST&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000360&gt; &lt;Server started in RUNNING mode&gt;

&lt;Mar 25, 2014 4:18:19 PM CST&gt; &lt;Warning&gt; &lt;Socket&gt; &lt;BEA-000449&gt; &lt;Closing socket as no data read from it on 192.168.8.200:63,802 during the configured idle timeout of 5 secs&gt;

六、檢視weblogic啟動(port:7001)

[root@bjsrv ~]# netstat -an |grep 7001

tcp        0      0 fe80::201:2ff:fe03:405:7001 :::*                        LISTEN      

tcp        0      0 ::ffff:192.168.8.245:7001   :::*                        LISTEN      

tcp        0      0 fe80::fcff:ffff:feff:f:7001 :::*                        LISTEN      

tcp        0      0 ::ffff:127.0.0.1:7001       :::*                        LISTEN      

tcp        0      0 ::ffff:192.168.122.1:7001   :::*                        LISTEN      

tcp        0      0 ::1:7001                    :::*                        LISTEN      

tcp        0      0 fe80::200:ff:fe00:0:7001    :::*                        LISTEN      

[root@bjsrv ~]# netstat -an |grep :7001

七、通過web 頁面通路

<a href="http://s3.51cto.com/wyfs02/M01/23/17/wKiom1MxQoSjFRZIAASRrvqIl6U340.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M00/23/18/wKioL1MxQl2j_MgIAATwKvzDvM8447.jpg" target="_blank"></a>

至此,weblogic全部安裝完成!

本文轉自 客居天涯 51CTO部落格,原文連結:http://blog.51cto.com/tiany/1383910,如需轉載請自行聯系原作者

繼續閱讀