Sie sind auf Seite 1von 18

Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

Topic List Expand All Topics Hide All Images Print

Overview

Installing the JDK

To install the JDK, perform the following steps:

Extract the JDK to a directory of your choice.

Open a Terminal window and navigate to the directory where you want to install the JDK. For example, to navigate to
the /scratch/u01/app directory, enter the following command:

$> cd /scratch/u01/app

Copy (or move) the JDK file from the directory where you downloaded it to the current directory. In this tutorial, the JDK is in
the /scratch/install/jdk directory. To copy the JDK file from there into the current directory, enter the following command:

$> cp /scratch/install/jdk/jdk-7u60-linux-x64.gz -t .

Note: The name and location of your JDK file may be different.

Unpack the file by using the tar command:

$> tar -zxvf jdk-7u60-linux-x64.gz

The tar options are:

z: unzip

x: extract

v: verbose

f: filename

(Optional) Rename the JDK directory. To make the directory name more generic, use the mv command to rename it jdk.

$> mv jdk1.7.0_60 jdk

Note: The name of your JDK directory may be different.

Use the rm command to erase the copied JDK file.

$> rm jdk-7u60-linux-x64.gz

Note: The name of your JDK file may be different.


Installing WebLogic Server

To install WebLogic Server, perform the following steps:

Run the generic installation program (the JAR file).

Open a Terminal window and navigate to the bin directory under the JDK directory.

$> cd /scratch/u01/app/jdk/bin

Run the Java virtual machine with the -jar option, calling the generic installer JAR file that you already downloaded. In this tutorial,
the JAR file is in the /scratch/install/wls12.1.3 directory. The file name is fmw_12.1.3.0.0_wls.jar.

$> ./java -jar /scratch/install/wls12.1.3/fmw_12.1.3.0.0_wls.jar

Note: The name and location of your generic installer JAR file may be different.

After the installer extracts files, it analyzes your system to see if it meets the minimum requirements (CPU speed, for example). If
everything checks out, the graphical Oracle Universal Installer starts.

On the Welcome screen of the installer, click Next.

On the Installation Location screen, enter the location for Oracle Home (or click Browse to browse to the location), and then click Next.
In this demonstration, Oracle Home is /scratch/u01/app/fmw.

On the Installation Type screen, select either WebLogic Server (it includes Coherence) or Complete with Examples, and then
click Next.

In this demonstration, the selection is WebLogic Server.

On the Prerequisite Checks screen, wait for all checks to complete successfully, and then click Next.
On the Security Updates screen, perform the following steps:

Enter your email address.

Select I wish to receive security updates via My Oracle Support.

Enter your My Oracle Support password.

Click Next.

Note: If the machine on which you are installing WebLogic Server is part of a training environment, deselect I wish to receive security
updates via My Oracle Support, and click Next. In the dialog box that opens, click Yes.

On the Installation Summary screen, review the installation information. If everything is acceptable, click Install.
On the Installation Progress screen, wait for the progress bar to reach 100%, and then click Next.

On the Installation Complete screen, deselect Automatically Launch the Configuration Wizard, and then click Finish.
Close the Terminal window that you used to launch the installer.

Creating a Domain

To create a domain by using the Configuration Wizard, perform the following steps:

In a Terminal window, perform the following steps:

Navigate to <ORACLE_HOME>/wlserver/common/bin. In this tutorial, <ORACLE_HOME> is /scratch/u01/app/fmw.

To run the Configuration Wizard, enter the following command:

$> ./config.sh

On the Configuration Type page, perform the following steps:

Select Create a new domain.

Enter a location for the domain. In this tutorial, the location is /scratch/domains/mydomain.

Click Next.

Note: You can choose a different name and location for your domain.
On the Templates page, perform the following steps:

Select Create Domain Using Product Templates.

Leave All Templates selected for Template Categories.

Under Available Templates, Basic WebLogic Server Domain is selected and cannot be deselected. It is the only required template.

Click Next.
On the Administrator Account page, enter a name and a password, confirm the password, and then click Next.

In this tutorial, the username is weblogic and the password is Welcome1.

Important: Do not forget this username and password. You need them to perform any administrative task.

On the Domain Mode and JDK page, perform the following steps:

Under Domain Mode, select Production.


Under JDK, select Oracle HotSpot. The version of your HotSpot JDK may be different.

Click Next.

On the Advanced Configuration page, select which domain resources that you want to configure, and then click Next.

In this tutorial, Administration Server, Node Manager, and Managed Servers, Clusters and Coherence are selected.

As you select more options, more screens are listed on the left side of the wizard.

On the Administration Server page, perform the following steps:

Leave the default value for Server Name.


Enter the host name or IP address of the machine for Listen Address.

Leave the Listen Port at 7001.

Leave Enable SSL deselected.

Click Next.

On the Node Manager page, perform the following steps:

Node Manager Type: Leave the default value of Per Domain Default Location.

Node Manager Credentials: Enter weblogic for the username and Welcome1 for the password. You will use these credentials to
communicate with Node Manager.

Note: The credentials for Node Manager do not have to match the administrator account credentials.

Click Next.
On the Managed Servers page, click Add to display a row in the table.

In the new row, enter the following information:

Enter server1 for the Server Name.


Enter the host name or IP address of the machine for the Listen Address.

Ensure that the Listen Port is 7003.

Leave Enable SSL deselected.

Click Add to display another row. In the new row, enter the following information:

Enter server2 for the Server Name.

Enter the host name or IP address of the machine for the Listen Address.

Enter 7005 for the Listen Port.

Leave Enable SSL deselected.

Click Next.
On the Clusters page, click Next.

On the Machines page, perform the following steps:

Select the Machine tab.

Click Add.

In the new row, enter machine1 for the Name.


Enter the host name or IP address of the machine for the Node Manager Listen Address.

Leave the Node Manager Listen Port as 5556.

Click Next.

On the Assign Servers to Machines page, perform the following steps:

Under Machines, ensure that machine1 is selected.

Under Servers, select server1 and click the right arrow button to move it under machine1.

Select server2 and click the right arrow button to move it under machine1.

Click Next.
On the Configuration Summary page, click Create.
On the Configuration Progress page, click Next after the progress bar reaches 100%.

On the Configuration Success page, make note of the domain location and the URL of the administration console, and then click Finish.

You have created a WebLogic Server domain.


Viewing the Domain Files

To view the directory structure and files for the newly created domain, perform the following steps:

Open a Terminal window and enter the following commands:

$> cd /scratch/domains/mydomain
$> ls

Note: If you placed the domain in a different location, use that directory instead.

To start the administration server of the domain, enter the following command from the domain directory:

$> ./startWebLogic.sh

At the prompt, enter a username and password. Use the administrator username and password that you entered when you created the
domain.

Note: The password is not displayed.

As the script continues to run, look for the following message: <Notice> The server started in RUNNING mode.

The message means that the administration server is up and running.

Accessing the Administration Console

To access the WebLogic Server administration console, perform the following steps:

Open a web browser and enter the following URL: http://hostname:port/console.

In this tutorial, the URL is http://<ip_address>:7001/console.

Note: Use your administration server machine's host name or IP address for <ip_address>.

On the Welcome screen, enter the administrator username and password and click Login.

Note: Use the username and password that you used to start the administration server.
The home page of the administration console is displayed.

Summary

Help OLL About Oracle Contact Us Terms of Use