现在的位置: 首页 > 其他 > 正文

Linux WebLogic安装部署

2017年05月16日 其他 ⁄ 共 10906字 评论数 1 ⁄ 阅读 262 次

【环境准备】(根据实际情况,可略过)

1、测试本地到服务器网络是否连通,直接在本机CMD中PING一下服务器IP。

2、测试本地到服务器是否有防火墙,到服务器上,使用命令netstat –lrtn,查看已使用端口号,随便拿一个端口号,在本机CMD中使用“telnet IP 端口号”命令测试是否可连通(Linux上测试可用wget)。若CMD报telnet没有安装,直接在控制面板->程序和功能->打开或关闭Windows功能,勾选Telnet服务器和Telnet客户端两项,之后重新打开CMD就好了。

3、查看WebLogic默认端口号7001是否被占用,还是使用命令netstat –ltpn。

4、查看JDK是否已安装,使用命令whereis java,which java,java –version等,或使用rpm –qa|grep java。若未安装,则下载最新版JDK,修改文件权限,安装。

5、查看服务器系统信息,uname –a,并下载相应版本的WebLogic安装包。

 

【安装WebLogic】

1、将WebLogic安装包上传把自己指定的目录,给安装文件赋可执行权限,chmod 744 ***。

2、启动WebLogic安装,java –d64 –jar filename.jar。

3、进入控制台,使用命令交互安装:

1)等Extracting从0%到100%之后就可以开始安装了;

2)进入欢迎页,可选新装或修改之前,直接输入Next按Enter就好了。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Welcome:

--------

This installer will guide you through the installation of WebLogic 10.3.6.0.

Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".

 

Enter [Exit][Next]> Next回车

3)“输入”中间件主目录,即应用服务器WebLogic的安装目录,输入Next+回车,则为默认路径./Oracle/Middleware/…,若自定义路径则输入路径后按回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:

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

"Middleware Home" = [Enter new value or use default

"/bea/weblogic/Oracle/Middleware"]

 

Enter new Middleware Home OR [Exit][Previous][Next]> /home/weblogic/ 回车

4)“选择”中间件主目录,若使用自定义的目录则输入1,回车,若修改为默认目录则输入2,回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:

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

"Middleware Home" = [/home/weblogic]

Use above value or select another option:

1 - Enter new Middleware Home

2 - Change to default [/bea/weblogic/Oracle/Middleware]

 

Enter option number to select OR [Exit][Previous][Next]> 1 回车

5)“确认”中间件目录(心塞,确定个安装目录竟要3步),输入Next,回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:

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

"Middleware Home" = [/home/weblogic]

 

Enter new Middleware Home OR [Exit][Previous][Next]>Next 回车

6)注册安全更新,一般选择不更新,输入3,回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:

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

Provide your email address for security updates and  to initiate configuration manager.

1|Email:[]

2|Support Password:[]

3|Receive Security Update:[Yes]

 

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

7)更改接受更新的方式,输入No,回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:

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

Provide your email address for security updates and  to initiate configuration manager.

"Receive Security Update:" = [Enter new value or use default "Yes"]

 

Enter [Yes][No]? no 回车

8)确认更改的更新方式(又心塞,又是三步才确定不更新),输入Yes,回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:

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

Provide your email address for security updates and  to initiate configuration manager.

"Receive Security Update:" = [Enter new value or use default "Yes"]

 

Enter [Yes][No]? yes 回车

9)接受更新选择确认,输入Next,回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:

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

Provide your email address for security updates and  to initiate configuration manager.

1|Email:[]

2|Support Password:[]

3|Receive Security Update:[No]

 

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

10)选择安装类型(Typical:典型;Custom:自定义),选择典型安装,输入1,回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Install Type:

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

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.

 

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

11)选择安装所用jdk,后面带[x]表示默认选择项,输入数字选择,或使用默认选择项输入Next 回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):

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

JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

1|Add Local Jdk

2|/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64[x]

 

*Estimated size of installation:  678.7 MB

 

Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> Next 回车

12)选择产品安装目录,输入Next 回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Product Installation Directories:

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

Middleware Home Directory: [/home/weblogic]

Product Installation Directories:

 

"WebLogic Server" = [Enter new value or use default

"/home/weblogic/wlserver_10.3"]

 

Enter new WebLogic Server OR [Exit][Previous][Next]>Next 回车

13)产品安装清单,输入Next 回车。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

The following Products and JDKs will be installed:

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

WebLogic Platform 10.3.6.0

|_____WebLogic Server

|_____Core Application Server

|_____Administration Console

|_____Configuration Wizard and Upgrade Framework

|_____Web 2.0 HTTP Pub-Sub Server

|_____WebLogic SCA

|_____WebLogic JDBC Drivers

|_____Third Party JDBC Drivers

|_____WebLogic Server Clients

