Install and deploy the weblogic12c cluster in linux.
This article describes how to install and deploy the weblogic12c cluster in linux. The version 12c and other versions may vary, but the general operations are basically the same.
We will not introduce weblogic clusters much here. If you have any questions about weblogic clusters, you can search for them by Baidu. In addition, when reading this article, it is best to know in advance how to install and deploy weblogic standalone in linux. Start without talking nonsense.
First, create a table to record the information of each server before creating a cluster.
Name |
IP |
Port |
Description |
AdminServer |
192.168.161.101 |
9001 |
Manage servers |
Proxy_server |
192.168.161.101 |
8080 |
Proxy Service Area |
Node_server1 |
192.168.161.101 |
9002 |
Node Server 1 |
Node_server2 |
192.168.161.102 |
9002 |
Node Server 2 |
Next, we will start the operation. Image descriptions will be provided for each step.
1. Create a cluster
1. Create a management server ---- AdminServer. The first few steps are the same as those of creating a common domain.
You must select Administration Server and Manger servers, Clusters and coherence.
In this test, you only need to create two nodes. You can add multiple nodes. The proxy_server serves as the proxy server. The weblogic cluster can use multiple proxies, such as the hardware F5 device proxy, or apache http proxy, this article tests the use of weblogic's own proxy, so you need to create a Proxy Server
At this point, the weblogic cluster has been created
Start the management service now,
Go to the weblogic Management page, http: // 192.168.161.101: 9001/console, and enter the user name and password to log on.
View the cluster in the domain structure, as shown in figure
You can see that the weblogic cluster has been installed.
Start weblogic nodes
First, Start Node node_server1 under the same IP address. The startup command is. /startManagedWebLogic. sh node name http: // Management Server IP: port, for example. /startManagedWebLogic. sh node_server1 http: // 192.168.161.101: 9001
Enter the user name and password for managing the server during startup.
After Node 1 is successfully started, node node_server2 with different IP addresses is started.
The premise is that weblogic is installed on server 102 of Node 2. Copy the manager_domain folder of Management Server 101 to server 102 and Start Node 2 on server 102.
After all nodes are started, start the proxy server on server 101.
Finally, log on to the weblogic console and check the servers we just started.
As you can see, the server has been successfully started.
2. Configure the JDBC data source and deployment project, and do not describe them in the same way. Note that you must select a cluster when selecting the server, as shown in figure
Note: All configurations and deployments are completed under AdminServer. You do not need to deploy a project for each node.
In this test, I deployed an application test in the project, which is very simple: click the link to query and insert the database.
After the cluster is created, we need to access it through the proxy service IP address and port.
102 server weblogic background output
When weblogic 102 is disabled, the proxy server automatically switches to weblogic 101.
As a result, weblogic clusters are easy to install and deploy. As long as we find the correct method, it's so easy!
If you have any questions, leave a message and I will try to answer them as much as possible.
All texts and images in this article are recorded by myself. Please cherish the fruits of the work of the author. You are welcome to repost and mark the source. Thank you.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.