Hướng dẫn chi tiết cài đặt weblogc, Install and create weblogic cluster domain, weblogic 11g, cài đặt và cấu hình chi tiết có ảnh đính kèm, Hướng dẫn chi tiết cài đặt weblogc Hướng dẫn chi tiết cài đặt weblogc
Trang 11 Create user and path and copy setup fileWednesday, May 31, 2017
8:31 AM
1 Create user:
bash-3.2# useradd -d /u02/weblogic -g other -c "user weblogic" weblogic
bash-3.2# passwd weblogic
1 Create path:
bash-3.2# cd /u02
bash-3.2# mkdir weblogic
bash-3.2# chown -R weblogic:other weblogic
bash-3.2# su - weblogic
bash-3.2$ pwd
/u02/weblogic
bash-3.2$ mkdir setup
bash-3.2$ mkdir deployment
bash-3.2$ cd setup
## copy weblogic installation file to setup folder
Trang 2-This installer will guide you through the installation of WebLogic 10.3.6.0
Type "Next" or enter to proceed to the next prompt If you want to change data entered previously, type "Previous" You may quit the installer
at any time by typing "Exit"
Trang 3Enter [Exit][Next]> next
< - Oracle Installer - WebLogic 10.3.6.0 ->
Choose Middleware Home Directory:
"Middleware Home" = [Enter new value or use default
"/u02/weblogic/Oracle/Middleware"]
Enter new Middleware Home OR [Exit][Previous][Next]> next ## Input home path if need, unless type Next
< - Oracle Installer - WebLogic 10.3.6.0 ->
Register for Security Updates:
-Provide your email address for security updates and to initiate configuration manager
1|Email:[]
Trang 42|Support Password:[]
3|Receive Security Update:[Yes]
Enter index number to select OR [Exit][Previous][Next]> 3 ## Type 3 to change to Not receive update
< - Oracle Installer - WebLogic 10.3.6.0 ->
Register for Security Updates:
-Provide your email address for security updates and to initiate configuration manager
"Receive Security Update:" = [Enter new value or use default "Yes"]
Enter [Yes][No]? No ## Change Receive Security Update to No
Trang 5< - Oracle Installer - WebLogic 10.3.6.0 ->
Register for Security Updates:
-Provide your email address for security updates and to initiate configuration manager
"Receive Security Update:" = [Enter new value or use default "Yes"]
** Do you wish to bypass initiation of the configuration manager and
** remain uninformed of critical security issues in your configuration?
Enter [Yes][No]? Yes ## Type Yes to confirm changing
< - Oracle Installer - WebLogic 10.3.6.0 ->
Trang 6Register for Security Updates:
-Provide your email address for security updates and to initiate configuration manager
1|Email:[]
2|Support Password:[]
3|Receive Security Update:[No]
Enter index number to select OR [Exit][Previous][Next]> next
< - Oracle Installer - WebLogic 10.3.6.0 ->
Choose Install Type:
Trang 7| - Oracle Coherence
2|Custom
| Choose software products and components to install and perform optional
|configuration
Enter index number to select OR [Exit][Previous][Next]> 2 ## Type 2 to custom type of installation, choose to install Weblogic Server only
< - Oracle Installer - WebLogic 10.3.6.0 ->
Choose Products and Components:
| | _Configuration Wizard and Upgrade Framework [1.3] x
| | _Web 2.0 HTTP Pub-Sub Server [1.4] x
| | _WebLogic SCA [1.5] x
| | _WebLogic JDBC Drivers [1.6] x
| | _Third Party JDBC Drivers [1.7] x
Trang 8| | _WebLogic Server Clients [1.8] x
| | _WebLogic Web Server Plugins [1.9] x
| | _UDDI and Xquery Support [1.10] x
*Estimated size of installation: 670.1 MB
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 2 ## Type 2 to uncheck Oracle Coherence
< - Oracle Installer - WebLogic 10.3.6.0 ->
Choose Products and Components:
Trang 9| | _Administration Console [1.2] x
| | _Configuration Wizard and Upgrade Framework [1.3] x
| | _Web 2.0 HTTP Pub-Sub Server [1.4] x
| | _WebLogic SCA [1.5] x
| | _WebLogic JDBC Drivers [1.6] x
| | _Third Party JDBC Drivers [1.7] x
| | _WebLogic Server Clients [1.8] x
| | _WebLogic Web Server Plugins [1.9] x
| | _UDDI and Xquery Support [1.10] x
*Estimated size of installation: 658.5 MB
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> next
< - Oracle Installer - WebLogic 10.3.6.0 ->
Trang 10JDK Selection (Any * indicates Oracle Supplied VM):
-JDK(s) chosen will be installed Defaults will be used in script string-substitution if installed
1|Add Local Jdk
2|/usr/jdk/instances/jdk1.6.0[x]
*Estimated size of installation: 658.5 MB
Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> next
< - Oracle Installer - WebLogic 10.3.6.0 ->
Choose Product Installation Directories:
-Middleware Home Directory: [/u02/weblogic/Oracle/ -Middleware]
Trang 11Product Installation Directories:
"WebLogic Server" = [Enter new value or use default
"/u02/weblogic/Oracle/Middleware/wlserver_10.3"]
Enter new WebLogic Server OR [Exit][Previous][Next]> next
< - Oracle Installer - WebLogic 10.3.6.0 ->
The following Products and JDKs will be installed:
| _Configuration Wizard and Upgrade Framework
| _Web 2.0 HTTP Pub-Sub Server
| _WebLogic SCA
Trang 12| _WebLogic JDBC Drivers
| _Third Party JDBC Drivers
| _WebLogic Server Clients
| _WebLogic Web Server Plugins
| _UDDI and Xquery Support
| _Evaluation Database
*Estimated size of installation: 658.7 MB
Enter [Exit][Previous][Next]> next
May 31, 2017 9:04:04 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory
< - Oracle Installer - WebLogic 10.3.6.0 ->
Trang 13< - Oracle Installer - WebLogic 10.3.6.0 ->
Congratulations! Installation is complete
Press [Enter] to continue or type [Exit]> ## Press Enter to finish
< - Oracle Installer - WebLogic 10.3.6.0 ->
Clean up process in progress
Trang 143 Create new domain
Wednesday, May 31, 2017
9:12 AM
bash-3.2$ cd /u02/weblogic/Oracle/Middleware/wlserver_10.3/common/bin/
bash-3.2$ /config.sh -mode=console
< - Fusion Middleware Configuration Wizard ->
Welcome:
-Choose between creating and extending a domain Based on your selection,
the Configuration Wizard guides you through the steps to generate a new or
extend an existing domain
Trang 15->1|Create a new WebLogic domain
| Create a WebLogic domain in your projects directory
2|Extend an existing WebLogic domain
| Use this option to add new components to an existing domain and modify |configuration settings
Enter index number to select OR [Exit][Next]> next
< - Fusion Middleware Configuration Wizard ->
Select Domain Source:
-Select the source from which the domain will be created You can create the
domain by selecting from the required components or by selecting from a
list of existing domain templates
->1|Choose Weblogic Platform components
| You can choose the Weblogic component(s) that you want supported in
|your domain
Trang 162|Choose custom template
| Choose this option if you want to use an existing template This
|could be a custom created template using the Template Builder
Enter index number to select OR [Exit][Previous][Next]> next
< - Fusion Middleware Configuration Wizard ->
Application Template Selection:
Available Templates
| _Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
| _Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2]
| _WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3]
| _WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> next
Trang 17< - Fusion Middleware Configuration Wizard ->
Edit Domain Information:
| Name | Value |
_| | _|
1| *Name: | base_domain |
Enter value for "Name" OR [Exit][Previous][Next]> Test_Domain ## Type new domain name
< - Fusion Middleware Configuration Wizard ->
Edit Domain Information:
| Name | Value |
_| | _|
1| *Name: | Test_Domain |
Trang 18Use above value or select another option:
1 - Modify "Name"
2 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> next
< - Fusion Middleware Configuration Wizard ->
Select the target domain directory for this domain:
Trang 19Configure Administrator User Name and Password:
-Create a user to be assigned to the Administrator role This user is the
default administrator used to start development mode servers
| Name | Value |
_| _| _|
1| *Name: | weblogic |
2| *User password: | |
3| *Confirm user password: | |
4| Description: | This user is the default administrator |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
Enter option number to select OR [Exit][Previous][Next]> 2 ## Type 2 to set password for user weblogic
Trang 20< - Fusion Middleware Configuration Wizard ->
Configure Administrator User Name and Password:
-Create a user to be assigned to the Administrator role This user is the
default administrator used to start development mode servers
"*User password:" = []
Enter new *User password: OR [Exit][Reset][Accept]> weblogic123 ## type password for weblogic
< - Fusion Middleware Configuration Wizard ->
Configure Administrator User Name and Password:
-Create a user to be assigned to the Administrator role This user is the
default administrator used to start development mode servers
Trang 21| Name | Value |
_| _| _|
1| *Name: | weblogic |
2| *User password: | *********** |
3| *Confirm user password: | |
4| Description: | This user is the default administrator |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 3 ## Type 3 to confirm user password
< - Fusion Middleware Configuration Wizard ->
Configure Administrator User Name and Password:
Trang 22-Create a user to be assigned to the Administrator role This user is the
default administrator used to start development mode servers
"*Confirm user password:" = []
Enter new *Confirm user password: OR [Exit][Reset][Accept]> weblogic123 ## type password for weblogic to confirm
< - Fusion Middleware Configuration Wizard ->
Configure Administrator User Name and Password:
-Create a user to be assigned to the Administrator role This user is the
default administrator used to start development mode servers
| Name | Value |
_| _| _|
1| *Name: | weblogic |
2| *User password: | *********** |
Trang 233| *Confirm user password: | *********** |
4| Description: | This user is the default administrator |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> next
< - Fusion Middleware Configuration Wizard ->
Domain Mode Configuration:
-Enable Development or Production Mode for this domain
->1|Development Mode
Trang 242|Production Mode
Enter index number to select OR [Exit][Previous][Next]> 2 ## Type 2 to change to Production Mode
< - Fusion Middleware Configuration Wizard ->
< - Fusion Middleware Configuration Wizard ->
Select Optional Configuration:
Trang 25
1|Administration Server [ ]
2|Managed Servers, Clusters and Machines [ ]
3|RDBMS Security Store [ ]
Enter index number to select OR [Exit][Previous][Next]> 1 ## Type 1 to choose to setup Administration Server
< - Fusion Middleware Configuration Wizard ->
Select Optional Configuration:
1|Administration Server [x]
2|Managed Servers, Clusters and Machines [ ]
3|RDBMS Security Store [ ]
Enter index number to select OR [Exit][Previous][Next]> next
< - Fusion Middleware Configuration Wizard ->
Configure the Administration Server:
Trang 262 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
Enter option number to select OR [Exit][Previous][Next]> 2 ## Type 2 to modify IP of Admin Server, which is used to access Admin console website
Trang 27< - Fusion Middleware Configuration Wizard ->
Configure the Administration Server:
-Each WebLogic Server domain must have one Administration Server The
Administration Server is used to perform administrative tasks
Trang 28Enter value for "Listen address" OR [Exit][Previous][Next]> 192.168.0.100 ## Enter IP of Admin server
< - Fusion Middleware Configuration Wizard ->
Configure the Administration Server:
-Each WebLogic Server domain must have one Administration Server The
Administration Server is used to perform administrative tasks
2 - Modify "Listen address"
3 - Modify "Listen port"
Trang 294 - Modify "SSL enabled"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 3 ## Type 3 to modify Admin port (next if use default port (7001)
< - Fusion Middleware Configuration Wizard ->
Configure the Administration Server:
-Each WebLogic Server domain must have one Administration Server The
Administration Server is used to perform administrative tasks
Trang 30Enter value for "Listen port" OR [Exit][Previous][Next]> 8001 ## Enter new port for Admin console
< - Fusion Middleware Configuration Wizard ->
Configure the Administration Server:
-Each WebLogic Server domain must have one Administration Server The
Administration Server is used to perform administrative tasks
2 - Modify "Listen address"
3 - Modify "Listen port"
Trang 314 - Modify "SSL enabled"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> next
< - Fusion Middleware Configuration Wizard ->
Creating Domain
0% 25% 50% 75% 100%
[ -| -| -| -]
[***************************************************]
**** Domain Created Successfully! ****
4 Start domain and Node manager
Trang 32all.jar:/u02/weblogic/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u02/weblogic/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/u02/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/xqrl.jar
PATH=/u02/weblogic/Oracle/Middleware/wlserver_10.3/server/bin:/u02/weblogic/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/usr/jdk/instances/jdk1.6.0/jre/bin:/usr/jdk/instances/jdk1.6.0/bin:/usr/bin:
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user For *
Trang 33* server administration, use the WebLogic Server *
* console at http://hostname:port/console *
***************************************************
starting weblogic with Java version:
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)
Starting WLS with line:
/usr/jdk/instances/jdk1.6.0/bin/java -server -d64 -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer
-Djava.security.policy=/u02/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.ProductionModeEnabled=true -da
<May 31, 2017 9:31:01 AM ICT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to
FIPS186PRNG To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<May 31, 2017 9:31:01 AM ICT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.12-b01from Sun Microsystems Inc.>
<May 31, 2017 9:31:01 AM ICT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 >
<May 31, 2017 9:31:02 AM ICT> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:weblogic ## Enter username
Enter password to boot WebLogic server: ##Enter password of weblogic user
<May 31, 2017 9:31:11 AM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<May 31, 2017 9:31:11 AM ICT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
Trang 34/u02/weblogic/Oracle/Middleware/user_projects/domains/Test_Domain/servers/AdminServer/logs/AdminServer.log is opened All server side log events will
be written to this file.>
<May 31, 2017 9:31:13 AM ICT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<May 31, 2017 9:31:15 AM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<May 31, 2017 9:31:15 AM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<May 31, 2017 9:31:17 AM ICT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<May 31, 2017 9:31:18 AM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<May 31, 2017 9:31:18 AM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<May 31, 2017 9:31:18 AM ICT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.0.100:8001 for protocols iiop, t3, ldap, snmp, http.>
<May 31, 2017 9:31:18 AM ICT> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "Test_Domain" running in Production Mode>
<May 31, 2017 9:31:18 AM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<May 31, 2017 9:31:18 AM ICT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
## Press Control + C to stop
^C<May 31, 2017 9:31:19 AM ICT> <Notice> <WebLogicServer> <BEA-000388> <JVM called WLS shutdown hook The server will force shutdown now>
<May 31, 2017 9:31:19 AM ICT> <Alert> <WebLogicServer> <BEA-000396> <Server shutdown has been requested by <WLS Kernel>>
<May 31, 2017 9:31:19 AM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SUSPENDING>
<May 31, 2017 9:31:20 AM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<May 31, 2017 9:31:20 AM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
<May 31, 2017 9:31:20 AM ICT> <Notice> <Server> <BEA-002607> <Channel "Default" listening on 192.168.0.100:8001 was shutdown.>
Trang 351 Create boot file for background start of admin server:
bash-3.2$ cd /u02/weblogic/Oracle/Middleware/user_projects/domains/Test_Domain/servers/AdminServer/
bash-3.2$ mkdir security
bash-3.2$ cd security/
bash-3.2$ vi boot.properties ##Enter username and password into boot.properties file
"boot.properties" [New file]
Sending output to nohup.out
bash-3.2$ tail -100f nohup.out