1th Chapter Installation WebLogic
Download the weblogic12.1.3 version, select Zip distribution for Mac OSX, Windows, and Linux, upload the downloaded wls1213_dev.zip to the Linux system
1.1 Download the installation package
Linux under Install plugin: WebLogic
73800712#1%e4%b8%8b%e8%bd%bdweblogic
1.2 Unzip to the installation directory
[[email protected] tools]# ls
Jdk-8u60-linux-x64.tar.gz
Wls1213_dev.zip
1.2.1 Decompression
[Email protected] tools]# mkdir-p/application/weblogic12/
[Email protected] tools]# Unzip Wls1213_dev.zip
1.2.2 moving files to the WebLogic directory
[Email protected] tools]# MV wls12130//application/weblogic12/
1.3 Configuring Environment variables
1.3.1 Unpacking the JDK package
[Email protected] tools]# Tar XF jdk-8u60-linux-x64.tar.gz
1.3.2 Configuring environment variables under. bash_profile
Vim./bash_profile
Export java_home=/application/jdk1.8.0_60
Export classpass=.: $JAVA _home/lib: $JAVA _home/jre/lib
Export path= $JAVA _home/bin: $PATH
Export mw_home=/application/weblogic12/wls12130
Startup file
source. bash_profile
1.4 Configuring Host name Resolution
[Email protected] domain]# cat/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.16.1.203 Tomcat
1.5 Running the installation configuration script (long)
cd/application/weblogic12/wls12130
./configure.sh-silent
1.6 Setting environment variables
[Email protected] ~]# cd/application/weblogic12/wls12130/wlserver/server/bin/
[Email protected] bin]#./setwlsenv.sh
1.7 Creating a domain, slow console startup issues
Phenomenon:
- Writedomain takes a long time to create a domain (about 20 minutes)
- Start WebLogic The first time it takes a long time (about 10 minutes) to enter the console
- Starting WebLogic server takes a long time (5-10 minutes)
Modify:
Before creating a domain, modify the Java generation random number under Linux
[Email protected] bin]# cd/application/jdk1.8.0_60/jre/lib/security/
[Email protected] security]# vim java.security
#securerandom. Source=file:/dev/urandom
Revision changed to
Securerandom.source=file:/dev/./urandom
1.8 Creating a domain/domain
[Email protected] ~]# mkdir-p/application/weblogic12/domain/
[Email protected] ~]# cd/application/weblogic12/wls12130/wlserver/common/bin/
[Email protected] bin]#./commenv.sh
[Email protected]at bin]#./wlst.sh
Wls:/offline>readtemplate ('/application/weblogic12/wls12130/wlserver/common/templates/wls/wls.jar ')
WLS:/OFFLINE/BASE_DOMAIN>CD (' Servers/adminserver ')
Wls:/offline/base_domain/server/adminserver>set (' listenaddress ', ')
Wls:/offline/base_domain/server/adminserver>set (' Listenport ', 7001)
WLS:/OFFLINE/BASE_DOMAIN/SERVER/ADMINSERVER>CD ('/')
WLS:/OFFLINE/BASE_DOMAIN>CD (' Security/base_domain/user/weblogic ')
Wls:/offline/base_domain/security/base_domain/user/weblogic>cmo.setpassword (' weblogic12c ')
Wls:/offline/base_domain/security/base_domain/user/weblogic>setoption (' Overwritedomain ', ' true ')
Wls:/offline/base_domain/security/base_domain/user/weblogic>writedomain ('/application/weblogic12/domain ')
Wls:/offline/domain/security/domain/user/weblogic>closetemplate ()
Wls:/offline>exit ()
1.9 Start off WebLogic
[Email protected] bin]# cd/application/weblogic12/domain/bin/
[Email protected] bin]#/startweblogic.sh & #启动weblogic
[Email protected] bin]#/stopweblogic.sh #关闭weblogic
1.10 Login Page
Http://10.0.0.203:7001/console
User name: WebLogic
Password: weblogic12c
2nd Chapter New Server Startup
The app runs in AdminServer by default, and if you create a new server with the console, such as hongjun-01, the command line starts cyyunserver with the Startmanagedserver command startmanagedserver <server Name > < console address + port >
Cd/usr/local/weblogic12c/domain/bin
./startmanagedweblogic.sh hongjun-01 http://localhost:7001
Refresh the console page hongjun-01 display started successfully.
2.1 Password-free boot server
[Email protected] server-base]# cd/application/weblogic12/domain/servers/server-base
[Email protected] server-base]# mkdir-p security
[Email protected] security]# vim boot.properties
Username=weblogic
password=weblogic12c
Cd/usr/local/weblogic12c/domain/bin
Close Cyyunserver
./stopmanagedweblogic.sh Server-base http://localhost:7001
Background boot./startmanagedweblogic.sh server-base http://localhost:7001 &
3rd Chapter Page Deployment
3.1.1 installation
Create a directory to place the war package
Mkdir-p/application/weblogic12/domain/procation
[[email protected] procation]# ls
Lxysxmgr.war web_jun.war
4th cluster Build
4.1 build the main control end WebLogic (Master node ip:10.0.0.11)
4.2 Package the domain of the host side to the managed side
[[email protected] weblogic12]# tar-zcvhf domain.tgz domain/
SCP-RP domain.tgz 10.0.0.201:/ application/weblogic12/
4.3 sends a domain package to a child node (WebLogic is already set up)
replaces the domain of the child node (domains)
[[email protected] Weblogic12 ]# ls
domain.tgz
[[email protected] weblogic12]# tar XF domain.tgz
4.4 in primary, child nodes modify the listener address to the primary node IP (10.0.0.11)
[[email protected] domain]# vim nodemanager/nodemanager.properties
listenaddress=10.0.0.11
Start:
[[email protected] domain]# cd bin/
[[email protected] bin]#./startnodemanager.sh &
4.5 Login to the Master node page
Http://10.0.0.11:7001/console
New Server (created jun01,jun02,jun03 below)
Environment----server----New
4.6 Start a service created upstairs on a child node server (password-free background boot)
[Email protected] bin]# pwd
/application/weblogic12/domain/bin
[Email protected] bin]#/startmanagedweblogic.sh jun01 http://10.0.0.11:7001 &
4.7 Viewing the startup status on the master node
View Business Deployment Scenarios
4.8 Ultimate Results
4.8.1 Master node background run
4.8.2 Sub-node background running condition
4.8.3 page Display
Build weblogic12.1.3