本文主要介绍Weblogic9.2在Linux平台上的安装。
1. 准备工作
检查平台认证
1.1 首先确定安装的WebLogic版本所在的平台已通过了BEA的认证,通过以下网址查询
http://download.oracle.com/docs/cd/E13196_01/platform/suppconfigs/index.html
1.2 准备安装介质
准备安装介质及确定安装目录,至少需要1G的空间,安装介质可在官网上自己下载
1.3 创建用户及用户组
在Unix(Linux)环境下,不建议使用root用户安装WebLogic,最好使用单独用户安装,如建立WebLogic:
[root@localhost ~]# groupadd bea
[root@localhost ~]# useradd -g bea weblogic
1.4 创建文件系统
[root@localhost ~]# mkdir /opt/weblogic
[root@localhost ~]# chown weblogic:bea /opt/weblogic
[weblogic@localhost ~]$ mkdir /opt/weblogic/bea
2. 安装步骤
WebLogic在Linux平台下的安装方法一般有三种:图形窗口模式,控制台模式,无人守护安装模式。由于控制台模式的使用最为广泛且不受任何其它硬件条件的限制所以这里只介绍控制台安装模式。
WebLogic安装程序需要JRE的支持,根据安装平台的不同,WebLogic的安装介质也分为两类,一种自带了JRE(后缀名为.bin),不需要首先安装JRE环境;一种需要下载平台厂商所提供的JRE环境(后缀名为.jar),需要先安装JRE环境。
2.1 .bin的安装方法
首先赋予.bin可执行权限:
[root@localhost ~]# chmod a+x filename.bin
然后执行:
[weblogic@localhost ~]$ ./filename.bin -mode=console
2.2 .jar的安装方法
[root@localhost ~]# chmod a+x filename.jar
然后执行:
[weblogic@localhost ~]$ java –jar filename.jar -mode=console
2.3 控制台安装
3. Unix(Linux)下WebLogic域的配置
3.1 创建域
运行安装目录下的config.sh文件,根据提示完成domain的创建。
3.2 启动/停止域
通过域目录下的/bin文件夹下的startWeblogic.sh及stopWeblogic.sh来启动停止域。