目录

  • JDK 安装
  • 环境变量配置
  • WebLogic Server 安装
  • WebLogic Server 配置域创建
  • WebLogic Server 节点管理器配置
    • 管理服务器启动
    • 节点管理器注册
    • 节点管理器开机启动配置
    • 使用WLST启动管理服务器
    • 环境说明

环境说明

1) 服务器环境配置
序号 项目 版本 备注
01 操作系统 CentOS 6.6 (64位)
02 JDK JRockit-jdk1.6.0_31-R28.2.3-4.1.0-linux-x64
03 Weblogic Server 11g(10.3.6) 通用版本
2) WebLogic Server 环境配置
序号 服务器类型 服务器名称 服务器地址 服务器端口号 备注
01 管理服务器 AdminServer 172.16.5.123 7001 用于管理 WebLogic Server 环境
02 受管理服务器 WebServer 172.16.5.123 80 用于部署应用
3) 服务器目录说明
序号 目录 描述
01 /u01/softwares 安装软件包存放目录
02 /u01/jdk jdk安装目录
03 /u01/weblogic WebLogic Server 安装根目录
04 /u01/weblogic/wlserver_10.3/common/nodemanager 节点管理器工作目录
05 /u01/weblogic/user_projects/domains/base_domain 配置域工作目录

修改hosts文件

1.JDK 安装

[root@localhost ~]#cd /u01/softwares
[root@localhost /u01/softwares]#chmod +x jrockit-jdk1.6.0_31-R28.2.3-4.1.0-linux-x64.bin
默认安装jdk在启动 WebLogic Server 时非常慢,需要修改jdk配置,具体如下:
将文件 $JAVA_HOME/jre/lib/security/java.security 的69行修改为:securerandom.source=file:/dev/./urandom

2.环境变量配置

[root@localhost ~]#vim /etc/profile
#在文件末尾增加如下行
JAVA_HOME=/u01/jdk
CLASSPATH=$JAVA_HOME:/lib/dt.jar:$JAVA_HOME:/lib/tools.jar
export PATH JAVA_HOME CLASSPATH

##使环境变量生效
[root@localhost ~]#source /etc/profile

##测试配置是否成功
[root@localhost ~]#echo $JAVA_HOME
/u01/jdk

[root@localhost ~]#java -version
java version "1.6.0_31"
Java(TM) JRockit(R)..........
.............................................

3.WebLogic Server 安装

d[root@localhost ~]# java -jar /u01/softwares/wls1036_generic.jar
WebLogic Server 安装
ddUnable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................................100%
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Welcome:
--------
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".

Enter [Exit][Next]>

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Middleware Home Directory:
---------------------------------
    "Middleware Home" = [Enter new value or use default
"/root/Oracle/Middleware"]

#设置WebLogic的安装目录
Enter new Middleware Home OR [Exit][Previous][Next]> /u01/weblogic
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Middleware Home Directory:
---------------------------------
    "Middleware Home" = [/u01/weblogic]
Use above value or select another option:
    1 - Enter new Middleware Home
    2 - Change to default [/root/Oracle/Middleware]

