2024年1月16日发(作者:)
MOIA-Weblogic9 安装与部署
安装要求
WEB应用服务器可以采用高档PC,PC server或者小型机。建议如下配置:
CPU:P4 2.4G以上
内存:1G以上
硬盘:10G以上
以上配置为基本配置,各分行可根据本行操作用户数量及访问情况适当增加硬件配置;
操作系统:WINDOWS 2000,WINDOWS XP,WINDOWS 2003,Linux7.3以上,AIX,HP-UX,SOLARIS。
应用服务器:Weblogic7以上(含),Websphere4以上(含),Tomcat4.1以上(含),建议采用Weblogic7.0以上(含)版本;JDK建议采用1.4以上(含)。
Weblogic安装
安装前准备
本文以128.32.96.190为例,创建weblogic用户组及用户。
groupadd weblogic
useradd -g weblogic weblogic
passwd weblogic(修改weblogic密码)
安装
本文以WebLogic9.0为例,安装在128.32.96.190机器上,以weblogic用户登录到本平台。
把Weblogic Server 9.0 for HP-UX L11,V2 itamium 版本的安装程序
server900_拷贝到HP-UNIX环境下,执行java -jar server900_
-mode=console
出现如下的安装界面。
weblogic@rx2620-3:[/home/mw/weblogic]java -jar server900_ -mode=console
Extracting 0%....................................................................................................100%
出现如下欢迎安装界面
<------------------------ BEA Installer - BEA Products ----------------------->
Welcome:
--------
This installer will guide you through the installation of BEA Products. 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]>
输入Next,或者直接按回车键
<------------------------ BEA Installer - BEA Products ----------------------->
BEA Systems License Agreement:
------------------------------
BEA SYSTEMS, INC. SOFTWARE LICENSE AGREEMENT
USE OF SOFTWARE ORDERED FROM BEA SYSTEMS, INC. (??BEA??) IS PROVIDED
ONLY UNDER
LICENSE FROM BEA. PLEASE READ THE FOLLOWING LICENSE CAREFULLY AND
INDICATE YOUR ACCEPTANCE BY CLICKING THE ACCEPTANCE BOX. CERTAIN
CAPITALIZED TERMS ARE
DEFINED IN SECTION 11.
1. LICENSE TERMS
a. Evaluation Use. The terms of this Section 1(a) are applicable to you if you have
registered as an Evaluation customer. Subject to the terms of this
Agreement, BEA grants to you a non-exclusive, non-transferable, license to use
the Software solely for Evaluation Use. Third party software products or
modules supplied by BEA, if any, may be used solely with the Software, and may
be subject to your acceptance of terms and conditions provided by such third
parties. This license begins upon downloading and ends if and when terminated
by BEA in accordance with this Agreement. When the license terminates you must
stop using the Software. All rights not specifically granted to you herein are retained by
BEA.
b. Development Use. The terms of this Section 1(b) are applicable to you if you have
registered as a Development Use customer. Subject to the terms of this
Select Option:
1 - Yes, I agree with the terms of the license
2 - No, I do not agree with the terms of the license
Enter option number to select OR [Down][Exit][Previous]> 1
安装协议,同意输入1, 回车
<------------------------ BEA Installer - BEA Products ----------------------->
Choose BEA Home Directory:
--------------------------
"BEA Home" = [Use default "/home/mw/weblogic/bea"]
Input BEA Home OR [Exit][Previous][Next]>
安装目录,采用默认,直接回车
<------------------------ BEA Installer - BEA Products ----------------------->
Choose Install Type:
--------------------
Select the type of installation you wish to perform.
->1|Complete
| Install the following software components and examples: WebLogic
|Server
2|Custom
| Choose software components to install and perform optional configuration.
Enter index number to select OR [Exit][Previous][Next]> 2
选择安装模式,1—默认,2—自定义,在此选择2自定义安装
<------------------------ BEA Installer - BEA Products ----------------------->
Choose Components to install:
-----------------------------
Release 9.0.0.0
|_____WebLogic Server [1] x
|_____Server [1.1] x
|_____Server Examples [1.2] x
|_____Web Server Plug-Ins [1.3]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>
1.3
选择安装组件,如果要与APACHE集成部署,需要选择1.3,在此输入1.3回车
<------------------------ BEA Installer - BEA Products ----------------------->
Choose Components to install:
-----------------------------
Release 9.0.0.0
|_____WebLogic Server [1] x
|_____Server [1.1] x
|_____Server Examples [1.2] x
|_____Web Server Plug-Ins [1.3] x
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>
回车
<------------------------ BEA Installer - BEA Products ----------------------->
Choose Product Directory:
-------------------------
"Product Installation Directory" = [Use default
"/home/mw/weblogic/bea/weblogic90"]
Input Product Installation Directory OR [Exit][Previous][Next]>
选择产品安装目录,默认是bea/weblogic90,若不需要更改,直接按回车键。
<------------------------ BEA Installer - BEA Products ----------------------->
Installing files..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
Performing
安装文件
<------------------------ BEA Installer - BEA Products ----------------------->
Installation Complete
Congratulations! BEA Products has been successfully
/home/mw/weblogic/bea/weblogic90.
Press [Enter] to continue or type [Exit]>
installed to
安装完成,输入回车键
<------------------------ BEA Installer - BEA Products ----------------------->
Clean up process in progress ...
安装完成
添加应用部署(域)
把目录切换到bea/weblogic90/common/bin目录下,输入
weblogic@rx2620-3:[/home/mw/weblogic/bea/weblogic90/common/bin]
Unable to instantiate GUI, defaulting to console mode.
出现欢迎界面,如下所示:
<--------------------- BEA WebLogic 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
| Extend an existing WebLogic domain. Use this option to add
|applications and services, or to override existing database access (JDBC)
|and messaging (JMS) settings. You can also incorporate additional
|functionality in your domain, for example, by including AquaLogic Service
|Bus.
Enter index number to select OR [Exit][Next]> 1
选择创建一个新的域
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]>
回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Application Template Selection:
-------------------------------
Available Templates
|_____WebLogic Server (Required)x
|_____Apache Beehive [2]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>
默认,回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Administrator Username 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| *User name: | weblogic |
2| *User password: | |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |
Select Option:
1 - Modify "User name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
Enter option number to select OR [Exit][Previous][Next]> 2
创建一个管理员,用户名默认为:weblogic(可更改),需要更改登录密码,在此输入2回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Administrator Username 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:" = []
Input *User password: OR [Exit][Reset][Accept]> weblogic
此例用户密码为:weblogic
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Administrator Username 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| *User name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |
Select Option:
1 - Modify "User 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
需要重复输入用户密码,输入3
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Administrator Username 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:" = []
Input *Confirm user password: OR [Exit][Reset][Accept]> weblogic
重复输入用户密码weblogic,回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Administrator Username 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| *User name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | ******** |
4| Description: | This user is the default administrator. |
Select Option:
1 - Modify "User 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]>
返回创建管理员界面,输入回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.
->1|Development Mode
2|Production Mode
Enter index number to select OR [Exit][Previous][Next]> 2
创建域的模式,1-开发模式,2-产品模式,在此输入2回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Java SDK Selection:
-------------------
->1|HP SDK 1.5.0.03 @ /opt/java1.5
2|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]>
选择Java SDK,如果安装在安腾HP的UNIX小型机上,此处请选择UNIX上自带的Java虚拟机,最好不要用WebLogic自带虚拟机
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Choose Configuration Option:
----------------------------
*Do you want to modify any of the preconfigured settings or defaults in
*your template?
*
*To keep the default or template settings, and proceed directly to name and *create
your domain, leave No selected.
1|Yes
->2|No
Enter index number to select OR [Exit][Previous][Next]> 1
不选用默认模式,此处输入1回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which 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 |
Select Option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
Enter option number to select OR [Exit][Previous][Next]> 1
配置管理服务器,输入1更改名称
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which 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 "Name" OR [Exit][Previous][Next]> moiaServer
此例输入moiaServer
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | moiaServer |
2| Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Select 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]> 3
不需更改监听地址,需要更改监听端口,在此处输入3
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | moiaServer |
2| Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Enter value for "Listen port" OR [Exit][Previous][Next]> 8000
本例输入的端口为8000
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | moiaServer |
2| Listen address: | All Local Addresses |
3| Listen port: | 8008 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Select 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]>
回到创建管理服务器界面
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Managed Servers:
--------------------------
Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.
| Name* | Listen address | Listen port | SSL listen port | SSL enabled |
_|_______|________________|_____________|_________________|_____________|
Enter name for a new OR [Exit][Previous][Next]>
配置管理服务器,此后的配置可使用Weblogic的控制台,所以在此直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Clusters:
-------------------
Add or delete configuration information for clusters. A cluster contains
multiple WebLogic Server instances that run simultaneously and work
together to provide increased scalability and reliability. A cluster
appears to be a single WebLogic Server instance to clients.
| Name* | Multicast address | Multicast port | Cluster address |
_|_______|___________________|________________|_________________|
Enter name for a new Cluster OR [Exit][Previous][Next]>
回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Machines:
-------------------
Add or delete configuration information for machines. A machine is the
logical representation of the system that hosts one or more WebLogic Server
instances. The Administration Server and Node Manager application use the
machine definition to start remote servers.
| Name* | Node manager listen address | Node manager listen port |
_|_______|_____________________________|__________________________|
Enter name for a new Machine OR [Exit][Previous][Next]>
回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Unix Machines:
------------------------
Add or delete configuration information for machines. A machine is the
logical representation of the system that hosts one or more WebLogic Server
instances. The Administration Server and Node Manager application use the
machine definition to start remote servers.
| Name |
_|______|
Enter name for a new Unix Machine OR [Exit][Previous][Next]>
回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Select the target domain directory for this domain:
---------------------------------------------------
"Target Location" = [Use default
"/home/mw/weblogic/bea/user_projects/domains"]
Input Target Location OR [Exit][Previous][Next]>
更改域安装目录,在此使用默认模式,直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Edit Domain Information:
------------------------
| Name | Value |
_|________|_____________|
1| *Name: | base_domain |
Enter value for "Name" OR [Exit][Previous][Next]> moiadomain
在Configuration Names处输入domain名字,在此输入moiadomain
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Edit Domain Information:
------------------------
| Name | Value |
_|________|____________|
1| *Name: | moiadomain |
Select Option:
1 - Modify "Name"
2 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]>
回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****
恭喜您,域创建成功!
启动与停止
启动
把目录切换到bea/user_projects/domains/moiadomain下,输入启动服务,如:
weblogic@rx2620-3:[/home/mw/weblogic/bea/user_projects/domains/moiadomain ]StartWebLogi
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=128m
.
WLS Start Mode=Development
.
CLASSPATH=:/home/mw/weblogic/bea/patch_weblogic901/profiles/default/sys_manifest_classpath/weblogic_:/opt/java1.5/lib/:/home/mw/weblogic/bea/weblogic90/server/lib/weblogic_:/home/mw/weblogic/bea/weblogic90/server/lib/:::/home/mw/weblogic/bea/weblogic90/common/eval/pointbase/lib/:/home/mw/weblogic/bea/weblogic90/common/eval/pointbase/lib/:/home/mw/weblogic/bea/weblogic90/server/lib/:/home/mw/weblogic/bea/weblogic90/server/lib/::/home/mw/weblogic/bea/weblogic90/integration/lib/:
.
PATH=/home/mw/weblogic/bea/weblogic90/server/bin:/opt/java1.5/jre/bin:/opt/java1.5/bin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/ipf/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/sec_mgmt/bastille/bin:/opt/resmon/bin:/opt/gnome/bin:/opt/perf/bin:/usr/bin/X11:/usr/contrib/kwdb/bin:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/graphics/common/bin:/opt/prm/bin:/opt/sec_mgmt/spc/bin:/opt/hpsmh/bin:/opt/upgrade/bin:/opt/wlm/bin:/opt/gwlm/bin:/usr/contrib/bin/X11:/opt/aCC/bin:/opt/caliper/bin:/opt/langtools/bin:.:/opt/java1.5/bin
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at [hostname]:[port]/console *
***************************************************
<2007-6-20 上午09时39分58秒 GMT+08:00> boot identity from user.> Enter username to boot WebLogic server:weblogic Enter password to boot WebLogic server: weblogic starting weblogic with Java version: java version "1.5.0.03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.03-_13_feb_2006_16_39) Java HotSpot(TM) Server VM (build 1.5.0.03 jinteg:02.13.06-21:25 IA64, mixed mode) …… <2007-6-20 上午09时41分58秒GMT> "Default[1]" is now listening on 127.0.0.1:8000 for protocols iiop, t3, ldap, http.> <2007-6-20 上午09时41分58秒GMT> "Default" is now listening on 128.32.96.189:8000 for protocols iiop, t3, ldap, http.> <2007-6-20 上午09时41分58秒 GMT> Development Mode> <2007-6-20 上午09时41分59秒 GMT> <2007-6-20 上午09时41分59秒 GMT> 输入在配置moiaServer时注册的管理员用户名和密码,启动moiaServer,监控启动显示信息,确保其正常启动。 停止 将目录切换到bea/user_projects/domains/moiadomain/bin目录,输入即可停止WebLogic服务。例: weblogic@rx2620-3:[/home/mw/weblogic/bea/user_projects/domains/moiadomain/bin] Stopping Initializing WebLogic Scripting Tool (WLST) ... Welcome to WebLogic Server Administration Scripting Shell Type help() for help on available commands Connecting to weblogic server instance running at t3://localhost:8000 as username weblogic ... Successfully connected to Admin Server 'moiaServer' that belongs to domain 'moia_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. WLST lost connection to the WebLogic Server that you were connected to, this may happen if the server was shutdown or partitioned. You will have to re-connect to the server once the server is available. Disconnected from weblogic server: moiaServer Problem invoking WLST - Traceback (innermost last): File " File " WLSTException: 'Error occured while performing disconnect : Unexpected Error: ption: The client has been closed. Use dumpStack() to view the full stacktrace' Done weblogic@rx2620-2:[ /home/mw/weblogic/bea/user_projects/domains/moiadomain/bin] 数据安装 安装Oracle数据库 在提供的Oracle数据库安装包,执行moia_完成数据库的创建,执行moia_完成数据库的导入。 安装Informix数据库 在提供的Informix数据库安装包,执行moia_完成数据库的创建,执行moia_完成数据库的导入。 WEB应用发布 更改启动脚本 将管理系统WEB端程序MoiaWebApp拷贝到bea/user_projects/domains/moiadomain/bin目录下,更改文件。 在CLASSPATH="${SAVE_CLASSPATH}"之上添加 MOIA_APP=${DOMAIN_HOME}/moiaWebApp MOIA_LIB=${MOIA_APP}/WEB-INF/lib 在将CLASSPATH="${SAVE_CLASSPATH}"更改为 CLASSPATH="${JAVA_HOME}/jre/lib/:${WL_HOME}/server/lib/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/US_export_:${MOIA_LIB}/:${MOIA_LIB}/local_:${MOIA_LIB}/:${MOIA_LIB}/sunjce_:${MOIA_LIB}/jce1_2_:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/crypto_:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB }/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_LIB}/:${MOIA_APP}/WEB-INF/classes/:${SAVE_CLASSPATH}" 保存并退出。 应用发布 在启动服务之后,在IE浏览器地址栏输入:128.32.96.190:8000/console,进入如下界面: 在此输入moiaServer时注册的管理员用户名和密码,进入控制台 添加Data Sources 从左边目录树中找到JDBC,单击下面的Data Sources,出现如下界面 单击左上角的“Lock&Edit“ 单击“New”,出现如下界面 输入Name及JNDI Name,数据库选择为Oracle(本文以Oracle为例),选择相应类型,“Next”。 “Next” 本文数据库以128.32.96.188上的数据库为例,输入相应数据,单击“Next”。 在此我们选测试一下数据输入是否正确,单击“Test Configuration”,如果正确出现以下界面,如果输入参数错误,请重新配置参数信息。 成功后,单击“Next”,出现如下界面。 到此Data Source添加完成,我们单击左上角的“Activate Changes”,激活。 添加应用部署 单击左边目录树上的“Deployments” 在出现的界面上单击“Install” 选择应用的目录,本例中把产品放于bea/user_projects/domains/moiadomain,选择该目 录下的MoiaWebApp,单击“Next”。 选择“Install this deployment as an application”,单击“Next”。 输入名称,本文以moiaWebApp为例,单击“Next”。 到此单击“Finish”完成应用部署,停止服务。 修改文件 现在完成最后一步安装,打开WEB应用,即moiaWebApp目录,需修改其中的配置文档。 1.修改afc_ties 文件位置:MoiaWebappWEB-INFclasses下 =t3://128.32.96.190:8000 =weblogic rd=weblogic y=ialContextFactory urce=moia =Oracle =10 transform=YES = = = ck= 即访问地址 即moiaServer管理员 rd即moiaServer管理员密码 urce即Weblogic JDBC Data Source的JNDI名 是数据库类型 page. size 既历史数据管理系统中的分页信息每页显示的页数 2.修改ties 文件位置:MoiaWebappWEB-INFclasses下 messageIP=128.32.96.188 messageport=12100 timeout=600000 filemessageIP=128.32.96.188 filemessageport=12020 filetimeout=600000 receiveFilePath=tmp/ uploadFilePath=tmp/ MACKey=ABCDEF00 messageIP即交易服务器地址 messageport即交易服务器端口 timeout即超出时间 filemessageIP即文件交易服务器地址 filemessageport即文件交易服务器端口 filetimeout即超出时间 receiveFilePath即文件上传的目录 uploadFilePath即文件下载的目录 MACKey即MAC值 3.修改ties 文件位置:MoiaWebappWEB-INF下 jndiName为Weblogic JDBC Data Source的JNDI名,t为数据库类型所调用的类。 4.修改.profile 文件位置:在WebLogic用户登录成功目录下 添加语言包,如: LANG=zh_18030 export LANG 安装测试 测试安装是否成功:启动服务,打开浏览器,在地址栏输入128.32.96.190:8000,出现NVSP管理系统的登录界面。 选择登录方式,输入用户名及密码,单击“登录”即可。本文例: 登录方式:直接登录平台 用户名:admin 用户密码:123456 进入NVSP管理系统,出现如上界面配置成功。 后台启动命令: nohup & tail -f


发布评论