实战weblogic集群之安装weblogic

一、系统及软件版本

OS版本:Red Hat Enterprise Linux Server release 6.6
WebLogic Server 版本: 10.3.3.0
JDK版本:1.7.0_79

软件包:jdk-7u79-linux-x64.tar.gz、wls1033_generic.jar

二、集群服务器规划

三、修改主机名及添加hosts

确保集群中每台服务器主机名不一样,然后修改/etc/hosts文件,添每台主机IP及对应主机名。此步骤务必要做,否则后面启动weblogic可能会报错。

四、安装jdk及weblogic

1、集群中每台服务器安装jdk

$ tar zxf jdk-7u79-linux-x64.tar.gz

$ mv jdk1.7.0_79 /app/sinova/

$ cd /app/sinova/ 

$ vi .bash_profile #添加和修改如下内容

JAVA_HOME=/app/sinova/jdk1.7.0_79
PATH=${JAVA_HOME}/bin:$PATH:$HOME/bin

export PATH JAVA_HOME

$ . . bash_profile #重新加载配置

$ java -version  #出现以下内容,表示jdk配置生效
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

2、安装weblogic,此步骤在管理节点(10.70.52.11)上安装即可。

第1步:启动安装,使用字符界面进行安装

java -jar wls1033_generic.jar 
Unable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................................100%





<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.3.0. 
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 [Exit][Next]>    #直接回车

第2步:选择weblogic安装目录

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default 
"/app/sinova/Oracle/Middleware"]




Enter new Middleware Home OR [Exit][Previous][Next]> /app/sinova/Oracle

第3步:

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [/app/sinova/Oracle]

Use above value or select another option:
    1 - Enter new Middleware Home
    2 - Change to default [/app/sinova/Oracle/Middleware]




Enter option number to select OR [Exit][Previous][Next]>  #回车确认

第4步:配置不接受安全更新

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html

   1|Email:[]
   2|My Oracle Support Password:[]
   3|Receive Security Update:[Yes]



Enter index number to select OR [Exit][Previous][Next]> 3

第5步:

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html

    "Receive Security Update:" = [Enter new value or use default "Yes"]



Enter [Yes][No]? no

第6步:

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html

    "Receive Security Update:" = [Enter new value or use default "Yes"]


    ** Do you wish to bypass initiation of the configuration manager and
    **  remain uninformed of critical security issues in your configuration?


Enter [Yes][No]? yes

第7步:

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html

   1|Email:[]
   2|My Oracle Support Password:[]
   3|Receive Security Update:[No]



Enter index number to select OR [Exit][Previous][Next]> #直接回车

第8步:

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Choose 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 [Exit][Previous][Next]> #直接回车,选择典型安装即可

第9步:

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------

JDK(s) chosen for use with this product installation will be installed. Supported defaults if not deselected will be used in script string-substitution.

   1|Add Local Jdk
   2|/app/sinova/jdk1.7.0_79[x]



   *Estimated size of installation:  727.6 MB


Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> #直接回车

第10步:

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/app/sinova/Oracle]

Product Installation Directories:


   1|WebLogic Server: [/app/sinova/Oracle/wlserver_10.3]
   2|Oracle Coherence: [/app/sinova/Oracle/coherence_3.5]




Enter index number to select OR [Exit][Previous][Next]> #直接回车

第11步:

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 10.3.3.0
    |_____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
    |    |_____Evaluation Database
    |_____Oracle Coherence
         |_____Coherence Product Files

    *Estimated size of installation: 727.7 MB




Enter [Exit][Previous][Next]> #直接回车

第12步:安装完成

Jun 30, 2015 6:16:53 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.





<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Installing files..

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Performing String Substitutions... 





<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Configuring OCM...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Creating Domains...





<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Installation Complete


Congratulations! Installation is complete.


Press [Enter] to continue or type [Exit]> #回车

<-------------------- Oracle Installer - WebLogic 10.3.3.0 ------------------->

Clean up process in progress ...

进入/app/sinova目录,会发现新产生了一个Oracle目录,表示weblogic已安装好。

 

