1、Linux环境下搭建WebLogic1036集群服务十步曲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. 安装前准备篇1.1. 主机资源规划主机IP主机名称管理服务器及端口被管理服务器及端口10.140.30.51po9kcfap901AdminServer/700
2、1Server1/808010.140.30.52po9kcfap902Server2/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/
3、domains/base_domain2. 平台基础配置篇(双节点)-以下三点,均通过root用户配置2.1. hosts文件配置双节点主机hosts文件,都加上两台主机名称与IP对应关系weblogicpo9kcfap901 $ cat /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4:1 localhost localhost.localdomain localhost6 localhost6.localdomain610.140.30.51 po9kcfap9011
4、0.140.30.52 po9kcfap902 weblogicpo9kcfap901 $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
5、默认连接超时时间配置rootpo9kcfap901 # sysctl -w net.ipv4.tcp_fin_timeout=30net.ipv4.tcp_fin_timeout = 30 rootpo9kcfap901 #3. 用户及权限配置篇(双节点)3.1. 新增weblogic组及用户rootpo9kcfap901 # groupadd weblogicrootpo9kcfap901 # useradd -g weblogic weblogic3.2. 修改目录所有者权限rootpo9kcfap901 /# chown -R weblogic:weblogic /approotpo9k
6、cfap901 /# 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 instan
7、tiate 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
8、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-R
9、28.2.7-4.1.0 Enter 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 c
10、ontinue 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-
11、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
12、- Change to default /home/weblogic/Oracle/Middleware Enter 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|Suppor
13、t Password: 3|Receive Security Update:Yes Enter 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 compon
14、ent(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 10.3.6.0 |_WebLogic Server 1 x | |_Core Application Server 1.1
15、 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 an
16、d 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 MB Enter number exactly as it appears in brackets to toggle selection OR ExitPreviousNextChoose Produ
17、cts and Components:- Release 10.3.6.0 |_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 Driver
18、s 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 MB Enter num
19、ber 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
20、Local Jdk 2|/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64 3|/app/jrockit-jdkx *Estimated size of installation: 744.7 MB Enter 1 to add or = 2 to toggle selection OR ExitPreviousNext Next4.2.6. 确认WebLogic安装目录Choose Product Installation Directories:-Middleware Home Directory: /app/Oracle/MiddlewareP
21、roduct 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 10.3.6.0 |_WebLogic Server |_Core Application Server |_Adminis
22、tration 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 MB Enter 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%-|-|-|-*Perfor
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1