Linux系统下命令安装weblogic12c

有两种安装模式:界面安装和静默安装,本人电脑界面DISPLAY无法设置成功,所以采用了静默安装模式;开始安装

工具/原料

  • centOS Linux系统

  • weblogic12c

方法/步骤

  1. 1

    到oracle官网下载.jar结尾的weblogc包,然后放在weblogic用户下的install目录下(此目录是我自己创建,亦可以其他)。

     

  2. .weblogic用户在 /home/weblogic/install/下创建oraInst.loc文件(此文件常理应该放在etc/下的,这里我为了方便所以。。)(此文件具体作用:Oralce的安装升级都需要用到这个目录。官方解释:If you plan to install Oracle products using Oracle Universal Installer in silent or suppressed mode, you must manually create the oraInst.loc file if it does not already exist. This file specifies the location of the Oracle Inventory directory where Oracle Universal Installer creates the inventory of Oracle products installed on the system.)

    内容如下:

    #Oracle Installer Location File Location

    inst_group=web         组名称

    inventory_loc=/home/weblogic/oraInventory  产品清单目录

  3. weblogic 用户在 /home/weblogic/install/ 下创建  wls.rsp响应文件:

    内容如下:

    [ENGINE]

    #DO NOT CHANGE THIS.

    Response File Version=1.0.0.0.0

    [GENERIC]

    #The oracle home location. This can be an existing Oracle Home or a new Oracle Home

    ORACLE_HOME=/home/weblogic/Oracle/Middleware

    #Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.

    INSTALL_TYPE=WebLogic Server

    #Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.

    MYORACLESUPPORT_USERNAME=

    #Provide the My Oracle Support Password

    MYORACLESUPPORT_PASSWORD=<SECURE VALUE>

    #Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration

    DECLINE_SECURITY_UPDATES=true

    #Set this to true if My Oracle Support Password is specified

    SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

    #Provide the Proxy Host

    PROXY_HOST=

    #Provide the Proxy Port

    PROXY_PORT=

    #Provide the Proxy Username

    PROXY_USER=

    #Provide the Proxy Password

    PROXY_PWD=<SECURE VALUE>

    #Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]

    COLLECTOR_SUPPORTHUB_URL=

  4. 以上两个配置文件准备好后,开始静默安装。

    java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/weblogic/install/wls.rsp -invPtrLoc /home/weblogic/install/oraInst.loc

  5. 出现以下内容:(说明安装成功)

  6. 创建域

    此递归创建域的路径,我这和weblogic安装路径保持一致。

    mkdir -p ~/Oracle/Middleware/user_projects/domains/base_domain/

  7. 在install/目录下创建域的 参数文件 (用户名,密码,端口等)

    内容如下:

    read template from "/home/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar";

    set JavaHome "/usr/local/jdk1.7.0_80";

    set ServerStartMode "dev";

    find Server "AdminServer" as AdminServer;

    set AdminServer.ListenAddress "";

    set AdminServer.ListenPort "8001";

    set AdminServer.SSL.Enabled "true";

    set AdminServer.SSL.ListenPort "8002";

    //We can directly create a new managed server.

    create Server "base" as BASE;

    set BASE.ListenAddress "";

    set BASE.ListenPort "8003";

    //set BASE.SSL.Enabled "true";

    //set BASE.SSL.ListenPort "8004″;

    //Create Machine

    create Machine "base" as Machinename;

    //use templates default weblogic user

    find User "weblogic" as u1;

    set u1.password "weblogic123";

    //create a new user

    create User "weblogic2" as u2;

    set u2.password "weblogic123";

    write domain to "/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/";

    //The domain name will be "demo-domain"

    close template;

  8. 开始静默创建域

    来到bin目录》执行命令

  9. cd /home/weblogic/Oracle/Middleware/wlserver/common/bin/

    ./config.sh -mode=silent -silent_script=/home/weblogic/install/create_domain.rsp -logfile=/home/weblogic/install/create_domain.log

  10. 若出现以下:(说明成功。根据电脑性能需要等几分钟)

  11. 启动weblogic

    来到bin目录》执行命令:下图

    没有异常启动成功;

    Linux系统下命令安装weblogic12c

  12. 页面访问刚才创建好的域:成功

    Linux系统下命令安装weblogic12c

  13. 端口访问问题:由于weblogic安装在虚拟机中,本地主机访问需要开通端口权限,也就是8001,这样才能访问; 开通方法: [root@CentOS etc]# /sbin/iptables -I INPUT -p tcp --dport 8001 -j ACCEPT [root@CentOS etc]# /etc/rc.d/init.d/iptables save 然后enter iptables:将防火墙规则保存到 /etc/sysconfig/iptables:

  • 1
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值