WLS Zip Distribution for Oracle WebLogic Server 12.1.1.0安装

WLS Zip Distribution for Oracle WebLogic Server 12.1.1.0 安装步骤

1)将wls1211_dev.zip解压到D:\mywls

2)安装jdk(最低要求1.6版本的),安装目录推荐为D:\mywls\JAVA

3)在我的电脑中右键属性,设置环境变量

    > set JAVA_HOME=D:\mywls\JAVA

    > set MW_HOME=D:\mywls

    > set JAVA_VENDOR=[Sun|Oracle]     (这里有两个选择,说明如下,可以直接设置set JAVA_VENDOR=Sun)

On Windows you must set JAVA_VENDOR to the JVM being used:
    If using HotSpot, use "Sun"
    If using JRockit, use "Oracle"

4)执行D:\mywls目录下的configure.cmd文件,如果你想要看文件是否执行成功,可以在执行这个cmd文件之前,在cmd文件的最后一句添加pause语句,这样做的好处就是cmd执行完不会退出,你可以查看是否执行成功
5)执行D:\mywls\wlserver\server\bin\setWLSEnv.cmd文件,如果你想查看是否成功,设置同上

6)执行D:\mywls\wlserver\common\bin\config.cmd文件,按任意键继续,到创建weblogic域的界面下,选择创建性的weblogic域,然后一直下一步,中间设置好路径和用户名密码即可,例如我我新建了一个域D:\mywls\user_projects\domains\base_domain,用户名密码都是weblogic123

7)执行D:\mywls\user_projects\domains\base_domain\startWebLogic.cmd,就可以运行weblogic服务器

8)在浏览器中登陆http://localhost:7001/console/,输入用户名和密码,就可以进行相关操作了

英文的安装文档可以参见

-------------------------------------------------------------------------------
          WLS Zip Distribution for Oracle WebLogic Server 12.1.1.0
-------------------------------------------------------------------------------

The WLS zip distribution is intended for development use. It is supported on
Windows, Linux and Mac OS X systems. It contains the necessary artifacts to
develop and test applications on WebLogic Server. 

An optional supplemental zip (wls1211_dev_supplemental.zip) is
available as a separate download. The supplemental zip contains samples,
evaluation database (Derby) and L10N console help files.

The following instructions should help in quickly setting up WLS. Please refer
to the general WLS documentation for detailed instructions.

This version of WLS requires JDK 1.6 as a minimum.
Ensure that you have the proper JDK version installed and ready for use.

QUICKSTART
----------

1. Extract the contents of the zip to a directory. This directory is referred
   to as MW_HOME (eg: /home/myhome/mywls).

2. Setup JAVA_HOME, JAVA_VENDOR, MW_HOME variables in the current shell as required
   for the target platform.

  Linux
    $ export JAVA_HOME=/home/myhome/myjavahome
    $ export MW_HOME=/home/myhome/mywls

  Mac
    $ export JAVA_HOME=
      /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
    $ export USER_MEM_ARGS="-Xmx1024m -XX:MaxPermSize=256m"      
    $ export MW_HOME=/home/myhome/mywls

  Windows
    > set JAVA_HOME=C:\home\myhome\myjavahome 要把jdk安装在此,不然无法安装
    > set MW_HOME=C:\home\myhome\mywls
    > set JAVA_VENDOR=[Sun|Oracle]

  On Windows you must set JAVA_VENDOR to the JVM being used:
 
    If using HotSpot, use "Sun"
    If using JRockit, use "Oracle"
  
3. Run the installation configuration script in the MW_HOME directory.
  
  This step is required to be run only once. If you move the installation to
  another location/machine, you need to rerun this step.

  Linux/Mac
    $ ./configure.sh

  Windows
    > configure.cmd

  On Windows, this step retains the WLS environment settings for the current shell.
  So, the next step can be omitted.

