Install weblogic9.2 MP2 in RedHat Linux

Source: Internet
Author: User
Tags stop script

If you need to reprint, please indicate the source
, Http: // www. Chuanjiang. cn
.
This document PDF download: http://yuanfen127.ys168.com/

In addition, I have word electronic document format, if necessary, please contact me: asima127@gmail.com

1

Install weblogic9.2 MP2


1.1
 Prepare the installation media


Prepare the installation media Server922_zh_cn_linx32.bin
(Approximate
807 m
) 1.2
 Create user groups and users


Create user group WebLogic
, Create a user WebLogic
And use passwd to set a password to switch to the Weblogic user, create an inst_package In the Weblogic main directory, upload the installation media to this directory using FTP or SMB, and use Chmod + x
Make it executable. 1.3
 Installation Process (in text mode)


There are two ways to install WebLogic Server. One is to install Weblogic server on the GUI, and the other is to install WebLogic Server in text mode. Therefore, the installation on the GUI is simple. Use text to add parameters during running -Mode
= Console 1.3.1

 Run Bin

InstallProgram





Before running the command, check whether there is sufficient space in/tmp. Direct use ./Server922_zh_cn_linux32.bin-mode = console

. (If it is an AIX system, you may need to specify other parameters. For more information, see the installation instructions of Weblogic for Aix ). After running the tool, you can see the words "extracting 0%...", indicating that the tool is being decompressed. And you can see in/tmp File ******
Directory, which is about MB. It is not until "100%" indicates that the decompression is complete. 1.3.2

 Welcome Page




Press ENTER
You can. The license page appears, Enter"
1
", Press ENTER
. 1.3.3

 Select Bea

Main directory






Use the default "/Bank/WebLogic/BEA ", Press enter. 1.3.4

 Select the installation type



The options may vary depending on the Installation Package (WebLogic has a separate
Server and platform, platform is a collection version, including WebLogic Server, Workshop
Platform, portal platform, and intergation
Platform. In this example, server922 is used. By default, WebLogic Server and workshop platform are included ).
In this example, some components of workshop are used Select"
1
"
, Press ENTER
. If you do not need workshop platform, you can select 2 for customization. 1.3.5

 Select an analysis tool




This step is unavailable in versions earlier than weblogic9. Select and continue as needed. 1.3.6

 Select the product installation directory



By default, Press enter. 1.3.7

 Waiting for Installation


1.3.8

 Waiting for JDK Installation



Weblogic9.2
The installed JDK version is jdk1.5.0 _ update10. 1.3.9

 Installation Complete



Press enter to clear the temporary files during installation. 2



Create and configure domain


The graphic interface and text naming method can also be used to create a domain. In this example, the text naming method is used. The process is as follows: A.

Use WebLogic User Login B.

Go to the/Bank/WebLogic/BEA/weblogic92/common/bin directory. C.

Run./config. Sh D.

Enter "1" and press Enter. E.

Select domain Source
The Weblogic Platform Component is used by default. Enter "1" and press Enter. F.

Select the program template and select whether to use "Workshop" as needed.
For Weblogic Platform, if "workshop for WebLogic" is not selected during installation
", The following options are not displayed here. Weblogic8.1 has four domain types: Server domain and workshop.
Domain, portal domain, and intergation domain all have corresponding component packages. In this example, enter "2" and press Enter. You can see that "workshop for Weblogic Platform" is selected (indicated by X), and then press enter to continue. G.

Configure the administrator user name and password according to the actual content, enter the user name and password, for example, enter the password, enter "2" and press Enter. A prompt is displayed, enter the password, and press Enter, will return to this page again to enter other options. After the password is confirmed, you can see the following interface. *** indicates the password and press enter to continue. H.

Select the domain Running Mode
For the differences between the Development Mode and production mode, see the document. In this example, select "development mode" and enter "1" and press enter to continue. I.

JDK selection for domain JDK
One is JDK developed by Sun, and the other is jrockit developed by BEA. You can select "sun" as needed, enter "2" and press enter to continue J.

