1、4.1.3系统环境设置no -p -o udp_sendspace=327684.2集群服务配置:4.2.1管理服务器配置-代理服务器1.http:/管理服务器:6001/console2.部署一个web应用proxy.warproxy.war中的web.xml的地址需要作相应修改,参与cluster的服务器都需要加上。例如: WebLogicClusterparam-valuelocalhost1:9001|localhost2:90014.2.2管理服务器配置-cluster2.新建一个clustername = jungleCluster(任意)clusteraddress =被管理服务
2、器1:9001,被管理服务器2:9001multicast Address = 237.0.0.1multicast Port = 6000(不能和6001-管理服务器和9001-被管理服务器重复)4.2.3管理服务器配置-managed server2.新建一个server属于上面所建的clustercluster = myClustername = MyServer1listen address = 当前物理机器ipport = 60014.2.4被管理服务器配置1.从已建domain目录中,拷贝startManagedWebLogic.sh为startm.sh2.修改startm.sh文
3、件,有五处要修改,下面有全部拷贝及其修改说明。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 共五处要修改,修改完成后用如下命令启动:nohup ./startm.sh!/bin/sh
4、# *# 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 startWLS takes are:# WLS_USER -
5、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 end of the JAVA_VM and MEM_ARGS
6、)# 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.html).# set up WL_HOME, the root
7、 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 default to false.PRODUCTION_MODE=#
8、 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 to start up. ADMIN_URL=http:/10.140.
9、129.140:# 旧: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# prompt.WLS_USER=WLS_USER=weblogicWLS_PW=WLS
10、_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.For instance: # JAVA_OPTIONS=-Dweblogic.attribute=value -Djava.attribute=valueusage()ech
11、o Need to set SERVER_NAME and ADMIN_URL environment variables or specifythem in command line:echo Usage: ./startManagedWebLogic.sh SERVER_NAME ADMIN_URLfor example:./startManagedWebLogic.sh managedserver1 http:/localhost:7001exit 1# Check for variables SERVER_NAME and ADMIN_URL# SERVER_NAME and ADMI
12、N_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 ; usagefielif $# = 1 ;SERVER_NAME=$1elif $# = 2 ;ADMIN_URL=$2else# Start WebLogic server# Reset number of open file descripto
13、rs in the current process# This function is defined in commEnv.shresetFdCLASSPATH=$WEBLOGIC_CLASSPATH$CLASSPATHSEP$POINTBASE_CLASSPATH$CLASSPATHSEP$JAVA_HOME/jre/lib/rt.jar$CLASSPATHSEP$WL_HOME/server/lib/webservices.jar$CLASSPATHSEP$CLASSPATHexport CLASSPATHecho CLASSPATH=$CLASSPATHechoecho PATH=$P
14、ATH*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:/:/consoleMEM_ARGS=-Xms256m -Xmx512m -Xrs$JAVA_HOME/bin/java $JAVA_VM $MEM_ARGS $JAVA_OPTIONS /-Dweblogic.Name=$SERVER_NAME-Dweblogic.manage
15、ment.username=$WLS_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.k
16、ernel.DefaultThread 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如:/10.158.212.45:7001/console Username:weblogicPassword:
17、weblogic4.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 = (ADDRE
18、SS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.158.212.49)(PORT=1521)(CONNECT_DATA =(SERVICE_NAME = ciswf)oracle.jdbc.OracleDrivertruethin_dlyxthin_owf_mgrthin_wf_amber第五步,创建部署完成重复上面操作,配置所有的连接池连接二、数据源配置:配置数据源第一步,Configure a new JDBC Data Source第二步,按下面配置配置name、JNDI nameJNDIName Pool Name Row Prefetc
19、h Enabled Enable Two Phase Commit Stream Chunk Size Row Prefetch Size ds_amberindigo/jdbc/defaultfalse25648ds_dlyxindigo/jdbc/dlyxds_owf_mgrindigo/jdbc/wf_oracleds_wf_amberindigo/jdbc/wf_Indigo第三步,选择pool name,continue第四步,create重复上面的操作,将全部数据源配置完成4.3.6数据库连接其他配置页面中点击选中Test Reserved Connections在Test Tab
20、le 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完成配置4.3.8证书设置第一步、修改本地文件ca.bat中代理服务器地址改为服务器地址,放在bea/w
21、eblogic81/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: JKS Private Key Alias: longshinekeypassword最后apply完成4.4部署应用服务在下图左侧树中点application,点击Deploy a new Application.部署新应用服务在下图中选择应用程序路径,应用程序放在bea_home/点击target application部署应用选择server,continue部署完成
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1