环境:

centos6.8 无桌面环境

jdk1.7.0_25

关闭iptables、selinux

安装前准备:

1、新建weblogic用户,设置weblogic密码

  1. useradd weblogic
  2. passwd weblogic

2、切换用户至weblogic下,将已下载的jdk上传到服务器上,解压并移动到/usr/local/jdk1.7

2.1、配置环境变量,这里因为只是weblogic用户用来启动weblogic服务使用,所以,我这里将环境变量只配置到weblogic用户家目录下的/home/weblogic/.bashrc

  1. export JAVA_HOME=/usr/local/jdk1.7
  2. export JRE_HOME=/usr/local/jdk1.7/jre
  3. export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
  4. export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

2.2、 要使配置的环境变量生效,执行 source   .bashrc

2.3、java  -version  (看到输出的jdk版本和安装的版本一致则配置成功)

安装weblogic:

1、创建响应文件wls.rsp及loc文件oraInst.loc,模板如下:

wls.rsp

  1. [ENGINE]
  2. #DO NOT CHANGE THIS.
  3. Response File Version=1.0.0.0.
  4. [GENERIC]
  5. ##The oracle home location. This can be an existing Oracle Home #or a new Oracle Home
    #除了这里需要为需要安装的目录以外,别的地方不需要做修改
  6. ORACLE_HOME=/home/weblogic/Oracle/Middleware
  7. ##Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
  8. #
  9. INSTALL_TYPE=WebLogic Server
  10. #
  11. ##Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
  12. #
  13. MYORACLESUPPORT_USERNAME=
  14. #
  15. ##Provide the My Oracle Support Password
  16. #
  17. #MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
  18. MYORACLESUPPORT_PASSWORD=
  19. #
  20. ##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
  21. #
  22. DECLINE_SECURITY_UPDATES=true
  23. #
  24. ##Set this to true if My Oracle Support Password is specified
  25. #
  26. SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
  27. #
  28. ##Provide the Proxy Host
  29. #
  30. PROXY_HOST=
  31. #
  32. ##Provide the Proxy Port
  33. #
  34. PROXY_PORT=
  35. #
  36. ##Provide the Proxy Username
  37. #
  38. PROXY_USER=
  39. #
  40. ##Provide the Proxy Password
  41. #
  42. PROXY_PWD=<SECURE VALUE>
  43. #
  44. ##Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
  45. #
  46. COLLECTOR_SUPPORTHUB_URL=

 oraInst.loc

  1. inventory_loc=/home/weblogic/oraInventory
  2. inst_group=weblogic

2、上传或者复制weblogic通用安装包到weblogic用户下,确保该文件的所属用户及组为weblogic

  1. cd /home/weblogic
  2. cp /usr/local/src/fmw_12.1.3.0.0_wls(1)-weblogic.jar .

3、执行安装

  1. java -jar fmw_12.1.3.0.0_wls\(1\)-weblogic.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc -ignoreSysPrereqs

-silent   表明使用静默安装的方式

-responseFile  指定响应文件的路径

-invPtrLoc    指定安装清单文件路径

-ignoreSysPrereqs  忽略一些输出(可以不加此选项)

执行后会有一些输出,会有百分比的安装进度提示,我这里因为是前一天在远程虚机上安装的,重启终端以后输出已经不存在了,这里只做了些笔记记录,所以输出结果已经截不到了,就不在这里记录结果了。

至此,weblogic的程序安装结束,当然正常使用的是时候还得需要配置域才行的。

weblogic新建域:

1、设置环境变量,位于安装目录下的wlserver中

  1. cd Oracle/Middleware/wlserver/common/bin/
    ./commEnv.sh

2、创建域,使用脚本执行命令

  1. ./wlst.sh
  2.  
  3. Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
  4.  
  5. Initializing WebLogic Scripting Tool (WLST) ...
  6.  
  7. Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
  8.  
  9. Welcome to WebLogic Server Administration Scripting Shell
  10.  
  11. Type help() for help on available commands
  12.  
  13. wls:/offline> readTemplate('/home/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar')
  14.  
  15. wls:/offline/base_domain>cd('Servers/AdminServer')
  16.  
  17. wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
  18.  
  19. wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)
  20.  
  21. wls:/offline/base_domain/Server/AdminServer>cd('../..')
  22.  
  23. wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
  24.  
  25. wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic123')
  26.  
  27. wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
  28.  
  29. wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain')
  30.  
  31. closeTemplate()
  32.  
  33. exit()

3、启动

  1. cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin
  2.  
  3. ./startWeblogic.sh (使用这种执行启动以后,weblogic会运行在前台,若窗口关闭,则程序结束)
  4.  
  5. nohup ./startWeblogic.sh >> /home/weblogic/Middleware/log/output.log 2>&1 & (使用nohup将其输出给重定向到另外一个目录,需要确保有写权限,否则的话,nohup会在当前执行的路径下生成一个nohup.log)

使用浏览器访问控制台:http://ip:7001/console 登陆控制台进行维护部署。

至此,域配置也完成。

