1、WEBLOGIC部署文档 WEBLOGIC部署文档 1.安装weblogic2.安装xmanager3.创建域3.1.在aix unix下创建域先通过xmanager登录系统,用户root口令root在terminal下执行cd /bea/weblogic81/common/bin./ config.sh建新域的操作同下面的windows的操作3.2在windows下创建域1.启动开始菜单的quickstart,执行create a new domain configuration2下一步3下一步,选自定义4下一步,name=myserver,listen port:60015下一步6下一步,
2、user=weblogic password=weblogic7下一步8下一步,选择生产模式aix机器要选用ibm提供的jdk,路径:/usr/java149下一步10创建,完成4.配置服务4.1服务配置:4.1.1启动口令配置文件:在管理服务器的主目录中,例如:/bea/user_projects/domains/mydomain,创建文件boot.properties加入两行username=weblogicpassword=weblogic4.1.2启动命令配置在启动命令startWebLogic.sh最后加上-DINDIGO_HOME=/bea/app4.1.3系统环境设置no -p
3、-o udp_sendspace=327684.2集群服务配置:4.2.1管理服务器配置-代理服务器1.http:/管理服务器:6001/console2.部署一个web应用proxy.warproxy.war中的web.xml的地址需要作相应修改,参与cluster的服务器都需要加上。例如: WebLogicCluster localhost1:9001|localhost2:90014.2.2管理服务器配置-cluster1.http:/管理服务器:6001/console2.新建一个clustername = jungleCluster(任意)clusteraddress =被管理服务器
4、1:9001,被管理服务器2:9001multicast Address = 237.0.0.1multicast Port = 6000(不能和6001-管理服务器和9001-被管理服务器重复)4.2.3管理服务器配置-managed server1.http:/管理服务器:6001/console2.新建一个server属于上面所建的clustercluster = myClustername = MyServer1listen address = 当前物理机器ipport = 60014.2.4被管理服务器配置1.从已建domain目录中,拷贝startManagedWebLogic.s
5、h为startm.sh2.修改startm.sh文件,有五处要修改,下面有全部拷贝及其修改说明。3.用nohup ./startm.sh&启动4.如果要在别的物理服务器新建被管理服务器,在该服务器上安装bea,bea_home选择同样的目录5.从已建domain目录拷贝setEnv.sh,startm.sh,serializedsystemini.dat到该被管理服务器同样目录中6.修改startm.sh文件中SERVER_NAME=cluster中配置的服务器名7.chmod 777 *8.用nohup ./starm.sh&启动/startm.sh 共五处要修改,修改完成后用如下命令启动:
6、nohup ./startm.sh&/#!/bin/sh# *# This script is used to start a managed WebLogic Server for the domain in the # current working directory.This script reads in the SERVER_NAME and # ADMIN_URL as positional parameters, sets the SERVER_NAME variable, then # starts the server.# Other variables that star
7、tWLS takes are:# WLS_USER - cleartext user for server startup# WLS_PW - cleartext password for server startup# PRODUCTION_MODE - Set to true for production mode servers, false for # development mode# JAVA_OPTIONS - Java command-line options for running the server. (These# will be tagged on to the en
8、d of the JAVA_VM and MEM_ARGS)# JAVA_VM - The java arg specifying the VM to run.(i.e. -server, # -hotspot, etc.)# MEM_ARGS - The variable to override the standard memory arguments# passed to java# For additional information, refer to the WebLogic Server Administration Guide# (/ConsoleHelp/startstop.
9、html).# *# set up WL_HOME, the root directory of your WebLogic installationWL_HOME=/bea/weblogic81# set up common environment# Set Production Mode.When this is set to true, the server starts up in# production mode.When set to false, the server starts up in development# mode.If it is not set, it will
10、 default to false.PRODUCTION_MODE=# Set JAVA_VENDOR to java virtual machine you want to run on server side.JAVA_VENDOR=IBM# Set JAVA_HOME to java virtual machine you want to run on server side.JAVA_HOME=/usr/java14. $WL_HOME/common/bin/commEnv.sh# Set SERVER_NAME to the name of the server you wish t
11、o start up. ADMIN_URL=http:/10.140.129.140:6001# 旧:SERVER_NAME=# 新:SERVER_NAME=server45SERVER_NAME=server141# Set WLS_USER equal to your system username and WLS_PW equal# to your system password for no username and password prompt # during server startup.Both are required to bypass the startup# prom
12、pt.# 旧:WLS_USER=# 新:WLS_USER=weblogicWLS_USER=weblogic# 旧:WLS_PW=# 新:WLS_PW=weblogicWLS_PW=weblogic# Set JAVA_VM to java virtual machine you want to run on server side.# JAVA_VM=# Set JAVA_OPTIONS to the java flags you want to pass to the vm.If there # are more than one, include quotes around them.F
13、or instance: # JAVA_OPTIONS=-Dweblogic.attribute=value -Djava.attribute=valueusage()echo Need to set SERVER_NAME and ADMIN_URL environment variables or specifyecho them in command line:echo Usage: ./startManagedWebLogic.sh SERVER_NAME ADMIN_URLecho for example:echo ./startManagedWebLogic.sh manageds
14、erver1 http:/localhost:7001exit 1# Check for variables SERVER_NAME and ADMIN_URL# SERVER_NAME and ADMIN_URL must by specified before starting a managed server,# detailed information can be found at /adminguide/startstop.html.if $# = 0 ; thenif x$SERVER_NAME = x -o x$ADMIN_URL = x ; then usagefielif
15、$# = 1 ; thenSERVER_NAME=$1if x$ADMIN_URL = x ; then usagefielif $# = 2 ; thenSERVER_NAME=$1ADMIN_URL=$2else usagefi# Start WebLogic server# Reset number of open file descriptors in the current process# This function is defined in commEnv.shresetFdCLASSPATH=$WEBLOGIC_CLASSPATH$CLASSPATHSEP$POINTBASE
16、_CLASSPATH$CLASSPATHSEP$JAVA_HOME/jre/lib/rt.jar$CLASSPATHSEP$WL_HOME/server/lib/webservices.jar$CLASSPATHSEP$CLASSPATHexport CLASSPATH# Start WebLogic serverecho CLASSPATH=$CLASSPATHechoecho PATH=$PATHechoecho *echo *To start WebLogic Server, use a username and *echo *password assigned to an admin-
17、level user.For *echo *server administration, use the WebLogic Server *echo *console at http:/:/console *echo *# 旧:# 新:MEM_ARGS=-Xms256m -Xmx512m -XrsMEM_ARGS=-Xms256m -Xmx512m -Xrs$JAVA_HOME/bin/java $JAVA_VM $MEM_ARGS $JAVA_OPTIONS /-Dweblogic.Name=$SERVER_NAME /-Dweblogic.management.username=$WLS_
18、USER /-Dweblogic.management.password=$WLS_PW /-Dweblogic.management.server=$ADMIN_URL /-Djava.security.policy=$WL_HOME/server/lib/weblogic.policy / weblogic.Server 新加-Djava.awt.headless=true4.2.5weblogic配置和管理1管理服务器的queue=被管理服务器queue的和+1配置页面:beadomain Servers admin Execute Queue weblogic.kernel.Defau
19、ltThread Count:2启动命令startWebLogic.sh需配置-DINDIGO_HOME=/bea/app4.3weblogic配置:4.3.1启动服务:一aix unix操作系统:通过xmanager 登录系统,在terminal下执行cd/bea/user_projects/domains/mydomain/./startWebLogic.sh二windows的操作在开始菜单启动服务4.3.2打开控制台http:/地址:端口/console如:http:/10.158.212.45:7001/console Username:weblogicPassword: weblog
20、ic4.3.3Listen Address配置:配置如图所示页面中Listen Address:为应用服务器地址4.3.4SSL Listen Port配置:4.3.5数据库连接配置:一、连接池配置:在 配置连接池第一步,Configure a new JDBC Connection Pool.第二步,按图所示选择oracle,按continue第三步,按下面配置要求配置数据库第四步,可根据数据库实际配置修改url配置Name URL Driver Classname Deployed thin_amberjdbc:oracle:thin:(DESCRIPTION = (ADDRESS_LIS
21、T = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.158.212.49)(PORT=1521)(CONNECT_DATA =(SERVICE_NAME = ciswf)oracle.jdbc.OracleDrivertrue thin_dlyxjdbc:oracle:thin:(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.158.212.49)(PORT=1521)(CONNECT_DATA =(SERVICE_NAME = ciswf)oracle.jdbc.Orac
22、leDrivertrue thin_owf_mgrjdbc:oracle:thin:(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.158.212.49)(PORT=1521)(CONNECT_DATA =(SERVICE_NAME = ciswf)oracle.jdbc.OracleDrivertrue thin_wf_amberjdbc:oracle:thin:(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.15
23、8.212.49)(PORT=1521)(CONNECT_DATA =(SERVICE_NAME = ciswf)oracle.jdbc.OracleDrivertrue 第五步,创建部署完成重复上面操作,配置所有的连接池连接二、数据源配置:在 配置数据源第一步,Configure a new JDBC Data Source第二步,按下面配置配置name、JNDI nameName JNDIName Pool Name Row Prefetch Enabled Enable Two Phase Commit Stream Chunk Size Row Prefetch Size Deploy
24、ed ds_amberindigo/jdbc/defaultthin_amberfalsefalse25648true ds_dlyxindigo/jdbc/dlyxthin_dlyxfalsefalse25648true ds_owf_mgrindigo/jdbc/wf_oraclethin_owf_mgrfalsefalse25648true ds_wf_amberindigo/jdbc/wf_Indigothin_wf_amberfalsefalse25648true 第三步,选择pool name,continue第四步,create重复上面的操作,将全部数据源配置完成4.3.6数据库
25、连接其他配置在 页面中点击选中Test Reserved Connections在Test Table Name:输入SQL SELECT 1 FROM DUAL在Init SQL:输入SQL ALTER SESSION SET NLS_LANGUAGE= SIMPLIFIED CHINESE重复上面的操作,对每一个连接池连接都做配置4.3.7JMS配置在 配置JMS服务第一步,Configure a new JMS Connection Factory.第二步,配置JNDI name为weblogic.examples.jms.TopicConnectionFactory,然后create完
26、成配置4.3.8证书设置第一步、修改本地文件ca.bat中代理服务器地址改为服务器地址,放在bea/weblogic81/server/lib/(genSSL) 并执行sh ca.bat copy myKeyStore.jks到/bea/weblogic81/server/lib/第二步、在下面页面上点击change第三步、选择Keystores: ,continue第四步、按照下面配置输入相应设置 Custom Identity Keystore: /bea/weblogic81/server/lib/myKeyStore.jks Type: JKS Passphrase: password Custom Trust Keystore: /bea/weblogic81/server/lib/myKeyStore.jks Type: JKS Passphrase: password Private Key Alias: longshinekey Passphrase: password最后apply完成4.4部署应用服务在下图左侧树中点application,点击Deploy a new Application.部署新应用服务在下图中选择应用程序路径,应用程序放在bea_home/点击target application部署应用选择server,continue部署完成
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1