On-paper JAVA middleware-weblogic (installation)

Source: Internet
Author: User

After a long time of exploration and learning, I am now able to have a certain understanding of the concept of middleware. This article is also intended to help my friends who want to completely migrate middleware to the cloud, I have a conceptual understanding of middleware and some records in the O & M process.

As the name implies, middleware is a platform technology applied between the operating system and the customer's software. A simple understanding is a container, which exists on the system, it provides an executable environment platform for software applications. In addition, we can divide common middleware applications into three layers. The first layer is front-end middleware such as Apache, which provides an environment for static website pages, the second layer provides background middleware such as weblogic and tomcat, which can provide runtime environments for JAVA applications, and the third layer provides underlying middleware such as JDK and JVM, it also provides a runtime environment for JAVA middleware such as weblogic.

After talking about this, we hope that you can simply understand the application technology of middleware. In a macro sense, middleware has multiple interpretations, not only between software applications, the middleware in JAVA applications is discussed here. There are many kinds of such products, such as weblogic of Oracle, Tongweb of China-made Dongfang Tong, and tomcat of lightweight open source, next we will build the weblogic application environment together. Here I am using Linux Red Hat 5.5.

1. Install JDK

Although the system is installed with a JAVA environment by default, we recommend that you install another JAVA environment. Here we install the JDK provided by Oracle.

1. Download JDK http://www.oracle.com/technetwork/java/javasebusiness/downloads/index.html.
2. chmod 755 jdk-6u24-linux-i586.bin // grant executable permissions to the software
3,./jdk-6u24-linux-i586.bin // install jdk, is actually decompression process, very simple

We recommend that you place the decompressed JDK directory under/usr/local/, because multiple users will use this JAVA environment in the future, so do not place it in the root directory.

2. Create weblogic users

1. useradd weblogic // create a weblogic user
2. su-weblogic // switch to weblogic user
3. vi. bash_profile // edit the user configuration file, modify the JAVA environment directory as follows, and enter the path based on your JDK directory.

PATH =/usr/local/jdk6/bin: $ PATH: $ HOME/bin
JAVA_HOME =/usr/local/jdk6/
CLASSPATH = $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/jre/lib/rt. jar
Export PATH JAVA_HOME CLASSPATH

4. Refresh the file or log on to the user again and run the java-version command to check that our new JDK version is 1.6.

Iii. Install weblogic

After preparing so many documents, we can finally install weblogic. We can download the weblogic software in various ways. The current version is usually 10 Gb or 11 GB. Here we will demonstrate how to install and use the 10 GB version.

The package size is generally greater than MB. Common formats include bin package and jar package. If the package ends with bin, we will use it directly. /command, while the installation package ending with jar is installed using the java-jar command.

The following content is displayed when the command "./weblogic_server103_linux32.bin" is executed.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314424138-0.png "alt =" "/>

The above information mainly indicates that the graphic interface is not found. By default, the character interface is installed. Enter the carriage return to perform the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314423506-1.png "alt =" "/>

The above information prompts the installation path. If you want to install it elsewhere, you can modify it. Here, we choose to install it in the home directory by default, and press enter to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314424106-2.png "alt =" "/>

The above information prompts you which mode to install, including full installation and custom installation. By default, we choose full installation. Press enter to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314422010-3.png "alt =" "/>

The above information prompts you to select the path for storing all installed files, and we will press enter to continue the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314422R7-4.png "alt =" "/>

The above information lists the detailed information about weblogic installation and the services. Let's take a brief look and press enter to continue the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/13144220B-5.png "alt =" "/>

After several seconds of installation, the above information indicates that the weblogic master program has been successfully installed.

4. Create a management domain for weblogic

Only the weblogic program is installed and cannot work normally. here we need to create a management domain for it, and such a management domain can have multiple.

Go to the following directory: "cd/home/weblogic/bea/wlserver_10.3/common/bin" and execute "./config. sh" in this directory. The following content appears:

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314425046-6.png "alt =" "/>

Based on the information above, we will select the first item by default. Create a new domain and press enter to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314425I6-7.png "alt =" "/>

The above information prompts you to select the platform component to use. Here we select the first platform set up in weblogic by default, and press enter to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314422360-8.png "alt =" "/>

The preceding information indicates an optional template. Press enter by default to proceed to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314421922-9.png "alt =" "/>

When you see the above information, you need to make some settings. The first item is the weblogic domain user name, the second and third items are the weblogic domain password, and the fourth item is the description information, enter 2 and 3 respectively to set a password greater than 8 digits, and then press enter to continue the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/131442B24-10.png "alt =" "/>

The above information prompts you to select the working mode, which includes the development mode and production mode. Generally, in the application development test phase, we select the development mode by default, while in the final production environment, we use the production mode, the work efficiency is also higher. Here we select the development mode by default and press enter to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314422158-11.png "alt =" "/>

The above information prompts you to select the JDK version. If we have set the JDK Application Path in the user's environment variables, We will select it by default and press enter to proceed to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314424O4-12.png "alt =" "/>

The above information indicates whether to modify the default configuration of the template. We select the first item, type 1, and press enter to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314421231-13.png "alt =" "/>

The above information prompts about the rdbms-related database information table. By default, we choose the first option, which is good for any operation.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314422b8-14.png "alt =" "/>

The above information is the domain configuration parameters, including the listening address and listening port. If necessary, you can change it. Here we use the default port 7001 for configuration, and press enter to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314423243-15.png "alt =" "/>

The above information prompts you to configure the managed server. According to the specifications, there should be multiple managed servers under each management domain. Here we will introduce this in the cluster configuration below, so leave it blank, press enter to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/131442O35-16.png "alt =" "/>

The above information prompts you to configure the cluster management node. We will press enter by default to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314422331-17.png "alt =" "/>

The above information prompts you to configure the node management server. We can leave it blank and do not set it. Press enter to proceed to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314423c5-18.png "alt =" "/>

The above information also prompts you to configure the node Management Server Based on the Unix system. We can leave it blank without setting it. Press enter to proceed to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/1314422W9-19.png "alt =" "/>

The above information prompts the default installation path of the management domain. Here, use the default path and press enter to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/13144221V-20.png "alt =" "/>

The above information shows the name of the management domain. Here we use the default name to press enter to go to the next step.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/13144212c-21.png "alt =" "/>

The above information indicates that our management domain has been configured successfully.

5. Start the management domain

Go to the/home/weblogic/bea/user_projects/domains/base_domain/bin directory and run the startup script./startWebLogic. sh to start the management domain. Since all weblogic startup commands are executed on the foreground, if the terminal closes the process, it will automatically end, so we can use the command "nohup. /startWebLogic. sh & "causes it to run automatically in the background and write all output information to the nohup log.

After the local port 7001 is listened on, we can access http: // localhost: 7001/console in a browser to go to the following screen, after entering the user name and password we have configured, you can log on to the console.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/13144215P-22.png "alt =" "/>

Conclusion

The Installation Process of weblogic is actually very simple, but it is not easy for me to understand the logical relationship, in particular, it manages the relationship between nodes and instances. As the middleware of the JAVA platform, Oracle's Weblogic is indeed a powerful product that deserves our research and study. This article only introduces the tip of the iceberg of weblogic, if you are interested in this, let's study its strength together.

The original Article was first published on the blog of Abu. Please note that the address of this article is:Http://www.abuve.com/618.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.