|_____WebLogic Web Server Plugins

|_____UDDI and Xquery Support

|_____Evaluation Database

*Estimated size of installation: 678.8 MB

 

Enter [Exit][Previous][Next]>Next 回车

14)等待安装完成后,输入Exit 回车,回到命令台。

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installing files..

0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]

 

Performing String Substitutions...

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Configuring OCM...

0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]

 

Creating Domains...

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installation Complete

 

Congratulations! Installation is complete.

 

Press [Enter] to continue or type [Exit]>Exit

 

【配置Domain域】

域是逻辑上相关的一组Server资源,是一个服务实例的集合,可以理解成一个应用或一个网站。在所有域中,分为管理服务器和被管服务器。若只有一个WebLogic Server实例,则该服务器既充当管理服务器又充当受管服务器。

1)进入WebLogic安装目录,执行config.sh,进入创建域命令台。

cd /home/weblogic/wlserver_10.3/common/bin,执行./config.sh

2)选择进入新建域模式,输入1,回车。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Welcome:

--------

Choose between creating and extending a domain. Based on your selection,

the Configuration Wizard guides you through the steps to generate a new or

extend an existing domain.

->1|Create a new WebLogic domain

|    Create a WebLogic domain in your projects directory.

2|Extend an existing WebLogic domain

|    Use this option to add new components to an existing domain and modify    |configuration settings.

 

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

3)选择域源,输入1,回车。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Domain Source:

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

Select the source from which the domain will be created. You can create the

domain by selecting from the required components or by selecting from a

list of existing domain templates.

->1|Choose Weblogic Platform components

|    You can choose the Weblogic component(s) that you want supported in

|your domain.

2|Choose custom template

|    Choose this option if you want to use an existing  template. This

|could be a custom created template using the Template Builder.

 

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

4)应用程序模板选择,输入Next,回车。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:

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

 

Available Templates

|_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x

|_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2]

|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3]

|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4]

 

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>Next

5)域名称设定,输入域名称,回车。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:

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

|  Name  |    Value    |

_|________|_____________|

1| *Name: | base_domain |

 

Enter value for "Name" OR [Exit][Previous][Next]> website 回车

6)域名称确认,输入Next,回车。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:

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

|  Name  |  Value  |

_|________|_________|

1| *Name: | website |

Use above value or select another option:

1 - Modify "Name"

2 - Discard Changes

 

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

7)域安装目录选择,输入域安装目录,回车。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:

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

"Target Location" = [Enter new value or use default

"/home/weblogic/user_projects/domains"]

Enter new Target Location OR [Exit][Previous][Next]> /home/webapp 回车

8)配置管理员用户名密码,经过好几步的反复确认密码。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:

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

Create a user to be assigned to the Administrator role. This user is the

default administrator used to start development mode servers.

|          Name           |                  Value                  |

_|_________________________|_________________________________________|

1|         *Name:          |                weblogic                 |

2|     *User password:     |                                         |

3| *Confirm user password: |                                         |

4|      Description:       | This user is the default administrator. |

Use above value or select another option:

1 - Modify "Name"

2 - Modify "User password"

3 - Modify "Confirm user password"

4 - Modify "Description"

 

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

9)域模式配置(1为开发模式,2为生产模式),我们选择2。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Domain Mode Configuration:

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

Enable Development or Production Mode for this domain.

->1|Development Mode

2|Production Mode

 

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

10)java SDK选择,输入next,回车。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:

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

->1|N/A SDK 1.6.0_24 @ /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64

2|Other Java SDK

 

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

11)选择配置

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:

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

1|Administration Server [ ]

2|Managed Servers, Clusters and Machines [ ]

3|RDBMS Security Store [ ]

 

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

12)创建域成功

<------------------- Fusion Middleware Configuration Wizard ------------------>

Creating Domain...

0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]

 

**** Domain Created Successfully! ****

【使用WebLogic】

进入WebLogic中间件安装目录下,user_projects/domains/base_domain/bin,执行启动文件startWebLogic.sh。

发现每次启动服务都要输入帐号密码,为避免每次输入,进入安装目录:

user_projects/domains/base_domain/servers/AdminServer,在该文件夹下创建文件夹mkdir security,在此目录下创建文件vi boot.properties,i模式写入如下:

username=wweblogic

password=weblogic123

然后保存退出,重启weblogic就不再需要输入用户密码了。

至此,WebLogic主服务部署就算完成了。

weblogic

» 声明:本站文章源于个人经验总结或书籍、互联网转载,内容仅用于个人学习,请勿转载,否则后果自负!

目前有 1 条留言 其中:访客:1 条, 博主:0 条

  1. 衣皇后 : 2017年06月05日16:21:16  -49楼 @回复 回复

    相当精彩的博客!

给我留言

留言无头像?