WebLogic Learning Series 2: Domain and Server Configuration

zhaozj2021-02-16  51

WebLogic Learning Series 2: Domain and Server Configuration

Author: wangwd April 21, 2003

In the series, we mainly explore the installation of WebLogic, today we mainly explore the contents of the Domain and Server configuration.

This hypothesis is provided as follows: Windows 2000 Professional Operating System. WebLogic 7.0 is installed under C: / BEA.

First, what is Domain and Server

1. Domain is the basic management unit of the WebLogic Server instance. More detailed explanation should be, the so-called Domain is, managed by the WebLogic Server instance configured for Administrat Server, this unit is a collection of all related resources.

2, Server is a relatively independent unit that combines some specific functions.

Second, the relationship between Domain and Server

Domain can consist of one or more WebLogic Server instances or Server clusters, one of the Server's functionality, the specific function is determined by its configuration file (combined with this example is c: /bea/user_projects/mydomain/config.xml) Other Server specific implementation of a specific logic function.

Third, Domain type

1, Standalone Server Domain

This is the operational environment for development and testing. It is mainly used to publish a single application, consisting of single WebLogic Server and is responsible for the operation of the web application. "Examples" in the installation directory is such an instance.

2, Admin Server with Managed Servers

This is the easiest business environment. It can publish multiple Server instances to be responsible for the operation of the web application, by one of the Administration Server managed.

3, Domain with Managed Servers and Clusters

Commercial operating environment with higher performance.

I recommend that you don't have to configure Domain With Managed Servers and Clusters, because both environment or from performance, this is not necessary, we should start from the simplest, engage in The principle, and then in-depth learning can also be.

Fourth, specific configuration

After installing WebLogic Server, you have to configure a new Domain, which is mainly through the Configuration Wizard to complete this configuration, and there are two main ways of the configuration wizard, one is through the program menu, as shown in Figure 1. The other is to launch the configuration wizard by the command line, enter the command line input (CD C: / BEA / WebLogic700 / Common / BIN), type the command (DMWIZ) that launches the configuration wizard, and also start the configuration wizard.

figure 1

Let's click Domain Configuration Wizard to launch the Domain configuration wizard, as shown in Figure 2

figure 2

In this page we choose WLSDomain, the name of the Name dialog, you can choose the default, or enter your own recognized domain name. Click Next to appear as shown in Figure 3, in this page, we will have the choice of Domain type discussed in this page. If you only start from the perspective of learning, I suggest that you choose Standalone Server Domain, if you want more to learn more administration Server and management Server's relationship, you can choose Admin Server With Managed Server. image 3

After completing this selection, click Next, appear as shown in Figure 4. In this page, it is mainly to select the MYDOMIN installation directory, you can specify a specific directory by clicking the Browse button, or accepts the default selection.

Figure 4

The next page is shown in Figure 5, the configuration page of this page. These four input items are quite important, please do everything you must know.

A. Server Name is the name of the Server configured for MyDomain. When the configuration work is complete, generate the MyServer this directory, and the WEB application will be used to manage and run.

B. Server Listen Address This is used to configure the specified Server listening address. If you are running on your machine, you can enter localhost, or 127.0.0.1 can, if you are in a network environment, you should enter your own IP address in this text box.

C, server listen port, the default port of the system is 7001, of course, you can select the port itself, but because the machine itself port configuration is different, you set your port to have problems such as port conflicts, so the author recommends that you reserve the default.

D, Server SSL Listen Port, this is the security socket monitoring port, and also please keep the default settings.

Figure 5

The page of Figure 6 appears when you click the next NEXT button. This page is quite important, please don't forget, this is a Server user and password, and use these contents when configuring and managing applications in the application, and the username and password will be saved after the system is encrypted. This is what we can't read in the PEM file in the directory. I will write an article about some configuration and skills of WebLogic, how to avoid issues such as username and password each time the server must enter.

Figure 6

When you click Next, you will appear as shown in Figure 7. In general, we do not install Server as Windows Services, because it is because the burden of the system will be too heavy, unless you are a separate server, or you will choose no.

Figure 7

Figure 8 The page is asking if the user wants to add the server to the menu, you can choose Yes, or you can choose No. If you choose No, you have to run StartWeblogic yourself, this is not much different.

Figure 8

After clicking Next, the page as shown in Figure 9 will be found here that our configuration task is basically over.

Figure 9

V. Test

The configuration work has been completed. If our configuration is effective or the configuration is the end, what is the same, now let's test it together. Enter CD c: / bea / user_pd c: / bea / user_pd c: / bea / user_pd c: / bea / user_pd c: / bea / user_projects / mydomain, then type StartWebLogic and enter, will appear as shown in Figure 10, enter the username and password entered in Figure 6, wait for the server to start complete.

Figure 10

Please turn on the IE browser and enter the following address in the address bar (http: // localhost: 7001 / console), page 12 of Figure 11 should appear

Enter the corresponding username and password, you should start the console of Domain we have configured as shown in Figure 12.

Figure 12

To this article, the configuration of Domain and Server discussed here has all been completed and the test is running. If there is no expected page, please re-check if you do it correctly.

Since the WEBLOGIC learning series, I got a lot of colleagues, I will seriously write every article in the future, please don't worry.

转载请注明原文地址:https://www.9cbs.com/read-23198.html

New Post(0)