Enter option number to select OR [Exit][Previous][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:[]
   2|Support Password:[]
   3|Receive Security Update:[Yes]

#取消接收安全更新通知
Enter index number to select OR [Exit][Previous][Next]> 3
<-------------------- 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
<-------------------- 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
<-------------------- 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:[]
   2|Support Password:[]
   3|Receive Security Update:[No]
Enter index number to select OR [Exit][Previous][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:[]
   2|Support Password:[]
   3|Receive Security Update:[No]
Enter index number to select OR [Exit][Previous][Next]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Install Type:
--------------------
Select the type of installation you wish to perform.
 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - 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
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Products and Components:
-------------------------------
    Release 10.3.6.0
    |_____WebLogic Server [1] x
    |    |_____Core Application Server [1.1] x
    |    |_____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
    |    |_____Server Examples [1.11]
    |    |_____Evaluation Database [1.12] x
    |_____Oracle Coherence [2] x
         |_____Coherence Product Files [2.1] x
         |_____Coherence Examples [2.2]
    *Estimated size of installation: 690.2 MB

#取消不需要安装的组件
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 2
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Products and Components:
-------------------------------
    Release 10.3.6.0
    |_____WebLogic Server [1] x
    |    |_____Core Application Server [1.1] x
    |    |_____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
    |    |_____Server Examples [1.11]
    |    |_____Evaluation Database [1.12] x
    |_____Oracle Coherence [2]
         |_____Coherence Product Files [2.1]
         |_____Coherence Examples [2.2]
    *Estimated size of installation: 678.7 MB

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
JDK 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|/u01/jdk[x]
   *Estimated size of installation:  678.7 MB

Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Product Installation Directories:
----------------------------------------
Middleware Home Directory: [/u01/weblogic]
Product Installation Directories:

    "WebLogic Server" = [Enter new value or use default
"/u01/weblogic/wlserver_10.3"]

Enter new WebLogic Server OR [Exit][Previous][Next]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
The following Products and JDKs will be installed:
--------------------------------------------------
    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
         |_____Core Application Server
         |_____Administration Console
         |_____Configuration Wizard and Upgrade Framework
         |_____Web 2.0 HTTP Pub-Sub Server
         |_____WebLogic SCA
         |_____WebLogic JDBC Drivers
         |_____Third Party JDBC Drivers
         |_____WebLogic Server Clients
         |_____WebLogic Web Server Plugins
         |_____UDDI and Xquery Support
         |_____Evaluation Database
    *Estimated size of installation: 678.8 MB

Enter [Exit][Previous][Next]>
Apr 7, 2015 11:25:48 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Installing files..
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

Performing String Substitutions...
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Configuring OCM...
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

Creating Domains...
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Installation Complete

Congratulations! Installation is complete.

Press [Enter] to continue or type [Exit]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Clean up process in progress ...
#安装完成

4.WebLogic Server 配置域创建

[root@localhost ~]# /u01/weblogic/wlserver_10.3/common/bin/config.sh
创建配置域
Unable to instantiate GUI, defaulting to console mode.
<------------------- 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.
 ->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]> 
<------------------- 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.
   2|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]>
<------------------- 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]>
<------------------- Fusion Middleware Configuration Wizard ------------------>
Edit Domain Information:
------------------------
    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | base_domain |
#设置配置域的名称,这里选择默认,可根据自己的需要设置
Enter value for "Name" OR [Exit][Previous][Next]>
<------------------- Fusion Middleware Configuration Wizard ------------------>
Select the target domain directory for this domain:
---------------------------------------------------
    "Target Location" = [Enter new value or use default
"/u01/weblogic/user_projects/domains"]

#选择配置域的工作目录,这里选择默认,可根据自己的需要选择不同目录
Enter new Target Location OR [Exit][Previous][Next]>
<------------------- 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:     |                                         |
   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"

#设置weblogic用户的密码
Enter option number to select OR [Exit][Previous][Next]> 2
<------------------- 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]> P@ssw0rd
<------------------- 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:     |                ********                 |
   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
<------------------- 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.
    "*Confirm user password:" = []

Enter new *Confirm user password: OR [Exit][Reset][Accept]> P@ssw0rd
<------------------- 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:     |                ********                 |
   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]>
<------------------- Fusion Middleware Configuration Wizard ------------------>
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.
 ->1|Development Mode
   2|Production Mode

#选择weblogic运行的模式,在生产环境中请选择“Production Mode”
Enter index number to select OR [Exit][Previous][Next]> 2
<------------------- Fusion Middleware Configuration Wizard ------------------>
Java SDK Selection:
-------------------
 ->1|JRockit SDK 1.6.0_31 @ /u01/jdk
   2|Other Java SDK

#选择使用的jdk
Enter index number to select OR [Exit][Previous][Next]>
<------------------- Fusion Middleware Configuration Wizard ------------------>
Select Optional Configuration:
------------------------------
   1|Administration Server [ ]
   2|Managed Servers, Clusters and Machines [ ]
   3|RDBMS Security Store [ ]

#选择需要安装的角色,选择1、2
Enter index number to select OR [Exit][Previous][Next]> 1
<------------------- 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]> 2
<------------------- Fusion Middleware Configuration Wizard ------------------>
Select Optional Configuration:
------------------------------
   1|Administration Server [x]
   2|Managed Servers, Clusters and Machines [x]
   3|RDBMS Security Store [ ]
