Linu_环境下搭建WebLogic1036集群服务十步曲.docx_第1页
Linu_环境下搭建WebLogic1036集群服务十步曲.docx_第2页
Linu_环境下搭建WebLogic1036集群服务十步曲.docx_第3页
Linu_环境下搭建WebLogic1036集群服务十步曲.docx_第4页
Linu_环境下搭建WebLogic1036集群服务十步曲.docx_第5页
已阅读5页,还剩42页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Linux环境下搭建WebLogic 10.3.6集群服务十步曲(console模式)版本说明版本日期作者说明V1.02017-03-26王林财初稿概要描述WebLogicwls1036_generic.jarJDKjrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.binDataBase11gOSLinux Redhat 6.5 64位1.安装前准备篇31.1.主机资源规划31.2.安装介质准备32.平台基础配置篇(双节点)32.1.hosts文件配置32.2.ulimit参数配置32.3.Tcp默认连接超时时间配置33.用户及权限配置篇(双节点)43.1.新增weblogic组及用户43.2.修改目录所有者权限44.节点1安装篇44.1.安装jrockit jdk44.1.1.修改文件执行权限44.1.2.执行安装文件44.1.3.设置jrockit-jdk安装目录44.1.4.确认安装54.1.5.验证是否已安装成功54.2.安装Weblogic54.2.1.执行安装文件54.2.2.设置中间件安装主目录54.2.3.设置是否接收安全更新(不接收)64.2.4.选择安装内容(只安装Weblogic Server)64.2.5.选择JDK84.2.6.确认WebLogic安装目录84.2.7.验证是否已安装成功105.节点1配置篇115.1.新建应用domain域115.1.1.执行weblogic配置向导文件115.1.2.选择新建或者扩展域(选择新建)115.1.3.选择域控件或者模版(选择控件)115.1.4.选择应用模版(默认选择Basic WebLogic Server Domain)125.1.5.编辑域名称信息125.1.6.配置管理员用户及密码125.1.7.配置域模式(选择2生产模式)135.1.8.选择JDK(选择JRockit JDK)135.1.9.配置管理服务器135.1.10.创建域155.1.11.查看域创建日志,检查域是否创建成功165.1.12.启动域,验证管理服务器是否配置成功165.1.13.IE登录域控制台175.2.环境参数配置175.2.1.Java.security安全策略文件配置185.2.2.域内存参数配置185.2.3.域JAVA_OPTIONS参数配置195.3.管理服务器(AdminServer)配置195.3.1.密钥文件配置195.3.2.启动脚本配置205.4.计算机(Machine)配置205.5.应用集群(Cluster)配置215.6.节点管理器(nodemanager)配置225.6.1.配置startNodeManager.sh启动脚本225.6.2.设置管理服务器主机名验证为“无”235.7.被管理服务器(ManagedServer)配置235.7.1.服务器配置235.7.2.密钥文件配置285.7.3.启动脚本配置286.节点2安装配置篇286.1.拷贝节点1的jrockit jdk安装及配置286.2.拷贝节点1的weblogic安装及配置286.3.克隆节点1的被管理服务器配置286.4.移除节点2上的管理服务器启动脚本306.5.移除节点2上的服务启动日志信息306.6.修改节点2被管理服务器启动脚本306.7.配置节点2被管理服务器密钥文件317.部署篇317.1.数据源配置317.1.1.新建数据源317.1.2.数据源参数调优357.2.应用部署377.2.1.上传应用程序文件377.2.2.部署应用378.服务启动/查看状态/停止篇418.1.启动服务418.1.1.启动管理服务器418.1.2.启动节点服务器428.1.3.启动被管理服务器438.2.查看/停止服务448.2.1.查看/停止管理服务器448.2.2.查看/停止节点服务器448.2.3.查看/停止被管理服务器449.安全防护篇459.1.Java反序列化安全漏洞修复4510.FAQ篇4610.1.在weblogic控制台启动Server1时,报 Multicast socket receive error461. 安装前准备篇1.1. 主机资源规划主机IP主机名称管理服务器及端口被管理服务器及端口1po9kcfap901AdminServer/7001Server1/80802po9kcfap902Server2/8080双主机,配置为集群服务,其中管理服务器配置在第一个节点上,节点管理器使用默认的名称及端口。1.2. 安装介质准备JDK,使用jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.binWeblogic,使用wls1036_generic.jar1.3. 安装路径规划JDK安装路径,/app/jrockit-jdkWeblogic安装路径,/app/Oracle/Middleware域安装路径,/app/Oracle/Middleware/user_projects/domains/base_domain2. 平台基础配置篇(双节点)-以下三点,均通过root用户配置2.1. hosts文件配置双节点主机hosts文件,都加上两台主机名称与IP对应关系weblogicpo9kcfap901 $ cat /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain4:1 localhost localhost.localdomain localhost6 localhost6.localdomain61 po9kcfap902 po9kcfap902weblogicpo9kcfap901 $2.2. ulimit参数配置-在limits.conf文件中增加nofile、nproc参数配置vi /etc/security/limits.conf* soft nofile 102400* hard nofile 102400* soft nproc 102400* hard nproc 102400-注释90-nproc.conf文件里面*用户nproc参数配置vi /etc/security/limits.d/90-nproc.conf#* soft nproc 1024002.3. Tcp默认连接超时时间配置rootpo9kcfap901 # sysctl -w net.ipv4.tcp_fin_timeout=30net.ipv4.tcp_fin_timeout = 30rootpo9kcfap901 #3. 用户及权限配置篇(双节点)3.1. 新增weblogic组及用户rootpo9kcfap901 # groupadd weblogicrootpo9kcfap901 # useradd -g weblogic weblogic3.2. 修改目录所有者权限rootpo9kcfap901 /# chown -R weblogic:weblogic /approotpo9kcfap901 /# chown -R weblogic:weblogic /msscpmis_app4. 节点1安装篇4.1. 安装jrockit jdk4.1.1. 修改文件执行权限chmod a+x /home/weblogic/software/jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.bin4.1.2. 执行安装文件weblogicpo9kcfap901 software$ ./jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.binExtracting 0%.100%Unable to instantiate GUI, defaulting to console mode.Welcome:-This installer will guide you through the installation of Oracle JRockit JDK R28.2.7 for Java SE 6 with JRMC 4.1. 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 ExitNext4.1.3. 设置jrockit-jdk安装目录Choose Product Installation Directory:- Product Installation Directory = /app/jrockit-jdkUse above value or select another option: 1 - Enter new Product Installation Directory 2 - Change to default /home/weblogic/jrockit-jdk1.6.0_45-R28.2.7-4.1.0Enter option number to select OR ExitPreviousNext4.1.4. 确认安装Installing JRE to /app/jrockit-jdk/jre.0% 25% 50% 75% 100%-|-|-|-*Installation CompleteCongratulations! Oracle JRockit JDK R28.2.7 for Java SE 6 with JRMC 4.1 has been successfully installed to /app/jrockit-jdk.Press Enter to continue or type Exit Clean up process in progress .weblogicpo9kcfap901 software$4.1.5. 验证是否已安装成功weblogicpo9kcfap901 bin$ /app/jrockit-jdk/bin/java -versionjava version 1.6.0_45Java(TM) SE Runtime Environment (build 1.6.0_45-b06)Oracle JRockit(R) (build R28.2.7-7-155314-1.6.0_45-20130329-0641-linux-x86_64, compiled mode)weblogicpo9kcfap901 bin$4.2. 安装Weblogic4.2.1. 执行安装文件weblogicpo9kcfap901 software$ java -jar wls1036_generic.jar4.2.2. 设置中间件安装主目录Choose Middleware Home Directory:- Middleware Home = /app/Oracle/MiddlewareUse above value or select another option: 1 - Enter new Middleware Home 2 - Change to default /home/weblogic/Oracle/MiddlewareEnter option number to select OR ExitPreviousNext Next4.2.3. 设置是否接收安全更新(不接收)-注:输入3,回车;再输入No,回车;最后再输入Yes,确认不接收,回车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:YesEnter index number to select OR ExitPreviousNext 34.2.4. 选择安装内容(只安装Weblogic Server)-注:输入2,回车;再输入2,回车;最后再输入Next,只安装WeLogic ServerChoose 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 ExitPreviousNext 2Choose Products and Components:- Release |_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 MBEnter number exactly as it appears in brackets to toggle selection OR ExitPreviousNextChoose Products and Components:- Release |_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 x | |_Evaluation Database 1.12 x |_Oracle Coherence 2 |_Coherence Product Files 2.1 |_Coherence Examples 2.2 *Estimated size of installation: 744.7 MBEnter number exactly as it appears in brackets to toggle selection OR ExitPreviousNext4.2.5. 选择JDK-注:输入1,回车;输入/app/jrockit-jdk,回车;再输入2,把操作系统默认安装的JDK取消勾选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|/usr/lib/jvm/java-1.7.0-openjdk-5.x86_64 3|/app/jrockit-jdkx *Estimated size of installation: 744.7 MBEnter 1 to add or = 2 to toggle selection OR ExitPreviousNext Next4.2.6. 确认WebLogic安装目录Choose Product Installation Directories:-Middleware Home Directory: /app/Oracle/MiddlewareProduct Installation Directories: WebLogic Server = Enter new value or use default /app/Oracle/Middleware/wlserver_10.3Enter new WebLogic Server OR ExitPreviousNext NextThe following Products and JDKs will be installed:- WebLogic Platform |_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 |_Server Examples |_Evaluation Database *Estimated size of installation: 744.8 MBEnter ExitPreviousNext NextMar 26, 2017 12:11:03 PM java.util.prefs.FileSystemPreferences$1 runINFO: Created user preferences directory.Installing files.0% 25% 50% 75% 100%-|-|-|-*Performing String Substitutions. Configuring OCM.0% 25% 50% 75% 100%-|-|-|-*Creating Domains.Mar 26, 2017 12:11:35 PM THREAD: runScript com.oracle.cie.domain.script.ScriptExecutor outputINFO: succeed: close templateInstallation CompleteCongratulations! Installation is complete.Press Enter to continue or type Exit Clean up process in progress .weblogicpo9kcfap901 bin$4.2.7. 验证是否已安装成功weblogicpo9kcfap901 logs$ cat /app/Oracle/Middleware/logs/log.txt Mar 26, 2017 12:11:10 PM - install WebLogic Platform at /app/Oracle/Middleware release Added |_Common Infrastructure Engineering Added | |_Uninstall Added | |_Patch Client Added | |_Patch Attachment Facility Added | |_Clone Facility Added |_WebLogic Server Added | |_Core Application Server Added | |_Administration Console Added | |_Configuration Wizard and Upgrade Framework Added | |_Web 2.0 HTTP Pub-Sub Server Added | |_WebLogic SCA Added | |_WebLogic JDBC Drivers Added | |_Third Party JDBC Drivers Added | |_WebLogic Server Clients Added | |_WebLogic Web Server Plugins Added | |_UDDI and Xquery Support Added | |_Server Examples Added | |_Evaluation Database Added | |_Workshop Code Completion Support Added |_Oracle Configuration Manager Added | |_Data Collector Added |_Oracle Coherence Not Installed |_Coherence Product Files Not Installed |_Coherence Examples Not Installedweblogicpo9kcfap901 logs$5. 节点1配置篇5.5.1. 新建应用domain域-注:只需在节点1上新建domain域5.1.1. 执行weblogic配置向导文件weblogicpo9kcfap901 bin$ /app/Oracle/Middleware/wlserver_10.3/common/bin/config.shUnable to instantiate GUI, defaulting to console mode.Welcome:-5.1.2. 选择新建或者扩展域(选择新建)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 ExitNext5.1.3. 选择域控件或者模版(选择控件)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 ExitPreviousNext Next5.1.4. 选择应用模版(默认选择Basic WebLogic Server Domain)Application Template Selection:- Available Templates |_Basic WebLogic Server Domain - wlserver_10.3x |_Basic WebLogic SIP Server Domain - wlserver_10.3 2 |_WebLogic Advanced Web Services for JAX-RPC Extension - wlserver_10.3 3 |_WebLogic Advanced Web Services for JAX-WS Extension - wlserver_10.3 4 Enter number exactly as it appears in brackets to toggle selection OR ExitPreviousNext Next5.1.5. 编辑域名称信息Edit Domain Information:- | Name | Value | _|_|_| 1| *Name: | base_domain |Enter value for Name OR ExitPreviousNext NextSelect the target domain directory for this domain:- Target Location = Enter new value or use default /app/Oracle/Middleware/user_projects/domains5.1.6. 配置管理员用户及密码Configure Administrator User Name and Password:-Create a u

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论