转weblogic 10.3新建域

一、安装前准备

1.解决linux中文乱码问题

修改/etc/sysconfig/i18n文件

#LANG="en_US.UTF-8"
#SUPPORTED="en_US.UTF-8:en_US:en"
#SYSFONT="latarcyrheb-sun16"

改为


LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh"
SYSFONT="lat0-sun16"
SYSFONTACM="8859-15"

2.创建weblogic用户和安装目录,修改目录权限

(1)创建weblogic用户

[root@lwdb software-install]# groupadd weblogic

[root@lwdb software-install]# useradd -g weblogic weblogic

[root@lwdb software-install]# passwd weblogic

(2)创建weblogic安装目录,修改目录所有者权限

注:/weblogic10.3为安装目录

[root@lwdb software-install]# mkdir /weblogic10.3

[root@lwdb software-install]# chown -Rf weblogic:weblogic /weblogic10.3

二、安装weblogic10.3.3

1.上传weblogic安装文件到服务器

本次安装文件存放目录为/ software-install

2.赋予安装文件可执行权限

[root@lwdb software-install]# chmod a+x /software-install/wls1033_linux32.bin

3.执行安装

[root@lwdb software-install]# ./wls1033_linux32.bin

(1)安装程序自动开始解压缩

(2)输入next

(3)输入weblogic的安装目录

Enter new Middleware Home OR [Exit][Previous][Next]> /weblogic10.311

之后回车

(4)选择是否接收安全更新,这里选择3,进入后输入no,然后确定yes

Register for Security Updates:

------------------------------

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html

   1|Email:[]

   2|My Oracle Support Password:[]

   3|Receive Security Update:[Yes]

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html

   1|Email:[]

   2|My Oracle Support Password:[]

   3|Receive Security Update:[No]

Enter index number to select OR [Exit][Previous][Next]>

(5)选择典型安装,输入“1”

Select the type of installation you wish to perform. 

 ->1|Typical

    |  Install the following product(s) and component(s):

    | - WebLogic Server

    | - Oracle Coherence

   2|Custom

    |  Choose software products and components to install and perform optional 

    |configuration.

(6)选择安装weblogic server

Choose Product Installation Directories:

----------------------------------------

Middleware Home Directory: [/weblogic10.3]

Product Installation Directories:

   1|WebLogic Server: [/weblogic10.3/wlserver_10.3]

   2|Oracle Coherence: [/weblogic10.3/coherence_3.5]

(7)一路回车

(8)完成安装,输入exit

三、新建domain

其实一路回车即可!

1.切换到weblogic用户

[root@lwdb /]# su - weblogic

注:本次出现以下错误:

[root@lwdb weblogic10.3]# su - weblogic

su: /bin/bash: Permission denied

可采取

[root@lwdb bin]# chmod 755 /bin

进行修正

2.执行配置

(1)进入以下目录

[weblogic@lwdb weblogic10.3]$ cd /weblogic10.3/wlserver_10.3/common/bin

(2)执行以下命令,开始正式配置。

[weblogic@lwdb bin]$ ./config.sh

(3)以下界面均回车

a.

b.

c.

(4)配置weblogic控制台的密码

(5)选择domain的模式为产品模式

Enable Development or Production Mode for this domain. 

 ->1|Development Mode

   2|Production Mode

Enter index number to select OR [Exit][Previous][Next]> 2

(6)选择JavaSDK为JRockit

Java SDK Selection:

-------------------

 ->1|JRockit SDK 1.6.0_17 @ /weblogic10.3/jrockit_160_17_R28.0.0-679

   2|Sun SDK 1.6.0_18 @ /weblogic10.3/jdk160_18

   3|Other Java SDK

Enter index number to select OR [Exit][Previous][Next]> 1

(7)选择管理服务器还是节点

(8)安装结束

安装结束若想启动domian,需要增加密码文件才行,否则会挂起!


四、新增该domain的密码配置文件boot.properties

 [weblogic@lwdb lwdb_domain]$ vi boot.properties

username=weblogic

password=weblogic,24107.

保存

五、以后台方式启动domain

1.进入安装好的domain目录

/weblogic10.3/user_projects/domains/lwdb_domain

2. [weblogic@lwdb lwdb_domain]$ nohup ./startWebLogic.sh &

六、删除domain

直接进入domain的上次目录,执行删除命令即可,如下:

[weblogic@lwdb domains]$ cd /weblogic10.3/user_projects/domains

[weblogic@lwdb domains]$ rm -rf lwdb

原文地址:https://www.cnblogs.com/niutouzdq/p/4952076.html