转载于:https://www.cnblogs.com/Eivll0m/p/4626102.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Weblogic 集群搭建 安装weblogic(windows和linux操作步骤相同) 1、在命令行,进入安装文件wls1036_generic.jar所在文件夹 然后输入命令: java -jar wls1036_generic.jar 点击回车后程序会启动weblogic安装文件的图形安装界面。 按下来的安装和在windows中安装普通文件一样了。 2、点击“下一步”,到下图界面,然后输入weblogic安装目录。(路径中最好不要有空格) 3、点击“下一步”。到下图界面,由于我们没有购买oracle的服务所以去掉下图中的勾。(目前weblogic可免费使用,需要oracle技术支持的话才需要付费) 4、点击“下一步”,到下图界面,会因为我们没有填写上图的的支持信息而弹出两个警告框,直接“YES”通过即可。进入下图,勾选下面的框(不需要使用验证) 5、然后点击“继续”。到下图界面,选择“典型”和“定制”都可以,根据自己喜好设置 6、选择后点击“下一步”,进入下图界面,如果没有显示jdk信息,则手动点击“浏览”选择自己机器上安装的jdk,一般默认显示出来的就已经是自己机口上安装的了(貌似是根据环境变量里的JAVA_HOME获取的) 7、点击“下一步”进入下图界面,不用修改,直接点击“下一步”即可 8、然后会显示出我们准备安装的组件信息,直接点击“下一步” 9、然后就开始安装了 10、安装完成了,这里有勾选“运行 Quickstart”表示安装完成后打开域创建和配置界面。点击“完成”按钮完成weblogic主程序的安装 配置domain集群 一.环境记录 服务器操作系统版本 cos6.5 weblogic版本包 weblogic1036_generic.jar(weblogic11g) JDK jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.bin(jdk1.6) 安装方式 静默安装 安装用户 root 1.找到 weblogic安装目录下的Oracle\Middleware\wlserver_10.3\common\bin 双击config.exe 运行domain域配置 2.选择创建新的weblogic 域 -->点击下一步 3.点击生成一个自动匹配的域... --->点击下一步 4.更改默认的域名,点击下一步. 域位置默认就行 5.设置密码为:weblogic123! 两次输入保持一致 点击下一步 6.选择模式 选择本地已安装的jdk -->选择下一步 7.选择管理服务器,选择受管理服务器,集群和计算机--->点击下一步 8.设置Listen address 为本机ip , 端口 7001 -->点击下一步 9.填写各个受管理服务器的详细信息,这里要注意的是new_ManagedServer_2的监听地址填的是主机2的ip地址,因为这个服务实际是运行在主机2上nodes_1和nodes_2 的ip为实际节点机器的ip端口为实际生产环境的port , 10配置集群 群消息传送模式选择 : multicast 修改多点传送端口 7777 11.给集群添加节点 -->点击下一步 12.配置代理服务器 勾选http 代理 13.这一步不错任何操作 直接下一步 14.点击创建 静心等待-- 二 、配置第二台机器节点 1.weblogic安装还跟之前一样不在阐述 直接跳过到domain创建 2.账户信息最好和第一台保持一致 方便维护 2. 3. 3.注意 :管理服务器一定要和另一台一致! 一致! 一致 4.配置 本机节点信息一定要和另一台信息保持一致!! 5.不做操作 直接下一步 6.不做操作直接下一步 4. 7.点击创建 5. 三、启动服务 1.进入AdmainServer启动startWeblogic.cmd 2.进入bin目录编写bat执行脚本 ,新建startNodes_1.bat 和startProxy_server.bat 文件 startNodes_1.bat 内容: startManagedWebLogic.cmd nodes_1 startProxy_server.bat 内容: startManagedWebLogic.cmd proxy_server 3.启动 代理startProxy_server.bat 输入 账户密码后 启动节点1 : startNodes_1.bat 输入 账户密码 4.进入节点2 机器同样的bin目录下新建startNodes_2.bat 内容 : startManagedWebLogic.cmd nodes_2 并启动 输入账户密码 四、置数据源 1.进入控制台用 AdmainServer的ip http://192.168.132.131:7001/console 关键一步: 其他都是正常步骤 五、部署服务 其他都是正常步骤 六、解决session共享 1进入apps下找到weblogic.xml进行编辑: 编辑内容:插入如下代码: memory true 结构如下: 2.更改完毕进入控制台-->部署--选中代理服务 -->点击更新 -->一直下一步 2.注意!!!!!!!!!!!! 关键一步 访问我们的服务进行测试 ,可轮流关闭节点1,2 来测试集群是否成功. 至此, 集群搭建结束!!! 感谢大家! pu~~~
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值