环境:

centos6.8 无桌面环境

jdk1.7.0_25

关闭iptables、selinux

安装前准备:

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

   useradd weblogic
passwd weblogic

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

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

export JAVA_HOME=/usr/local/jdk1.7
export JRE_HOME=/usr/local/jdk1.7/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
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

[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.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>
MYORACLESUPPORT_PASSWORD=
#
##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=

 oraInst.loc

inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic

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

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

3、执行安装

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中

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

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

./wlst.sh 

Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

Initializing WebLogic Scripting Tool (WLST) ...

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.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> readTemplate('/home/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar')

wls:/offline/base_domain>cd('Servers/AdminServer')

wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')

wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)

wls:/offline/base_domain/Server/AdminServer>cd('../..')

wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')

wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic123')

wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')

wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain')  

closeTemplate()

exit()

3、启动

cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin

./startWeblogic.sh    (使用这种执行启动以后,weblogic会运行在前台,若窗口关闭,则程序结束)

nohup  ./startWeblogic.sh  >> /home/weblogic/Middleware/log/output.log 2>&1 &  (使用nohup将其输出给重定向到另外一个目录,需要确保有写权限,否则的话,nohup会在当前执行的路径下生成一个nohup.log)

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

至此,域配置也完成。

最新文章

  1. linux解压/压缩文件
  2. ACM 杭电HDU 2084 数塔 [解题报告]
  3. UML类图之类与类的关系
  4. 39:第n小的质数
  5. TVideoGrabber如何将网络摄像头影像实时发布到网络
  6. Android开发-API指南-数据存储
  7. 基于jQuery右侧带缩略图导航的焦点图
  8. cmd for 用法
  9. poj3694(动态询问割桥的数目)
  10. 5款新颖的ReSharper插件
  11. JavaSE中Collection集合框架学习笔记(2)——拒绝重复内容的Set和支持队列操作的Queue
  12. JavaScript sort() 方法详解
  13. python对 if __name__==&#39;__main__&#39;的理解
  14. docker 部署nginx
  15. css3 object-fit详解
  16. 简明的Python教程当中的几个疑惑点分析#1
  17. python 的排名,已经python的简单介绍
  18. Linux内核分析作业 NO.8 完结撒花~~~
  19. vuejs 1.x与2.x差异
  20. [国际A类会议] 2018最最最顶级的人工智能国际峰会汇总!CCF推荐!

热门文章

  1. Celery 分布式任务队列快速入门
  2. Mysql 测试题
  3. Java-Maven(八):IDEA使用本地maven,并配置远程中央仓库
  4. C语言的一些输出格式
  5. 微信小程序:wx.request之post请求后端无法获取数据的问题
  6. JavaScript初探之AJAX的应用
  7. [LeetCode] Reach a Number 达到一个数字
  8. [LeetCode] Cut Off Trees for Golf Event 为高尔夫赛事砍树
  9. 实验吧_程序逻辑问题(代码审计)&amp;上传绕过
  10. [Codeforces 946D]Timetable