Enter index number to select OR [Exit][Previous][Next]>
<------------------- 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.
    |       Name       |        Value        |
   _|__________________|_____________________|
   1|      *Name:      |     AdminServer     |
   2| *Listen address: | All Local Addresses |
   3|   Listen port:   |        7001         |
   4| SSL listen port: |         N/A         |
   5|   SSL enabled:   |        false        |
Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"

#设置AdminServer的监听地址
Enter option number to select OR [Exit][Previous][Next]> 2
<------------------- 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.
    |       Name       |        Value        |
   _|__________________|_____________________|
   1|      *Name:      |     AdminServer     |
   2| *Listen address: | All Local Addresses |
   3|   Listen port:   |        7001         |
   4| SSL listen port: |         N/A         |
   5|   SSL enabled:   |        false        |

Enter value for "Listen address" OR [Exit][Previous][Next]> 172.16.5.123
<------------------- 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.
    |       Name       |    Value     |
   _|__________________|______________|
   1|      *Name:      | AdminServer  |
   2| *Listen address: | 172.16.5.123 |
   3|   Listen port:   |     7001     |
   4| SSL listen port: |     N/A      |
   5|   SSL enabled:   |    false     |
Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"
    5 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]>

<------------------- Fusion Middleware Configuration Wizard ------------------>
Configure Managed Servers:
--------------------------
.......................
.......................
#此部分省略了配置计算机的配置过程,此过程可以在管理控制台进行配置
Enter name for a new Unix Machine OR [Exit][Previous][Next]>
<------------------- Fusion Middleware Configuration Wizard ------------------>
Creating Domain...
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****

5.WebLogic Server 节点管理器配置

5.1启动管理服务器
[root@localhost ~]# cd /u01/weblogic/user_projects/domains/base_domain
[root@localhost base_domain]# ll
total 36
drwxr-x--- 2 root root 4096 Apr  7 11:30 autodeploy
drwxr-x--- 5 root root 4096 Apr  7 11:41 bin
drwxr-x--- 9 root root 4096 Apr  7 11:41 config
drwxr-x--- 2 root root 4096 Apr  7 11:30 console-ext
-rw-r----- 1 root root  462 Apr  7 11:41 fileRealm.properties
drwxr-x--- 2 root root 4096 Apr  7 11:41 init-info
drwxr-x--- 2 root root 4096 Apr  7 11:30 lib
drwxr-x--- 2 root root 4096 Apr  7 11:41 security
-rwxr-x--- 1 root root  263 Apr  7 11:41 startWebLogic.sh
[root@localhost base_domain]# ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms512m -Xmx512m
.
WLS Start Mode=Production
....................................................
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Oracle JRockit(R) (build R28.2.3-13-149708-1.6.0_31-20120327-1523-linux-x86_64, compiled mode)
Starting WLS with line:
.............
<Apr 7, 2015 11:45:27 AM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Oracle JRockit(R) Version R28.2.3-13-149708-1.6.0_31-20120327-1523-linux-x86_64 from Oracle Corporation>
<Apr 7, 2015 11:45:28 AM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 >
<Apr 7, 2015 11:45:29 AM CST> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
#输入 WebLogic 用户名
Enter username to boot WebLogic server:weblogic
#输入 WebLogic 用户密码
Enter password to boot WebLogic server:
<Apr 7, 2015 11:45:36 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
.....................
<Apr 7, 2015 11:45:46 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Apr 7, 2015 11:45:47 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Apr 7, 2015 11:45:47 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.16.5.123:7001 for protocols iiop, t3, ldap, snmp, http.>
<Apr 7, 2015 11:45:47 AM CST> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Production Mode>
<Apr 7, 2015 11:45:47 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Apr 7, 2015 11:45:47 AM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
#出现“RUNNING mode”表示 AdminServer 启动完成
增加启动验证文件
[root@localhost ~]# mkdir /u01/weblogic/user_projects/domains/base_domain/servers/AdminServer/security
[root@localhost ~]# echo "username=weblogic" /u01/weblogic/user_projects/domains/base_domain/servers/AdminServer/security/boot.properties
[root@localhost ~]# echo "password=Passw0rd" /u01/weblogic/user_projects/domains/base_domain/servers/AdminServer/security/boot.properties
相关环境准备
登录管理控制台:http://172.16.5.123:7001/console
1)锁定并编辑-->base_domain-->安全-->高级-->节点管理器用户名:nodemgr,口令:Passw0rd–>保存–>激活配置
2)锁定并编辑-->base_domain-->环境-->服务器-->AdminServer-->SSL-->高级-->主机名验证:无-->保存-->激活并配置
5.2节点管理器注册
#使用WLST脚本工具连接管理服务器进行注册
[root@localhost ~]# /u01/weblgoic/wlserver_10.3/common/bin/wlst.sh

