WebLogic 域配置策略
- 格式:docx
- 大小:27.66 KB
- 文档页数:5
weblogic集群配置方法案例所属系统案例现象无案例平台环境AIX 5300-04-00AIX 5300-05-CSPWeblogic9.2mp2JDK1.5.0主机结构应用部署案例分析分析过程web应用部署在两台服务器上,客户没有硬件负载均衡器,但要求从唯一的ip和端口登录web应用,通过weblogic集群来实现。
案例解决方法一、在web1主机上执行config.sh脚本建立domain:elndomain11;建立管理server:AdmServer11;建立被管理server: Server11、Server12 (注意:配置被管理server 时把web2主机上的两个被管理server也配置上) 。
详细方法如下:config.shUnable 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<--------------------- BEA WebLogic 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 alist 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]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Application Template Selection:-------------------------------Available Templates|_____WebLogic Server (Required)xEnter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>1、设置管理帐号和口令<--------------------- 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. |Use above value or select another 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<--------------------- 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:" = []Enter new *User password: OR [Exit][Reset][Accept]> xxxxxxxx<--------------------- 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. |Use above value or select another option:1 - Modify "User name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 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:" = []Enter new *Confirm user password: OR [Exit][Reset][Accept]> xxxxxxxx<--------------------- 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. |Use above value or select another option:1 - Modify "User name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"5 - Discard ChangesEnter 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 Mode2|Production ModeEnter index number to select OR [Exit][Previous][Next]> 2<--------------------- BEA WebLogic Configuration Wizard ---------------------> Java SDK Selection:-------------------->1|IBM SDK 1.5.0 @ /usr/java5_642|Other Java SDKEnter index number to select OR [Exit][Previous][Next]> 1<--------------------- 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|NoEnter index number to select OR [Exit][Previous][Next]> 12、建立管理server<--------------------- 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 |Use above value or select another 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<--------------------- 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]> AdmServer11<--------------------- 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: | AdmServer11 |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"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 2<--------------------- 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: | AdmServer11 |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]> 134.32.9.61<--------------------- 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: | AdmServer11 |2| Listen address: | 134.32.9.61 |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 ChangesEnter option number to select OR [Exit][Previous][Next]> 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: | AdmServer11 |2| Listen address: | 134.32.9.61 |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Enter value for "Listen port" OR [Exit][Previous][Next]> 9001<--------------------- 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: | AdmServer11 |2| Listen address: | 134.32.9.61 |3| Listen port: | 9001 |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 ChangesEnter option number to select OR [Exit][Previous][Next]>3、配置被管理server<--------------------- 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 Serveris 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]> Server11<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port |SSL listen port |SSL enabled | _|_________|___________________|____________|________________|____________| 1->|Server11 |All Local Addresses| 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 2<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port |SSL listen port |SSL enabled |_|_________|___________________|____________|________________|____________| 1->|Server11 |All Local Addresses| 7001 | N/A | false |Modify "Listen address" OR [Exit][Previous][Next]> 134.32.9.61<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 7001 | N/A | false |Modify "Listen port" OR [Exit][Previous][Next]> 10011<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 10011 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 5<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 10011 | N/A | false |Use above value or select another option:1 - Add2 - Modify3 - Delete4 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 1<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 10011 | N/A | false |Enter name for a new OR [Exit][Previous][Next]> ProxyServer11<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port|SSL listen port|SSL enabled| _|_____________|__________________|___________|_______________|___________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11|All Local Addre...| 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 2<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port|SSL listen port|SSL enabled| _|_____________|__________________|___________|_______________|___________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11|All Local Addre...| 7001 | N/A | false |Modify "Listen address" OR [Exit][Previous][Next]> 134.32.9.61<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11 | 134.32.9.61 | 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11 | 134.32.9.61 | 7001 | N/A | false |Modify "Listen port" OR [Exit][Previous][Next]> 8090<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11 | 134.32.9.61 | 8090 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 5继续添加被管理server,最终web1主机上被管理server如下:<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2| Server12 | 134.32.9.61 | 10012 | N/A | false | 3|ProxyServer11 | 134.32.9.61 | 8090 | N/A | false | 4| Server21 | 134.32.9.138 | 10021 | N/A | false | 5->| Server22 | 134.32.9.138 | 10022 | N/A | false |Use above value or select another option:1 - Add2 - Modify3 - Delete4 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]>4、配置集群<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears 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]> elnclu1<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7001 | |Use above value or select another option:1 - Modify "Name"2 - Modify "Multicast address"3 - Modify "Multicast port"4 - Modify "Cluster address"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7001 | |Modify "Multicast port" OR [Exit][Previous][Next]> 7777<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7777 | |Use above value or select another option:1 - Modify "Name"2 - Modify "Multicast address"3 - Modify "Multicast port"4 - Modify "Cluster address"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 5<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7777 | |Use above value or select another option:1 - Add Cluster2 - Modify Cluster3 - Delete Cluster4 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]><--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.Cluster|_____elnclu1 [1]Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.*Select WebLogic Servers and assign them to a cluster. elnclu11|Server112|Server123|ProxyServer114|Server215|Server22Use above value or select another option:1 - Select2 - Select AllEnter option number to select OR [Exit][Discard][Accept]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.*Select WebLogic Servers and assign them to a cluster. elnclu11|Server112|Server123|ProxyServer114|Server215|Server22Select( Enter index numbers and/or index ranges separated by commas. For example, 1, 4-5 ) OR [Exit][Discard][Accept]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.*Select WebLogic Servers and assign them to a cluster. elnclu1->1|Server112|Server123|ProxyServer11。
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 configuration…2.下一步3.下一步,选自定义4.下一步,name=myserver,listen port:60015.下一步6.下一步,user=weblogic password=weblogic7.下一步8.下一步,选择生产模式aix机器要选用ibm提供的jdk,路径:/usr/java14 9.下一步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 -o udp_sendspace=327684.2集群服务配置:4.2.1管理服务器配置----代理服务器1.http://管理服务器:6001/console2.部署一个web应用proxy.warproxy.war中的web.xml的地址需要作相应修改,参与cluster的服务器都需要加上。
例如:<param-name>WebLogicCluster</param-name><param-value>localhost1:9001|localhost2:9001</param-value>4.2.2管理服务器配置----cluster1.http://管理服务器:6001/console2.新建一个clustername = jungleCluster(任意)clusteraddress =被管理服务器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.sh为startm.sh2.修改startm.sh文件,有五处要修改,下面有全部拷贝及其修改说明。
weblogic部署和优化Weblogic是目前主流J2EE服务器之一,支持符合J2EE标准的各类应用程序(Application),Weblogic支持分布式异构体系,能利用多种数据库平台并支持运行于多种操作系统。
weblogic部署一、weblogic部署前准备工作二、检查weblogic是否已经安装(weblogic 10.3 JDK1.6 )。
三、如没有安装联系ICT进行安装。
四、规划好(端口号、域路径、域名、console账号密码),建域的时候需用到这三个信息。
五、建weblogic域1)运行命令并建域bea/wlserver_10.3/common/bin/config.sh选择组件设置域的用户/密码选择运行模式, 建议使用production模式:修改端口设置域的存放路径:设置域名:在域的路径下新建boot.properties文件:补充:到其他域拷贝start.sh webkill.sh尝试用start.sh webkill.sh 进行域停启cd 域路径vi boot.propertiesmkdir app六、部署weblogic域1)修改config.xml部署A、数据库连接配置jdbc—在/home/spsdev/weblogic/acc/acc/WEB-INF/classes目录下修改jdbc.properteres、datasources.xmljndi—在/home/weblogic/acc/accweb1/config/jdbc目录下增加getpass.sh ***-jdbc.xml trans3des.sh transinput.sh配置。
上面的文件都可以在其他域的连接池进行拷贝,其中***-jdbc.xml文件要修改相应的数据库连接串和用户,用户密码可以通过执行transinput.sh修改用户密码。
B、config.xml配置部署下面是有JNDI连接池的配置方式,如是jdbc去掉相关连接池的配置。
目录Weblogic安装文档 (3)一.Weblogic7的安装步骤 (3)一)安装前准备 (3)1.建立weblogic用户 (3)2.安装JDK (3)3.上传安装jar包 (3)二)开始安装: (3)1.运行安装程序 (3)2.第二步 (3)3.第三步 (4)4.第四步 (4)5.第五步 (5)6.第六步 (5)7.第七步 (6)8.第八步 (6)9.第九步 (6)10.第十步 (7)11.第十一步 (7)二.Weblogic8的安装步骤 (8)一)安装前准备 (8)1.建立weblogic用户 (8)2.安装JDK (8)3.上传安装jar包 (8)二)开始安装 (9)1.运行安装程序 (9)2.第2步 (9)3.第3步 (9)4.第4步 (10)5.第5步 (10)6.第6步 (11)7.第7步 (11)8.第8步 (12)9.第9步 (12)10.第10步 (12)11.第11步 (13)三.Domain及Cluster的安装与配置 (14)一)A1domain的建立 (14)第1步 (14)第2步 (14)第3步 (16)第4步 (17)第5步 (18)第6步 (19)第7步 (19)第8步 (20)第9步 (21)第10步 (22)第11步 (23)第12步 (24)第13步,修改启动脚本 (25)二)Server的建立与Cluster的配置 (26)1)启动adminserver (26)2)通过控制台配置:cluster,machine,server (27)4)将65上建立的A1domain上传到其他机器 (31)5)建立个性化启动脚本 (31)Weblogic安装文档一.W eblogic7的安装步骤一)安装前准备1.建立weblogic用户2.安装JDKWeblogic7的jdk版本为:java version"1.3.1"Java(TM)2Runtime Environment,Standard Edition(build1.3.1)Classic VM(build1.3.1,J2RE1.3.1IBM AIX build ca131-20031105(JIT enabled:jitc)) 3.上传安装jar包上传pj_server704_generic.jar至/home目录二)开始安装:1.运行安装程序#/usr/java131/bin/java-jar pj_server704_generic.jar-mode=console2.第二步出现Welcome提示界面,输入“Next”3.第三步同意Bea License,输入“Yes”4.第四步选择Bea Weblogic安装位置,设置为/weblogic/bea5.第五步确认上一步输入的Bea Weblogic安装位置,输入“Next”6.第六步选择“Next”。
Weblogic 集群配置手册一.配之前的准备二.配置过程(一)创建新域。
输入命名“./config.sh”,选择下一步。
(二)选择安装域源。
选择安装“WebLogicServer”,选择下一步。
(三)配置管理员用户和密码。
输入Weblogic管理服务器(AdminServer)的用户和密码,本次上线使用的用户名(username)为weblogic,密码(password)为weblogic_cpds。
(四)配置域启动模式和JDK。
在开发模式和生成模式中选择生产模式,JDK选择JRockt SDK。
(五)选择是否自定义环境和服务设置。
在是否选择是否自定义环境和服务设置中选择“是”。
(六)配置管理服务器。
输入Administrator Sever的名称,监听地址,监听端口。
此次上线的Administrator Server的名称为AdminServer,监听地址为12.8.16.72,监听端口为7001。
(七)配置受管服务器输入ManagedSever的名称,监听地址,监听端口。
此次上线的ManagedServer的名称为cpds_server_1,监听地址为12.8.16.72,监听端口为7003。
输入ManagedSever的名称,监听地址,监听端口。
此次上线的ManagedServer的名称为cpds_server_2,监听地址为12.8.16.73,监听端口为7003。
(八)配置代理服务器(代理服务器也是一个受管理服务器)输入ManagedSever的名称,监听地址,监听端口。
此次上线的ManagedServer的名称为proxyserver,监听地址为12.8.16.72,监听端口为8080。
(九)配置集群信息。
添加集群,Cluster的名称为cpds_cluster,将受管理服务器添加到集群中。
(十)检查Weblogic域。
检查之步骤中所有的配置,如果没有问题可以进入下一步。
(十一)创建Weblogic域。
Weblogic 配置与站点部署+优化一,软件名称与版本:oepe-indigo-installer-12.1.1.0.1.0349-12.1.1-win32.exe软件下载地址:/nt/middleware/11g/wls/1211/oepe-indigo-installer-12.1.1.0.1.0349-12.1.1-win32.exe二,安装:直接双击oepe-indigo-installer-12.1.1.0.1.0349-12.1.1-win32.exe出现如下界面表示开始进入安装:出现如下界面后点击下一步:下图是选择安装路径默认路径为C:\Oracle\Middleware 我这将安装路径改为:D:\Oracle\Middleware 然后直接点下一步:出现如下界面后直接点击一下步既可:然后选择YES选择完成后出现如下图我选择的典型安装然后直接下一步既可;以下界面是安装目录然后点击下一步:出现如下界面后接着选择下一步:直接点击一下步:下图界面表示进入最后安装阶段:出现如下界面后表示安装完成:启动WEBLOGIC后出现如下图界面点击创建一个新域:选择创建新的Weblogic域然后选择默认(如下图界面所示)直接点击下一步:下图是域名称与域配置文件所在位置也可以自行更改路径我这里不做更改直接用默认的然后点击下一步;下图界面是对域登陆用户名与密码的设置选项默认名为weblogic 我这里不做更改直接用这个用户名密码按自己的需求设置既可密码设置完成后直接点击下一步:下图界面选对开发模式由于用的是最新版本12.C系列软件里已带有JDK 不用再做另外的安装直接点击下一步:(注:可以使用WebLogic安全服务提供的验证数字证书。
有这些证书,你开发的应用程序会在SSL保护的环境下运行WEBLOGIC实例会自动部署和更新位于domain_name/applications目录下的应用程序)出现下图界面后选择管理服务器因为我们这里就单台没有做群集所以只选择第一个选择完成后点击下一步既可:(注:受管理服务器,集群和计算机选项是多台Weblogic组建群集时使用。
WebLogic 域配置策略在本文的第一部分(第 8 期,卷 3 ,WLDJ )中,我曾向您详细介绍了可用于创建和配置域,以及经过评估的指南和模板选项的不同策略。
在本文中,我使用了像 WLShell 、 WebLogic Scripting Tool 、 Silent Scripts 和 Ant 这样的工具来配置域。
这些工具利用了简单的高级脚本语言。
注意:本文在很大程度上依赖于一些通用的步骤,比如第一部分中描述的域创建、数据库配置和检查域配置。
脚本语言有很多问题与脚本语言的结构和语义有关。
如何编写注释?如果有的话,什么是行分隔符?该语言支持哪些数据类型?该语言是否有变量和赋值?如何执行查询和导航?如何调用行为(即方法)?是否支持分支和循环?幸运的是,许多可选的脚本语言都可以用于域配置。
让我们看一看这些语言。
WLShell根据 WLShell 站点的说法,“ WLShell 是一种用于 WebLogic 的 shell 。
” WLShell 使用一种非常简单的脚本语言来提供对 JMX Mbean 的访问,并提供一种熟悉的文件和目录导航模型,来导航 MBean 。
WLShell 的安装非常简单。
下载正确的安装程序并执行之。
遵照安装程序的步骤,完成安装。
WLShell 脚本语言支持单行注释。
注释字符是散列符号( # )。
以 # 开始的一切内容都被注释掉了。
没有特殊的行结束符号。
回显命令是 print 或者 echo 。
WLShell 使用熟悉的目录和文件概念来导航 WebLogic Server 实例, MBean 对应于目录,而 MBean 的属性对应于文件。
因此,导航是通过像 cd 和 ls 这样的可识别命令来完成的。
用于创建一个 MBean 的命令是 md ,而用于删除一个对象的命令是 rd 。
例如,要创建一个名为 semJDBCConnectionPool 的连接池,可以执行下面的命令:md /JDBCConnectionP oo l/semJDBCConnectionP oo l如果名称包含正斜杠怎么办?可以通过使用一个另外的正斜杠对这个正斜杠进行转义。
Weblogci管理服务配置方法(第三稿)目录1概述 (3)1.1本文预期读者: (3)1.2本文作用: (3)1.3名词解释: (3)2基本测试环境 (4)3管理服务与被管服务基本配置 (4)3.1中间件安装 (4)3.2配置管理服务器 (4)3.3配置计算机 (4)3.4配置NodeManager (5)3.5配置本机受管服务 (6)3.6配置远程受管服务 (6)3.7配置“远程启动”选项卡 (6)3.7.1设置类路径 (6)3.7.2Java虚拟机内存设置 (7)3.8受管服务的启动和停止 (7)3.8.1控制台启动停止服务 (7)3.8.2Weblogic脚本启动受管理服务 (8)4久其CI部署相关配置 (8)4.1配置连接池 (8)4.2配置数据源 (8)4.3发布应用程序 (8)5其他 (8)5.1多台计算机安装weblogic注意事项 (8)5.2配置NodeManager常见问题 (9)5.3设置远程启动选项卡常见问题 (10)6后记 (10)1概述1.1本文预期读者:本文读者必须有一定weblogic使用经验,对weblogic管理体系有一定了解。
熟练掌握weblogic单domain配置方式。
文中只对安装使用管理服务需要用到的特殊设置步骤进行说明。
本文省略的地方请参考公司文档《久其CI3.0安装配置手册—Weblogic》。
1.2本文作用:场景一:对于某些IT内控比较严格的项目,项目组无法获得用户服务器密码。
如果有需要重新启动中间件服务时项目组会非常被动。
此时可以使用管理服务器来启动和停止受管理服务器上的应用服务。
场景二在硬件资源比较充足的情况下我们可以在多台服务器上启动中间件来支撑我们的应用。
此时使用管理服务可以统一部署升级应用,控制、监控各个服务的运行情况。
场景三:在单服务器32位操作系统环境下java内存最大只能使用2G。
为了充分利用服务器资源我们可以启动多个服务支撑应用。
WebLogic 域配置策略在本文的第一部分(第 8 期,卷 3 ,WLDJ )中,我曾向您详细介绍了可用于创建和配置域,以及经过评估的指南和模板选项的不同策略。
在本文中,我使用了像 WLShell 、 WebLogic Scripting Tool 、 Silent Scripts 和 Ant 这样的工具来配置域。
这些工具利用了简单的高级脚本语言。
注意:本文在很大程度上依赖于一些通用的步骤,比如第一部分中描述的域创建、数据库配置和检查域配置。
脚本语言有很多问题与脚本语言的结构和语义有关。
如何编写注释?如果有的话,什么是行分隔符?该语言支持哪些数据类型?该语言是否有变量和赋值?如何执行查询和导航?如何调用行为(即方法)?是否支持分支和循环?幸运的是,许多可选的脚本语言都可以用于域配置。
让我们看一看这些语言。
WLShell根据 WLShell 站点的说法,“ WLShell 是一种用于 WebLogic 的 shell 。
” WLShell 使用一种非常简单的脚本语言来提供对 JMX Mbean 的访问,并提供一种熟悉的文件和目录导航模型,来导航 MBean 。
WLShell 的安装非常简单。
下载正确的安装程序并执行之。
遵照安装程序的步骤,完成安装。
WLShell 脚本语言支持单行注释。
注释字符是散列符号( # )。
以 # 开始的一切内容都被注释掉了。
没有特殊的行结束符号。
回显命令是 print 或者 echo 。
WLShell 使用熟悉的目录和文件概念来导航 WebLogic Server 实例, MBean 对应于目录,而 MBean 的属性对应于文件。
因此,导航是通过像 cd 和 ls 这样的可识别命令来完成的。
用于创建一个 MBean 的命令是 md ,而用于删除一个对象的命令是 rd 。
例如,要创建一个名为 semJDBCConnectionPool 的连接池,可以执行下面的命令:md /JDBCConnectionP oo l/semJDBCConnectionP oo l如果名称包含正斜杠怎么办?可以通过使用一个另外的正斜杠对这个正斜杠进行转义。
例如,要创建一个名为 jdbc/semJDBCDataSource 的数据源,可以执行下面的命令:md /JDBCTxDataSource/jdbc//semJDBCDataSource设置一个对象的变量属性可以使用 set 命令来完成。
要设置一个 boolean 类型的变量,需要调用 set variable-name true-or-false 。
例如,要把 StdoutDebugEnabled 变量设置为 true ,可以调用下面的命令:set StdoutDebugEnabled true要设置一个 integer 类型的变量,需要调用 set variable-name integer-value 。
例如,要把StdoutSeverityLevel 变量的值设置为 64 ,可以调用下面的命令:set StdoutSeverityLevel 64要设置一个 string 类型的变量,需要调用 set variable-name "string-value." 。
例如,要把 URL 设置为 jdbc:pointbase:server://localhost:9093/workshop ,可以调用下面的命令:set URL "jdbc:pointbase:server://localhost:9093/workshop"设置原始类型的变量很容易,但是如何设置 java.util.Properties 类型的变量呢?要设置java.util.Properties 类型的变量,需要使用特殊的语法。
调用 set variable-name (java.util.Properties) "name=value ,各个 name=value 对之间由分号隔开。
例如,要设置连接池的属性,可以调用下面的命令:set Properties (java.util.Properties)"user=weblogic;databaseName=jdbc:pointbase:server://localhost:9093/semdb"至此,我已分析了如何设置 boolean 、 int 、 String 和 Properties 类型的变量。
那么如何设置另一种 MBean 类型的变量呢?只要调用 set variable-name path-to-the-mbean 即可。
例如,要设置 JMS JDBC 存储器的连接池属性,可以调用下面的命令:set ConnectionP oo l /JDBCConnectionP oo l/semJDBCConnectionP oo l通过执行 ls 命令, WLShell 不仅列出了可以获取或设置的属性,而且还列出了可以调用的操作。
如何执行一项操作呢?需要使用一个叫做 invoke 的特殊命令。
Invoke 命令的语法是: invoke method-name parameter-list-separated-by-space 。
例如,要把连接池部署到服务器,可以调用下面的命令:invoke addTarget /Server/在上面的例子中,方法名称是 addTarget 。
方法带有一个参数,即服务器的 MBean 。
使用 WLShel l 部署应用程序是一件棘手的事情。
获得一个到 /Deployer-Runtime/DeployerRuntime 实例的引用,并创建一个实例来保存部署的数据。
把数据与服务器关联起来,然后激活应用程序。
可以以脚本模式和交互模式来使用 WLShell 。
在交互模式中,创建了一个 WLShell 会话,并将其连接到一个正在运行的 WebLogic Server 实例。
通过在 WLShell 会话中调用命令可以修改 WebLogic Server 实例。
要以交互模式运行 WLShell ,可以执行下面的命令:%wlsh在脚本模式中,需要创建并执行 WLShell 命令的一个脚本。
可以一次性创建该脚本,随后执行任意多次,以便建立类似的域。
用于执行脚本的语法是 wlsh -f script-file-name 。
要使用脚本创建示例域,可以执行下面的命令:%wlsh -f sem_domain_wlshell.txt在上面的例子中, sem_domain_wlshell.txt 文件包含 WLShell 语句以配置域。
在执行 WLShell 脚本之前,配置一个空的 WebLogic Workshop 域,具体方法是按照“域配置”部分中的步骤,使用 SEMDomain-WLShell 作为配置名称。
为了运行 WLShell ,只要检查 wlshell/bin 目录在 PATH 环境变量中是否可用即可。
现在执行脚本:wlsh -f sem_domain_wlshell.txt检查配置的正确性,具体方法是按照检查域配置部分中所说的那样运行测试。
WLShell 支持通过 c2w 命令,把现有的 config.xml 文件转换为 WLShell 脚本和命令。
WLShell 支持离线模式工作,并支持连接到 config.xml 而不是正在运行的服务器上。
然而,这个实现并非功能完备。
例如,在离线模式中创建连接池会导致出现一条“ feature not implemented ”(意思是此项功能尚未实现)的消息。
WebLogic Scripting T oo l (WLST)WLST 使用 Jython 作为其脚本语言。
Jython 站点声称,“ Jy thon 是面向对象的动态高级语言 Python 的一种实现, 100% 使用 Java 编写,并且与 Java 平台无缝集成。
”不用进行重复性的劳动, WLST 在脚本基础架构方面做了一个十分明智的决定。
WLST 利用了 Jython 功能强大的脚本语言。
下面给出安装指导:∙下载 WLST (wlsScripting.zip) 文件并解压缩之(比如 c:WLST) 。
wlsScripting.zip 文件包含wlst_doc.pdf 文件。
wlst_doc.pdf 文件包含了有关 WLST 的所有详细信息,比如安装、配置和执行。
请查阅参考资料部分,以便获得更多有关下载和安装 WLST 的详细指导。
下面给出 WLST 的配置指导:∙在 CLASSPATH 中设置 weblogic.jar ,具体方法是执行 setWLSEnv (例如, %WLS_HOME%serverinsetWLSEnv.cmd )。
∙在 CLASSPATH 中设置 wlst.jar 。
∙在 CLASSPATH 中设置 jython.jar 。
∙通过执行 java weblogic.WLST 检查 WLST 是否正在工作。
这会以交互模式执行 WLST 。
参考 wlst_doc.pdf 文件,以获得有关配置 WLST 的详细指导。
可以用脚本模式和交互模式使用 WLST 。
在交互模式中,需要以离线模式创建一个 WLST 会话。
在这种模式中, WLST 并未连接到一个正在运行的 WebLogic Server 实例。
一旦 WLST 连接到一个正在运行的WebLogic Server 实例,便可以通过在 WLST 会话中调用命令来修改 WebLogic Server 实例。
在脚本模式中,需要创建并执行 WLST 命令的一个脚本。
就像在交互模式中一样,脚本包含 Jython 语句。
脚本文件是一个Jython 文件。
可以一次性创建脚本,然后执行任意多次,以建立类似的域。
要以交互模式调用 WLST ,可以调用下面的命令:java weblogic.WLST要以脚本模式调用 WLST ,需要传入脚本的名称。
例如:java weblogic.WLST sem_domain_wlst.py暂时不要执行上面的命令。
在本节的结尾处,您将进行另外的安装,然后执行 WLST 脚本。
下面是关于 Python (和 Jython )的一些基本的注意事项。
指定语句符号的结尾 (;) 是可选的,除非在一行上指定了多条语句。
注释字符是散列符号 (#) 。
在一行上,所有位于 # 号之后的内容都会被认为是注释的一部分。
回显命令是 print 。
字符串可以在单引号 (') 或双引号 (") 中进行传递。
WLST 使用类似的目录和文件概念来导航 MBean 。
因此,导航是通过像 cd 和 ls 这样的可识别命令来完成的。