1. System Environment
1.1 Software Version
The following table lists the required software versions for system environment installation:
Software category |
Version |
|
OS |
Red Hat Enterprise Linux as Release 4 (nahant Update 4) |
Www.redhat.com |
WLS |
Weblogic10.3 |
Server1033_linux32.bin |
If your OS is 64-bit, you need to download the 64-bit WebLogic software, such:
Server1033_generic.jar
The installation method of this package is as follows:
Java-jar server1033_generic.jar
1.2 Network Configuration
Category |
Parameter Value |
Remarks |
Hostname |
Sor-sys.xxx.com |
|
Eth0 |
192.168.55.229/24 |
|
Eth1 |
|
|
Gateway |
192.168.55.254 |
|
2. System Configuration
2.1 host name/IP Address Configuration
Host Name: sor-sys.xxx.com
IP Address: 192.168.55.229
2.2 User Configuration
Create a zhuying User: daily WLS operations using the zhuying account in the system
Groupadd-G 500 oinstall
Groupadd-G 501 sys
Useradd-G 500-G 501 zhuying
Password zhuying # Set the account password
Modify directory permissions:
Chown zhuying/home/zhuying/OPT
Create the BEA directory:
Su-zhuying
Mkdir-P/home/zhuying/opt/BEA # create the main directory of zhuying for WLS Installation
2.3 VNC Configuration
Here we use VNC to log on to the server's xinterface for WLS installation.
Set the VNC configuration file:
VI/etc/sysconfig/vncservers: Modify the last two actions of the configuration file as follows ]:
Vncservers = "2: zhuying"
Vncserversargs [2] = "-geometry 1024x768"
Switch to the zhuying user and perform the following operations:
Start VNC:
Vncserver: 2 // enter the VNC logon authentication password as prompted. The password can be the same as the zhuying account password.
VI ~ /. VNC/xstartup [if there is wood, copy the content of this file under root and modify it] remove the following two lines of comments:
Unset session_manager
Exec/etc/X11/xinit/xinitrc
Restart VNC:
Vncserver-kill: 2
Vncserver: 2
View the VNC process:
[Zhuying @ sor-sys ~] $ Netstat-tnlp | grep VNC
(Not all processes cocould be identified, non-owned process info
Will not be shown, you wowould have to be root to see it all .)
TCP 0 0 0.0.0.0: 5802 0.0.0.0: * Listen 26787/xvnc
TCP 0 0 0.0.0.0: 5902 0.0.0.0: * Listen 26787/xvnc
TCP 0 0 0.0.0.0: 6002 0.0.0.0: * Listen 26787/xvnc
TCP 0 0: 6002: * Listen 26787/xvnc
If the preceding port is enabled, the VNC is started properly. Now you can use the VNC client to log on to the x interface of the server.
3. WLS Installation
3.1 prepare the environment
3.1.1 Software Package preparation
Download the software package:
Ll server103_linux32.bin
-Rwxr -- r -- 1 zhuying oinstall 784532902 Jun 25 server103_linux32.bin
3.1.2 log on to the server using VNC
Use the zhuying account to log on to vncviewer to log on to the X-interface of the server based on the 2nd displays started by the preceding VNC.
Logon:
Logon interface:
3.2 install WLS
A. Find the installation package and execute
B. Click "Next" on the welcome page.
C. Modify the Home Directory of Bea:
/Home/zhuying/opt/Bea
D. select Custom and remove workshop"
E. Select to install Sun's JDK
F. Select the product installation directory to keep the default
G. Observe the Installation Summary to ensure the installation is correct.
H. Installation in progress
I. The installation is complete. Remove "Run Quickstart" and click "done" to complete the installation.
J. Check the installation directory and check whether the installation is complete.
3.3 create domain
After WLS is installed, you need to create a domain. The following describes the process of creating the domain of wls10.
3.3.1. Enter the/home/zhuying/opt/BEA/wlserver_10.3/common/bin directory and run config. Sh to start the configuration page.
[Zhuying @ sor-sys bin] $ pwd
/Home/zhuying/opt/BEA/wlserver_10.3/common/bin
[Zhuying @ sor-sys bin] $./config. Sh
3.3.2. Open the Weblogic Configuration Wizard and enter the welcome page to create a new domain
3.3.3. Select a domain Source
3.3.4. Enter the Weblogic console Administrator account and password.
3.3.5. Configure the server startup mode and select the JDK installation path
3.3.6. customized environment and service configuration
3.3.7. Configure the RDBMS secure storage database
3.3.8. Configure the relevant information of the Administration Server, Console Management port 7001
3.3.9. Configuration Management Server [this can be added later on the console]
3.3.10. Configure Machines [later added through the console]
3.3.11. Check the Weblogic domain [location:/home/zhuying/opt/BEA/wlserver_10.3/common/templates/domains/WLS. jar]
3.3.12. Create a WebLogic domain
3.3.13. domain creation complete
3.3.14. Check it out ~
[Zhuying @ sor-sys domains] $ pwd
/Home/zhuying/opt/BEA/user_projects/Domains
[Zhuying @ sor-sys domains] $ ls
Base_domain
3.4 start/log on to domain
After the domain is created, you need to set the domain parameters and start the daily transactions of adminserver to manage the domain. This part will be described.
Use the zhuying account to log on to the server using the SSH client securecrt.
3.4.1 start Administrator
Start command:
[Zhuying @ sor-sys base_domain] $ pwd
/Home/zhuying/opt/BEA/user_projects/domains/base_domain
[Zhuying @ sor-sys base_domain] $./startweblogic. Sh &
When the log prompts the Output account, the input goes down:
Enter username to boot WebLogic Server: zhuying
-Bash: zhuying: Command not found
[1] + stopped./startweblogic. Sh
When adminserver is started for the first time, an error will be reported. To make it easy to manually enter it at every start, we need to create a boot. properties file, which records the account and password of the console administrator.
The file will be automatically loaded when the system starts later. The procedure is as follows:
[Zhuying @ sor-sys adminserver] $ pwd
/Home/zhuying/opt/BEA/user_projects/domains/base_domain/servers/adminserver
[Zhuying @ sor-sys adminserver] $ mkdir Security
[Zhuying @ sor-sys adminserver] $ view Security/boot. Properties
#2012-06-25 by zhuying
Password = 99 billadmin
Username = zhuying
[Zhuying @ sor-sys adminserver] $ LL
Total 8
Drwxr-XR-x 2 zhuying oinstall 4096 Jun 25 Security
Drwxr-XR-x 2 zhuying oinstall 4096 Jun 25 TMP
Start adminserver again:
[Zhuying @ sor-sys ~] $ Pwd
/Home/zhuying
[Zhuying @ sor-sys ~] $ Ln-S ~ /Opt/BEA/user_projects/domains/base_domain/startweblogic. Sh startadmin. Sh
[Zhuying @ sor-sys ~] $ Sh startadmin. Sh &
The following error is reported:
There are 1 nested errors:
Weblogic. management. managementexception: unable to obtain lock on/home/zhuying/opt/BEA/user_projects/domains/base_domain/servers/adminserver/tmp/adminserver. lok. server may already be running
Delete the corresponding adminserver. Lok and start it again. When "server started in running mode" appears in the last log, it indicates that the startup is completed normally.
PS:
If the server cannot be started, check whether other users have started the Console port 7001 ~
3.4.2 configure domain environment parameters
Modify the following configuration files to optimize the domain environment.
Setdomainenv. Sh
Parameters |
Value |
Description |
Mem_args |
-Xms1024m-xmx1024m |
--- |
Mem_perm_size |
-XX: permsize = 128 |
--- |
Mem_max_perm_size |
-XX: maxpermsize = 256 m |
--- |
Java_options |
$ {Java_options}-dlogging. rpath =/home/zhuying/opt/logs/WebLogic |
The parameter of row 38th is used to save domain logs to the specified directory. |
After the preceding settings, exit and create the directory "/home/zhuying/opt/logs/WebLogic"
Mkdir-P/home/zhuying/opt/logs/WebLogic
Startmanagedweblogic. Sh
Add the following content under admin_url:
Wls_redirect_log = "/opt/logs/WebLogic/$ {SERVER_NAME}. log"
Export wls_redirect_log
3.4.3 restart Administrator
Run the following command to restart adminserver:
[Zhuying @ sor-sys bin] $ pwd
/Home/zhuying/opt/BEA/user_projects/domains/base_domain/bin
./Stopweblogic. Sh &
./Startweblogic. Sh &
After the adminserver is restarted, run the netstat command to check that port 7001 has been started properly.
# Netstat-tnlp | grep Java
(Not all processes cocould be identified, non-owned process info
Will not be shown, you wowould have to be root to see it all .)
TCP 0 0: FFFF: 192.168.55.229: 7001: * Listen 30268/Java
TCP 0 0: FFFF: 127.0.0.1: 7001: * Listen 30268/Java
3.4.4 log on to adminserver
Now, you can log on to adminserver through IE. Our logon URL is as follows:
Http:/// 192.168.55.229: 7001/console/
4. Create a cluster and a server
4.1 you can try it in the test environment, but note that the broadcast addresses of different clusters must not be repeated ~
4.2 create data source
A) Open servicesjdbc, click data sources, and then click lock & edit.
B) Click new to create DS and set the following attribute values:
Name: Test/jdbc/seashell
JNDI name: Test/jdbc/seashell
Database Type: Oracle
Database DRIVER: * Oracle's driver (thin xa) version: 9.0.1, 9.2.0, 10, 11
Click Next
D) set the following property values:
Database Name: billdb
Host Name: testdb.99bill.com
Port: 1530
Database User name: seashell
Password: [your password]
Confirm Password: [your password]
Click Next
E) Test the connection on the pop-up page. After confirming the connection is normal, click Finish.
F) Click Activate changes to activate the settings.