WebLogic在Linux上的安装及项目部署全套方案.docx

上传人:b****7 文档编号:11078412 上传时间:2023-02-24 格式:DOCX 页数:30 大小:812.78KB
下载 相关 举报
WebLogic在Linux上的安装及项目部署全套方案.docx_第1页
第1页 / 共30页
WebLogic在Linux上的安装及项目部署全套方案.docx_第2页
第2页 / 共30页
WebLogic在Linux上的安装及项目部署全套方案.docx_第3页
第3页 / 共30页
WebLogic在Linux上的安装及项目部署全套方案.docx_第4页
第4页 / 共30页
WebLogic在Linux上的安装及项目部署全套方案.docx_第5页
第5页 / 共30页
点击查看更多>>
下载资源
资源描述

WebLogic在Linux上的安装及项目部署全套方案.docx

《WebLogic在Linux上的安装及项目部署全套方案.docx》由会员分享,可在线阅读,更多相关《WebLogic在Linux上的安装及项目部署全套方案.docx(30页珍藏版)》请在冰豆网上搜索。

WebLogic在Linux上的安装及项目部署全套方案.docx

WebLogic在Linux上的安装及项目部署全套方案

Weblogic在Linux上的安装及部署

一说明:

系统:

RedHatEnterpriseLinux

数据库:

oracle10g

WebLogic版本:

10

那个地址只配置到JDBC资源的创建剩下的是各公司研发的情形

二:

安装.

1:

安装前预备

以root用户登录

1:

创建用户组:

groupadd用户组名

2:

创建用户,并把该用户建于该组之下:

useradd–g用户组名–p用户组名用户名

3:

为用户创建密码:

passwd用户名

4:

创建安装目标录.mkdir文件夹名

5:

给用户授权

Chown–R用户组名.用户安装目录

Chmod–R755安装目录

Xhost+(这句话专门好用必然要记得对oracle也很适用)

6:

注意:

将安装文件所在文件夹授予新建Weblogic用户与安装目录相同的权限.不然即便在Weblogic用户的根目录之下,文件由Weblogic用户上传,Weblogic用户仍然没有安装权限(安装文件所在文件夹是由root用户创建的吗?

待确认)

2:

安装

运行安装文件,会弹出个图形窗口(假设弹不出图形窗口那就麻烦老多了,详情请翻到此文档最后。

),尔后依照提示就能够够一步步进行安装(中文的,很方便),而且很多都能够直接利用默许设置.需要注意的是:

1:

这儿能够去掉中间”我希望通过……”的勾选,然后直接下一步

2:

(本图非实截图,从别处借用,只是选项和内容大体一致)

在安装完成的界面上,会有一个运行QuickStart的选项,若是勾选运行,会进入图形化的配置向导,创建新的域或扩展现有域.

3:

配置

1:

进入安装目录,执行命令:

./config.sh-mode=console进入操纵台配置向导

进入图形化配置向导

2:

此处以创建新的域为例,直接下一步.

3:

继续下一步

4:

在那个地址能够修改你的域名和域位置,然后下一步

5:

创建治理该域(数据源配置,项目部署等)的用户名和密码,Weblogic默许要求密码不能少于八位,且不能少了数字和字符.

配置好以后选择下一步.

6:

选择效劳器启动模式和JDK,那个版本自带有JDK6.0,能够选择默许,只是前面的开发模式和生产模式需要有所选择,我最终配置成功的是开发模式,此处以之为准.

7:

选择可选配置,能够不选,也能够全选.临时没发觉阻碍.

8:

配置治理效劳器,一样能够把SSL勾选上.

9:

直接默许下一步

10:

继续下一步

11:

再下一步

12:

配置数据库(可选)

13:

点创建,完成配置.

三:

部署项目

1:

启动效劳:

进入weblogi安装目录/weblogic/user_projects/domains/你适才创建的域名/

执行:

然后就能够够登录

进行数据源的配置和项目的部署

2:

配置数据源

1:

用你适才配置的用户名和密码登录

2:

在左侧的导航条选中效劳-----JBDC-------数据源.

这儿其实有很多说明和帮忙,而且仍是中文的,大伙儿能够进一步深切研究.

3:

选中导航栏的数据源,右边显现你之前配置的数据源.选择新建,进入下面的页面

4

依照提示填上数据源的名称和JNDI的名称,和选择数据库的类型,数据库驱动类(注意驱动类版本与你所利用的数据库的版本)

注意:

若是你要发布包括润乾报表的项目,你此处的数据源名字必需和你在编辑报表时所配置的数据源名称一致(源能够不一致,但名称必需一致),不单单是ReportConfig.xml中的数据源名.

5:

默许下一步

6:

依照提示填写数据库信息,其中的主机名能够是IP.

7:

测试数据库访问,并能够直接完成数据源的配置.

8:

