zoukankan      html  css  js  c++  java
  • RedHat6.2 安装weblogic

    下载虚拟机安装完点击CD选择镜像.iso

    安装一步步其中有个地方需要选择【现在定制】,继续选择下一步,安装完毕

    root下service  iptables stop【设置防火墙关闭】 chkconfig iptables off【设置防火墙开机不自动启动】

    在虚拟机中配置相关的信息 cd   /etc/sysconfig/network-scripts/    vi ifcfg-eth0  点英文字母i

    改下那个最后的为yes

    IPADDR=192.168.150.1

    NETMASK=255.255.255.0

    GATEWAY=192.168.150.2

    BOOTPROTO=static

    改完按ctrl+c+shift+zz自动保存退出 或者【:wq】

    连接本地的网络vm8中属性ip4的网段  OK

    用xshell连接虚拟机即可连接上。

    接下来用xshell安装weblogic看另一篇随笔【xshell】

    创建用户mkdir -p  /u02/weblogic

    groupadd weblogic

    useradd -g weblogic -d /u02/weblogic weblogic

    passwd weblogic

    chown -R weblogic:weblogic /u02  
    chown -R 用户名:组名

    切换用户,如果出现bash-4.1$

    请去root用户下skel目录下,cp -a /etc/skeal/. /u02/weblogic 

    切换ok

     点击xshell中的xftp进行传输linux的weblogic.bin

    首先看下weblogic下的那个文件是否属于组weblogic和权限是否为可执行

    drwx【(当前组的权限)】第二组是【】组】第三其他

    点击./文件  安装

    安装完成域之后开始进行下一步

    启动weblogic

    在启动的时候报错是需要看下配置文件的

    1.cd /etc/sysconfig/network-scripts  vi ifcfg-eth0

    service network restart

    2.service iptables stop

    chkconfig iptables off

    vim /etc/sysconfig/selinux

    setenforce 0  

    geteneforce

    今天部署环境时,启动WEBLOGIC报错:

    <2010-7-24 上午05时42分00秒 CST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.

    java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
    at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:38)
    at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:33)
    at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:154)
    at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:61)
    at weblogic.server.channels.ChannelService.start(ChannelService.java:207)
    Truncated. see log file for complete stacktrace
    Caused By: java.net.UnknownHostException: db: db
    at java.net.InetAddress.getLocalHost(InetAddress.java:1360)
    at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:36)
    at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:33)
    at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:154)
    at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:61)
    Truncated. see log file for complete stacktrace

    检查发现,原来是上次弄数据库集群时,改了主机名导致。

    处理办法:

    在/etc/hosts文件内加入127.0.01  <hostname>

    如:我这里是

    [root@db etc]# cat hosts
    127.0.0.1  db 

    这个完事之后再次进行C:WindowsSystem32driversetc找到host文件进行配置,这样的话就可以把linux上的管理服务器关掉就行window的重启,然后受管服务器进行连接管理服务器

  • 相关阅读:
    怎么接音响
    怎样区分音箱与音响
    什么是卡盟
    小白晋级达人必备 电视接口使用介绍(4)
    液晶电视插有线电视信号线的是哪个接口 HDMI是什么接口
    Google 镜像站搜集
    屏幕检测
    网站引流
    夜神安卓模拟器
    html5模拟平抛运动
  • 原文地址:https://www.cnblogs.com/sunyuhuan/p/9341274.html
Copyright © 2011-2022 走看看