Select Configuration Options
The created domain has some default settings and is configured as needed. In this example, we do not modify its default configuration. Therefore, enter "2" and press enter to continue. If "1 | yes" is selected, you can configure the default settings for this domain,
As you can see, weblogic9.2 does not enable the SSL function by default, so the SSL listening port (which is 7002 in Weblogic8.1) is not enabled. K.

Storage location of the specified domain
Press enter to continue L.

Domain Name
Enter the domain name. In this example, enter "cms_domain" and press enter to continue. M.

Configuration complete
Go to/Bank/WebLogic/BEA/user_projects/domains. You can see the cms_domain Directory, which stores all files and configurations related to this domain.

1.4 deploy applications
1.4.1 start and close
1. How to start WebLogic
[WebLogic @ jcms bin] $ CD/var/web/JSP/BEA/user_projects/domains/mydomain
[WebLogic @ jcms bin] $./startweblogic. Sh (you need to enter the user name and password)

2. How to disable WebLogic
[WebLogic @ jcms bin] $./stopweblogic. Sh

1.4.2 set Automatic WebLogic startup
1. You do not need to enter the user name and password to start and close weblogic.
In the mydomain directory of the Weblogic account, create the boot. properties file and enter:

Password = 12345678
Username = weblogic

Enter the username and password for starting weblogic.

2. Modify the starweblogic. SH and stopweblogic scripts.
① Startweblogic. Sh
/Usr/bin/nohup $ {java_home }.................. Weblogic. Server>/var/web/weblogic. log 2> & 1

Note: The red part is the added command. It means to put the startup script in the background for execution and output logs.

② Stopweblogic. Sh
#! /Bin/sh
.................. Script content ......... (Delete this script for authentication. After deletion, you do not need to enter the user name and password)
# Set server name


3. Disable WebLogic startup as a Linux system service.
Use the root account to create a Weblogic File under/etc/init. d. The content is as follows:

#! /Bin/sh
# Chkconfig: 345 20 80
# Description: Weblogic auto start-stop script.

Domain_home =/var/web/JSP/user_projects/domains/mydomain
Wls_owner = weblogic

Case "$1" in
'Start ')
Su-$ {wls_owner}-c "CD $ {domain_home};./startweblogic. Sh"
;;
'Stop ')
Su-$ {wls_owner}-c "CD $ {domain_home};./stopweblogic. Sh"
;;
Esac

Domain_home is the path of the user domain you created. After the file is set, you can use the Linux service to start and close weblogic.
# Service WebLogic start

4. Weblogic is automatically started and disabled with the System
Run the following command as the root user:
Ln-S/etc/init. d/WebLogic/etc/rc. d/rc1.d/k80weblogic
Ln-S/etc/init. d/WebLogic/etc/rc. d/rc2.d/s20weblogic
Ln-S/etc/init. d/WebLogic/etc/rc. d/rc3.d/s20weblogic
Ln-S/etc/init. d/WebLogic/etc/rc. d/rc4.d/s20weblogic
Ln-S/etc/init. d/WebLogic/etc/rc. d/rc5.d/s20weblogic
Ln-S/etc/init. d/WebLogic/etc/rc. d/rc6.d/k80weblogic

In addition, we can also set whether the Weblogic service is automatically started in system services by running the setup command.

1.5 FAQs
A: Weblogic cannot be started. The error message is as follows,

Q: LDAP startup fails. The problem may be that Weblogic is started with the root account. Check whether the file permissions under myserver/ldap/ldapfiles in the mydomain directory are WebLogic user groups. If the file cannot be started, delete the. Tran file.
A: Weblogic cannot be started. The error message is as follows,

Q: The problem is that the management domain cannot communicate with the user domain. Check the Linux host name, view the/etc/hosts file, and check whether there is a host record. If not, add this record to the/etc/hosts file.
127.0.0.1 localhost. localdomain localhost

If you do not have this record, the startup will fail. Generally, when you install the system, you have set the Host Name and two NICs. When you set the host name, the above record will be lost.

You can also use the image interface for installation. I will not introduce it here.

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.