centos6.8下weblogic12c静默安装的更多相关文章

  1. CentOS-6.6下Tomcat-7.0安装与配置(Linux)

    CentOS-6.6下Tomcat-7.0安装与配置(Linux) 一.认识tomcat Tomcat是一个免费的开源的Serlvet容器,它是Apache基金会的Jakarta项目中的一个核心项目, ...

  2. centos6.8下redis的安装和配置

    centos6.8下redis的安装和配置 下载.安装 在redis官网可以获取到最新版本的redis 进入/usr/local/目录,执行如下命令 wget http://download.redi ...

  3. CentOS6.5下源码安装多个MySQL实例及复制搭建

    多实例安装本节是在CentOS6.5下源码安装MySQL5.6.35的基础上,在同一台机器增加一个MySQL实例.参考Centos中安装多个mysql数据的配置实例,安装目录为/usr/local/m ...

  4. CentOS6.5上Oracle11gR2静默安装

    一.环境准备环境 操作系统:CentOS release 6.5 (Final) 内核版本:2.6.32-431.el6.x86_64 物理内存:2G(必须大于1G) swap分区:3G(必须大于3G ...

  5. CentOS6.5下docker的安装及遇到的问题和简单使用(已实践)

    转载自 CentOS6下docker的安装和使用 Docker是一个开源的应用容器引擎,可以轻松的为任何应用创建一个轻量级的.可移植的.自给自足的容器.利用Linux的LXC.AUFS. Go语言.c ...

  6. linux环境下oracle静默安装

    一.安装环境 1.linux版本:redhat6.3_x86_64 2.oracle版本:Oracle Database 11g Enterprise Edition Release 11.2.0.3 ...

  7. 基于CentOS6.5下如何正确安装和使用Tcpreplay来重放数据(图文详解)

    前期博客 基于CentOS6.5下snort+barnyard2+base的入侵检测系统的搭建(图文详解)(博主推荐) tcpreplay是什么? 简单的说, tcpreplay是一种pcap包的重放 ...

  8. centos6.5 64位静默安装oracle 10G R2

    操作系统:CentOS release 6.5 (Final) 64位 oracle版本:Oracle Database 10g Enterprise Edition Release 10.2.0.1 ...

  9. Centos6.5下的Hadoop安装

    开始进行云计算部分的学习,为了存档,写下现在进行过的步骤 需要用到的主要版本: 虚拟机:Vmware Workstation pro 12.5 Linux系统:CentOS6.4 64bit jdk版 ...

随机推荐

  1. VMware虚拟机安装

            学习Linux系统最好的方式就是在自己的虚拟机上安装Linux:接下来就给大家简单介绍一下VMware虚拟机的安装以及Linux的安装:VMware虚拟机只是为了更好的学习Linux: ...

  2. 推荐几个IDEA插件,Java开发者撸码利器。

    这里只是推荐一下好用的插件,具体的使用方法不一一详细介绍. JRebel for IntelliJ 一款热部署插件,只要不是修改了项目的配置文件,用它都可以实现热部署.收费的,破解比较麻烦.不过功能确 ...

  3. A、B同时打开一个页面进行同一条数据库记录进行修改,A修改完成后提交表单,A修改的数据保存完成后;当B也修改完成后,提交数据进行数据修改。此时B修改的内容会覆盖A修改的内容,请问如何避免?

    A.B同时打开一个页面进行数据中的一条数据进行修改,A修改完成后提交表单,数据修改保存完成后B开始页面也修改完成,开始提交进行修改.此时B修改的内容会覆盖A的内容,请问如何避免? 通过搜索和我个人总结 ...

  4. SpringBoot(五):@ConfigurationProperties配置参数绑定

    在springmvc或其他ssh框架中如果我们要实现一个配置参数的加载,需要使用代码实现读取properties文件等操作,或者需要使用其他属性@value(name="username&q ...

  5. Spark MLib:梯度下降算法实现

    声明:本文参考< 大数据:Spark mlib(三) GradientDescent梯度下降算法之Spark实现> 1. 什么是梯度下降? 梯度下降法(英语:Gradient descen ...

  6. 智能提示含查询多列(html+JS+handler+ HttpRemoting)一、html示列 加 JS加 请求 Handler

    <html> <head> </head> <body> <form id="recordform" name="r ...

  7. Lua中table的实现-《Lua设计与实现》

    本文来自<Lua设计与实现>的阅读笔记,推荐Lua学习者可以购买一本,深入浅出讲解lua的设计和实现原理,很赞,哈哈   Lua中对于表的设计,是基于数组和散列表,和其他语言不同,对于数组 ...

  8. [LeetCode] Strange Printer 奇怪的打印机

    There is a strange printer with the following two special requirements: The printer can only print a ...

  9. [LeetCode] Path Sum IV 二叉树的路径和之四

    If the depth of a tree is smaller than 5, then this tree can be represented by a list of three-digit ...

  10. bzoj 4830: [Hnoi2017]抛硬币

    Description 小A和小B是一对好朋友,他们经常一起愉快的玩耍.最近小B沉迷于**师手游,天天刷本,根本无心搞学习.但是 已经入坑了几个月,却一次都没有抽到SSR,让他非常怀疑人生.勤勉的小A ...