CLASSPATH=/u01/weblogic/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/jdk/jrockit-jdk1.6.0_31-R28.2.3-4.1.0/lib/tools.jar:/u01/weblogic/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/weblogic/wlserver_10.3/server/lib/weblogic.jar:/u01/weblogic/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/weblogic/wlserver_10.3/server/lib/webservices.jar:/u01/weblogic/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/weblogic/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/u01/weblogic/utils/config/10.3/config-launch.jar::/u01/weblogic/wlserver_10.3/common/derby/lib/derbynet.jar:/u01/weblogic/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/weblogic/wlserver_10.3/common/derby/lib/derbytools.jar::
Initializing WebLogic Scripting Tool (WLST) ...
Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands

#使用下面命令格式连接管理服务器
wls:/offline> connect('weblogic','Passw0rd','t3://172.16.5.123:7001')
Connecting to t3://172.16.5.123:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'base_domain'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

#注册节点管理器
wls:/base_domain/serverConfig> nmEnroll('/u01/weblogic/user_projects/domains/base_domain','/u01/weblogic/wlserver_10.3/common/nodemanager')
Enrolling this machine with the domain directory at /u01/weblogic/user_projects/domains/base_domain ...
Successfully enrolled this machine with the domain directory at /u01/weblogic/user_projects/domains/base_domain.
5.3节点管理器开机启动配置
#创建启动脚本
[root@localhost ~]# vim /u01/weblogic/wlserver_10.3/server/bin/startnmgr.sh
#!/bin/bash
##set nodemanager path
NMGR_HOME=/u01/weblogic/wlserver_10.3/server/bin/
cd $NMGR_HOME
nohup ./startNodeManager.sh >/dev/null 2>&1 &

#添加开机启动项
[root@localhost ~]# echo "sh /u01/weblogic/wlserver_10.3/server/bin/startnmgr.sh">>/etc/rc.local
5.4使用WLST通过节点管理器启动启动管理服务器
[root@localhost ~]# /u01/weblgoic/wlserver_10.3/common/bin/wlst.sh
CLASSPATH=/u01/weblogic/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/jdk/jrockit-jdk1.6.0_31-R28.2.3-4.1.0/lib/tools.jar:/u01/weblogic/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/weblogic/wlserver_10.3/server/lib/weblogic.jar:/u01/weblogic/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/weblogic/wlserver_10.3/server/lib/webservices.jar:/u01/weblogic/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/weblogic/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/u01/weblogic/utils/config/10.3/config-launch.jar::/u01/weblogic/wlserver_10.3/common/derby/lib/derbynet.jar:/u01/weblogic/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/weblogic/wlserver_10.3/common/derby/lib/derbytools.jar::
Initializing WebLogic Scripting Tool (WLST) ...
Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands

#使用下面命令格式连接节点管理器
wls:/offline> nmConnect('nodemgr','Passw0rd','172.16.5.123','5556','base_domain')
Connecting to Node Manager ...
<Apr 7, 2015 1:25:26 PM CST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Apr 7, 2015 1:25:26 PM CST> <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>
....................
....................
<Apr 7, 2015 1:25:26 PM CST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
Successfully Connected to Node Manager.

#使用nmStart()命令启动管理服务器
wls:/nm/base_domain>  nmStart('AdminServer')       
Starting server AdminServer ...
Successfully started server AdminServer ...
当出现“Successfully started server AdminServer ...”表示管理服务器启动完成,下面可以通过http://172.16.5.123:7001/console访问管理控制台。

results matching ""

    No results matching ""