这一步很重要,因为项目都是部署在这些效劳器内的,若是你没有为你的数据源选择目标,那么他就可不能发布到该效劳器上,也确实是说在该效劳器上是没有数据源的,你部署这去的项目就找不到数据源.

9:

这是建完的结果,注意,若是你的数据源后面的目标为空,那么说明那个数据源是没有被利用的,也确实是说,它是不能够访问的.若是要使创建的数据源能够利用,能够选中该数据源的名字,必点击,进入下面一步.

10

点击目标

11:

勾选以后,保留

12:

再点击导航栏的数据源,就能够够看到该数据已经有目标了.你的项目部署到相应的效劳器上后就有数据源能够访问了.

3部署项目

1:

点击导航栏的部署,再在右边选择安装

2:

在这会先显现文件夹,直到你选中能够发布的文件或文件夹.

注意:

一样而言,WebLogic都将项目部署在你所创建的域下面的applications文件夹下.能够是War包,也能够是文件夹,若是是文件夹,有可能会在你定位到WebRoot时才能选中发布,如此发布的项目是不成功的.

3:

下一步

4:

这儿必需选择一个效劳器,固然也能够多项选择,默许是没选的,选了以后下一步.

5:

能够直接点击完成.如此,你的项目就部署成功了.

6:

注意:

你的项目必需是活动的,且健康状况是OK的,才是能够访问的.

若是不是,勾选它,更新或启动.

 

无图形安装配置模式

执行./platform814_linux32.bin-mode=console

进入操纵台安装的欢迎界面,键入[Next]继续

现在显现授权许可协议,读完后键入[Yes]继续

提示选择一个BEA主目录:

输入:

/var/web/jsp/bea

确认BEA主目录,

键入[1]继续

选择安装类型,键入[1]继续

选择安装途径,默许,输入[next]继续。

确认安装途径。

键入[1]继续

安装完毕。

注:

(两个补丁文件见补丁包的说明)

1.3创建效劳

利用WebLogic用户登录系统:

[weblogic@jcmsbin]$cd/var/web/jsp/bea/weblogic81/common/bin

 

UnabletoinstantiateGUI,defaultingtoconsolemode.

进入设置:

CreateorExtendaConfiguration:

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

Choosebetweencreatingandextendingaconfiguration.Basedonyourselection,theConfigurationWizardguidesyouthroughthestepsto

generateaneworextendanexistingconfiguration.

->1|CreateanewWebLogicconfiguration

|StartheretocreateaWebLogicconfigurationinyourprojectsdirectory.

2|ExtendanexistingWebLogicconfiguration

|StartheretoextendanexistingWebLogicconfiguration.Usethisoptiontoaddapplicationsandservices,includingDatabase

|access(JDBC)andMessaging(JMS).ThisoptionalsoenablesyoutoextendfunctionalitybyenablingWebLogicWorkshop.

 

EnterindexnumbertoselectOR[Exit][Next]>1

 

SelectaDomainTemplate:

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

Pleaseselectatemplatefromthelistorselectanotherdirectoryoftemplates.

*[/home/weblogic/bea/weblogic81/common/templates/domains]

 

|BEASystems,Inc.

|CreateabasicWebLogicPlatformdomain,withoutinstallingsampleapplications.Domainscreatedfromthistemplatewillsupportthe

|WebLogicServer,WebLogicWorkshop,WebLogicIntegrationandWebLogicPortalruntimefunctionality,includingsupportforJ2EE

|applications,Webapplications,WebServices,customcontrols,businessprocessesandportals.Usedomainscreatedfromthistemplate

|fordevelopmentofWebLogicPlatformapplications.

 

|BEASystems,Inc.

|CreateabasicWebLogicPortaldomain,withoutinstallingsampleapplications.Domainscreatedfromthistemplatewillsupportthe

|WebLogicServer,WebLogicWorkshopandWebLogicPortalruntimefunctionality,includingsupportforJ2EEapplications,Webapplications,

|WebServices,customcontrolsandportals.UsedomainscreatedfromthistemplatefordevelopmentofWebLogicPortalapplications.

 

 |BEASystems,Inc.

|CreateabasicWebLogicIntegrationdomain,withoutinstallingsampleapplications.Domainscreatedfromthistemplatewillsupport

|theWebLogicServer,WebLogicWorkshopandWebLogicIntegrationruntimefunctionality,includingsupportforJ2EEapplications,Web

  |applications,WebServices,customcontrolsandbusinessprocesses.UsedomainscreatedfromthistemplatefordevelopmentofWebLogic

  |Integrationapplications.

 

 |BEASystems,Inc.

EnterindexnumbertoselectOR[Down][Exit][Previous][Next]>down

 

SelectaDomainTemplate:

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

Pleaseselectatemplatefromthelistorselectanotherdirectoryoftemplates.

|CreateabasicWebLogicWorkshopdomain,withoutinstallingsampleapplications.Domainscreatedfromthistemplatewillsupportthe|WebLogicServerandWebLogicWorkshopruntimefunctionality,includingsupportforJ2EEapplications,Webapplications,WebServicesand|customcontrols.UsedomainscreatedfromthistemplatefordevelopmentofWebLogicWorkshopapplications.

 