4. Setup WLS environment in the current shell.

   Linux
    $ . $MW_HOME/wlserver/server/bin/setWLSEnv.sh

   Mac
    $ . $MW_HOME/wlserver/server/bin/setWLSEnv.sh

   Windows
    > %MW_HOME%\wlserver\server\bin\setWLSEnv.cmd

5. Create a new WLS domain and start WLS.
  
   It is recommended that you create domains outside the MW_HOME.

   Linux
    $ mkdir /home/myhome/mydomain
    $ cd /home/myhome/mydomain
    $ $JAVA_HOME/bin/java $JAVA_OPTIONS -Xmx1024m -XX:MaxPermSize=128m weblogic.Server
   
   Mac
    $ mkdir /home/myhome/mydomain
    $ cd /home/myhome/mydomain
    $ $JAVA_HOME/bin/java $JAVA_OPTIONS -Xmx1024m -XX:MaxPermSize=256m weblogic.Server 
   
   Windows
    > mkdir C:\home\myhome\mydomain
    > cd C:\home\myhome\mydomain
    > %JAVA_HOME%\bin\java.exe %JAVA_OPTIONS% -Xmx1024m -XX:MaxPermSize=128m weblogic.Server

   Once the domain is created, you can shutdown WLS and restart it with the
   scripts provided in the newly created domain. 
   
   You can also create the domain by invoking the GUI configuration
   wizard (Run MW_HOME/wlserver/common/bin/config.[sh|cmd]).  建议用个图形界面建域

6. If you already have an existing domain that you want to run with this
   installation, edit the DOMAIN_HOME/bin/setDomainEnv.sh script and change the
   WL_HOME to point to the new installation - ${MW_HOME}/wlserver/

   Note: If the existing domain has samples configured, the server will issue
   failures during startup as samples are not included in the zip distribution.

7. Start a browser and open up url - 'http://localhost:7001/console' to
   administer the server.
 
8. If you need samples, evaluation database (Derby) or console help files for
   for non-english locales, you can download the supplemental zip and extract
   it under MW_HOME. Follow instructions in README_SUPP.txt to properly setup
   samples.

WHAT IS NOT INCLUDED
--------------------
The following components are not available in the zip distribution.

# Coherence libraries
# WebServer plugins
# Native JNI libraries for unsupported platforms
# Samples, evaluation database (Derby), non-english console help
  (can be added by using the WLS supplemental zip)

CLEANUP
-------
Delete the MW_HOME directory. Note that this will delete everything under
MW_HOME. If you have created domains or extracted supplemental zip those
files will be removed as well. Ensure that you don't create domains or
applications under MW_HOME directory for easier migration.

UPGRADE
-------
In-place upgrade of installation is not supported in the zip distribution.
Download the new version of zip distribution and extract it to a new location.
Change the MW_HOME to point to the new location and update the startup scripts
in your domains to point to the new MW_HOME.

KNOWN ISSUES
------------
# [MAC OS X] Memory settings have to be explicitly defined using the
  USER_MEM_ARGS variable prior to running any domain scripts.
# [MAC OS X] The config wizard does not recognize a Mac OS X JDK installation
  and issues a warning. But, it successfully creates a domain and should not
  cause any issue running servers in the domain.
# [MAC OS X] The zip distribution has limited support for functionality
  requiring native support. JMS C clients, auto stack-dumps, auto privileged
  port binding are not supported.
# [ALL OS] Smart update tool is not supported in a zip distribution.
# [ALL OS] The zip distribution should not be extracted to an existing MW_HOME
  or BEA_HOME which had been created by a regular installers. Doing so will
  conflict with already installed products and is unsupported.
# [ALL OS] JAVA_HOME cannot contain directory names with space characters.

PATCHING
--------
# As the smart update tool is not supported, patching has to be done manually. 
  Contact support for a patch jar and apply it manually to the classpath

原文地址:https://www.cnblogs.com/king1302217/p/2579649.html