|BEASystems,Inc.

|CreateabasicWebLogicServerdomainwithoutinstallingsampleapplications.

 

|BEASystems,Inc.

|CreatetheWebLogicServerExamplesdomaininadirectoryoutsideoftheinstalledkit.TheExamplesdomaincontainsacollectionof

|examplestoshowbestpracticesforcodingindividualJ2EEAPIs.

 

|BEASystems,Inc.

|CreatetheAvitekMedicalRecordsdomaininadirectoryoutsideoftheinstalledkit.TheAvitekMedicalRecordsisaWebLogicServer|sampleapplicationsuitethatconciselydemonstratesallaspectsoftheJ2EEplatform.

8|Selectanotherdirectorylocation

 

EnterindexnumbertoselectOR[Up][Exit][Previous][Next]>5

 

SelectaDomainTemplate:

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

Pleaseselectatemplatefromthelistorselectanotherdirectoryoftemplates.

*Theselectedtemplateisthesameastheoneyouareworkingon.Doyou

*wanttoreloadthetemplate?

->1|Yes

2|No

 

EnterindexnumbertoselectOR[Exit][Next]>1

ChooseConfigurationOption:

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

*Doyouwanttorunthewizardinexpressmode?

->1|Yes

2|No

EnterindexnumbertoselectOR[Exit][Previous][Next]>1

 

ConfigureAdministrativeUsernameandPassword:

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

CreateauserautomaticallyassignedtotheAdministrativeRole.Thisuseristhedefaultadministratorusedtostartdevelopmentmode

servers.

|Name|Value|

_|_________________________|_________________________________|

1|*Username:

|weblogic|

2|*Userpassword:

||

3|*Confirmuserpassword:

||

4|Description:

|Thedefaultadministrationuser|

SelectOption:

1-Modify"Username"

2-Modify"Userpassword"

3-Modify"Confirmuserpassword"

4-Modify"Description"

EnteroptionnumbertoselectOR[Exit][Previous][Next]>2

 

ConfigureAdministrativeUsernameandPassword:

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

CreateauserautomaticallyassignedtotheAdministrativeRole.Thisuseristhedefaultadministratorusedtostartdevelopmentmode

servers.

"*Userpassword:

"=[]

Inputnew*Userpassword:

OR[Exit][Reset][Accept]>[输入八位密码]

 

ConfigureAdministrativeUsernameandPassword:

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

CreateauserautomaticallyassignedtotheAdministrativeRole.Thisuseristhedefaultadministratorusedtostartdevelopmentmode

servers.

 

|Name|Value|

_|_________________________|_________________________________|

1|*Username:

|weblogic|

2|*Userpassword:

|******|

3|*Confirmuserpassword:

||

4|Description:

|Thedefaultadministrationuser|

SelectOption:

1-Modify"Username"

2-Modify"Userpassword"

3-Modify"Confirmuserpassword"

4-Modify"Description"

5-DiscardChanges

EnteroptionnumbertoselectOR[Exit][Previous][Next]>3

 

ConfigureAdministrativeUsernameandPassword:

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

CreateauserautomaticallyassignedtotheAdministrativeRole.Thisuseristhedefaultadministratorusedtostartdevelopmentmode

servers.

"*Confirmuserpassword:

"=[]

Inputnew*Confirmuserpassword:

OR[Exit][Reset][Accept]>[确认八位密码]///口令必需与上面的一样

 

ConfigureAdministrativeUsernameandPassword:

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

CreateauserautomaticallyassignedtotheAdministrativeRole.Thisuseristhedefaultadministratorusedtostartdevelopmentmode

servers.

 

|Name|Value|

_|_________________________|_________________________________|

1|*Username:

|weblogic|

2|*Userpassword:

|********|

3|*Confirmuserpassword:

|********|

4|Description:

|Thedefaultadministrationuser|

SelectOption:

1-Modify"Username"

2-Modify"Userpassword"

3-Modify"Confirmuserpassword"

4-Modify"Description"

5-DiscardChanges

EnteroptionnumbertoselectOR[Exit][Previous][Next]>next

 

DomainModeConfiguration:

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

EnableDevelopmentorProductionModeforthisdomain.

->1|DevelopmentMode

2|ProductionMode

EnterindexnumbertoselectOR[Exit][Previous][Next]>2

 

JavaSDKSelection:

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

->1|JRockitSDK1.4.2_04-8130@/home/weblogic/bea/jrockit81sp3_142_04

2|SunSDK1.4.2_04@/home/weblogic/bea/jdk142_04

3|OtherJavaSDK

EnterindexnumbertoselectOR[Exit][Previous][Next]>1

 

Selectthetargetdomaindirectoryforthisconfiguration:

--

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工程科技 > 能源化工

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1