《weblogic8.1.6forlinux安装说明书.docx》由会员分享,可在线阅读,更多相关《weblogic8.1.6forlinux安装说明书.docx(14页珍藏版)》请在课桌文档上搜索。
1、LinuxAS4下WebLogic安装注意:配置文字可能有所不同,请按照文字说明信息操作.工工部署前准备把WebLogic的bin包放在/home目录上.1、创立WeblOgiC用户组。groupaddweblogicuseradd-gweblogicweblogicpasswdweblogic(修改WeblogiC密码)2、仓IJ立varwebjspbea目录,修改目录所有者权限mkdirvarwebjspbeachown-RfWeblogicjweblogicvarwebjspbea3、用WebIogiC用户登陆系统,修改配置文件。vi/.bash_profile增力IlexportLAN
2、G=en_US.iso8859151.2安装WebLogic8.1赋予.bin可执行权限:chmoda+xweblogic_server816_linux32.bin执行./weblogic_server816_linux32.bin-mode=console进入控制台安装的欢迎界面,键入Next继续此时出现授权许可协议,读完后键入Yes继续提示选择一个BEA主目录:输入:varwebjspbea确认BEA主目录,键入1继续选择安装类型,键入1继续选择安装路径,默认,输入next继续。确认安装路径。键入1继续安装完毕。注:(两个补丁文件见补丁包的说明)1.3创立服务使用WebLogic用户登录
3、系统:weblogicjcmsbin$cdvarwebjspbeaweblogic81commonbinweblogicjcmsbin$./config.shUnabletoinstantiateGUIzdefaultingtoconsolemode.进入设置:CreateorExtendaConfiguration:Choosebetweencreatingandextendingaconfiguration.Basedonyourselection,theConfigurationWizardguidesyouthroughthestepstogenerateaneworextendane
4、xistingconfiguration.-11CreateanewWebLogicconfigurationIStartheretocreateaWebLogicconfigurationinyourprojectsdirectory.21ExtendanexistingWebLogicconfigurationIStartheretoextendanexistingWebLogicconfiguration.Usethisoptiontoaddapplicationsandservices,includingDatabaseIaccess(JDBC)andMessaging(JMS).Th
5、isoptionalsoenablesyoutoextendfunctionalitybyenablingWebLogicWorkshop.EnterindexnumbertoselectORExitNext1downSelectaDomainTemplate:Pleaseselectatemplatefromthelistorselectanotherdirectoryoftemplates.ICreateabasicWebLogicWorkshopdomain,withoutinstilingsampleapplications.Domainscreatedfromthistemplate
6、willsupporttheWebLogicServerandWebLogicWorkshopruntimefunctionality,includingsupportforJ2EEapplications,Webapplications,WebServicesandcustomcontrols.UsedomainscreatedfromthistemplatefordevelopmentofWebLogicWorkshopapplications.-5BasicWebLogicServerDomain8.1.3.0IBEASystems,Inc.ICreateabasicWebLogicSe
7、rverdomainwithoutinstallingsampleapplications.61WebLogicServerExamplesDomain8.1.3.0IBEASystems,Inc.ICreatetheWebLogicServerExamplesdomaininadirectoryoutsideoftheinstalledkit.TheExamplesdomaincontainsacollectionof!examplestoshowbestpracticesforcodingindividualJ2EEAPIs.71AvitekMedicalRecordsSampleDoma
8、in8.1.3.0IBEASystems,Inc.ICreatetheAvitekMedicalRecordsdomaininadirectoryoutsideoftheinstalledkit.TheAvitekMedicalRecordsisaWebLogicServersampleapplicationsuitethatconciselydemonstratesallaspectsoftheJ2EEplatform.81SelectanotherdirectorylocationEnterindexnumbertoselectORUpExitPreviousNext5SelectaDom
9、ainTemplate:Pleaseselectatemplatefromthelistorselectanotherdirectoryoftemplates.*Theselectedtemplateisthesameastheoneyouareworkingon.Doyou*wanttoreloadthetemplate?-lYes2NoEnterindexnumbertoselectORExitNext1lYes2NoEnterindexnumbertoselectORExitPreviousNext12输入八位密码3确认八位密码/口令必须与上面的一样next11DevelopmentMo
10、de21ProductionModeEnterindexnumbertoselectORExitPreviousNext2JavaSDKSelection:-1IJRockitSDK1.4.2_04-8130/home/weblogic/bea/jrockit81sp3_142_042SunSDK1.4.2_04/home/weblogic/bea/jdkl42_0431OtherJavaSDKEnterindexnumbertoselectORExitPreviousNext1直接回车输入名称或者直接回车varwebweblogic.log2&1注意:红色局部为添加的命令。意为将启动脚本放到
11、后台执行,并输出日志。 StoPWeblOgiC.sh#!/bin/sh脚本内容(删除这段脚本,用于身份验证,删除后就无需输入用户名密码)#setservername3、将WebIogiC的启动关闭作为IinUX系统服务。以root账户在etcinit.d下新建weblogic文件,内容如下:#!/bin/sh# Chkconfig:3452080# description:Weblogicautostart-stopscript.DOMAIN_HOME=/var/web/jsp/user_projects/domains/mydomainWLS_OWNER=weblogiccase$1ins
12、tart)su-$WLS_0WNER-ccd$D0MAIN_H0ME;./startWebLogic.sh,stop)SU-$WLS_0WNER-ccd$D0MAIN_H0ME;.stopWebLogic.sh,Esac其中DOMAlN_HOME是你创立的用户域的路径。文件配置好后,就可以利用IinUX的服务来启动和关闭weblogic了。#serviceweblogicstart4、随系统自动启动和关闭WebIOgiC以root用户执行如下命令:In-Setcinit.dweblogicetcrc.drcl.dK80weblogicIn-Setcinit.dweblogicetcrc.drc
13、2.dS20weblogicIn-Setcinit.dweblogicetcrc.drc3.dS20weblogicIn-Setcinit.dweblogicetcrc.drc4.dS20weblogicIn-Setcinit.dweblogicetcrc.drc5.dS20weblogicIn-Setcinit.dweblogicetcrc.drc6.dK80weblogic另外,其实我们也可以通过运行setup命令,在systemservices里面设置weblogic服务是否自动启动61.5常见问题FAQA:WeblogiC无法启动,错误信息VerrOr包含如下,Q:LDAP启动失败,导
14、致的问题可能是用root账户启动了weblogic。检查mydomain目录下myserverldapIdaPfiIeS下的文件权限,是否是WeblogiC用户组,如果还是无法启动,请删除.ten文件。A:WeblogiC无法启动,错误信息VerrOr包含如下,ThedeploymentframeworkwasunabletoregisterwiththeDataReplicationService.Q:问题是管理域无法与用户域通信。查看IinUX系统主机名,查看etchosts文件,看是否有如下一行主机记录,如果没有,请将这一行记录参加到etchosts文件中。127.0.0.1Iocalh
15、ost.Iocaldomainlocalhost没有这一行记录,就会导致启动失败,一般在安装系统时,设置了主机名、有两块网卡,在设置主机名时,上面的记录就没有了。1 .安装部署部署前准备把WebLogic的bin包放在/home目录上.1、创立WeblOgiC用户组。groupaddweblogicuseradd-gweblogicweblogicpasswdweblogic(修改WeblogiC密码)2、仓IJ立varwebjspbea目录,修改目录所有者权限mkdirvarwebjspbeachown-RfWeblogiciweblogicvarwebjspbea3、用WebIogiC用户
16、登陆系统,修改配置文件。Vi/.bash_profile增力IlexportLANG=en_US.iso8859151.2安装WebLogic8.1赋予.bin可执行权限:chmoda+xweblogic_server816_linux32.bin执行./weblogic_server816Jinux32.bin-mode=console进入控制台安装的欢迎界面,键入Next继续此时出现授权许可协议,读完后键入Yes继续提示选择一个BEA主目录:输入:varwebjspbea确认BEA主目录,键入1继续选择安装类型,键入1继续选择安装路径,默认,输入next继续。确认安装路径。键入1继续安装完
17、毕。注:(两个补丁文件见补丁包的说明)工3创立服务使用WebLogiC用户登录系统:weblogicjcmsbin$cdvarwebjspbeaweblogic81commonbinweblogicjcmsbin$./config.shUnabletoinstantiateGUI,defaultingtoconsolemode.进入设置:CreateorExtendaConfiguration:Choosebetweencreatingandextendingaconfiguration.Basedonyourselection,theConfigurationWizardguidesyout
18、hroughthestepstogenerateaneworextendanexistingconfiguration.-11CreateanewWebLogicconfigurationIStartheretocreateaWebLogicconfigurationinyourprojectsdirectory.21ExtendanexistingWebLogicconfigurationIStartheretoextendanexistingWebLogicconfiguration.Usethisoptiontoaddapplicationsandservices,includingDa
19、tabaseIaccess(JDBC)andMessaging(JMS).ThisoptionalsoenablesyoutoextendfunctionalitybyenablingWebLogicWorkshop.EnterindexnumbertoselectORExitNext1down5BasicWebLogicServerDomain8.1.3.0IBEASystems,Inc.ICreateabasicWebLogicServerdomainwithoutinstallingsampleapplications.61WebLogicServerExamplesDomain8.1.
20、3.0IBEASystems,Inc.ICreatetheWebLogicServerExamplesdomaininadirectoryoutsideoftheinstalledkit.TheExamplesdomaincontainsacollectionof!examplestoshowbestpracticesforcodingindividualJ2EEAPIs.71AvitekMedicalRecordsSampleDomain8.1.3.0IBEASystems,Inc.ICreatetheAvitekMedicalRecordsdomaininadirectoryoutside
21、oftheinstalledkit.TheAvitekMedicalRecordsisaWebLogicServersampleapplicationsuitethatconciselydemonstratesallaspectsoftheJ2EEplatform.81SelectanotherdirectorylocationEnterindexnumbertoselectORUpExitPreviousNext5SelectaDomainTemplate:Pleaseselectatemplatefromthelistorselectanotherdirectoryoftemplates.
22、*Theselectedtemplateisthesameastheoneyouareworkingon.Doyou*wanttoreloadthetemplate?-lYes2NoEnterindexnumbertoselectORExitNext1lYes2NoEnterindexnumbertoselectORExitPreviousNext1BEAWebLogicConfigurationWizardConfigureAdministrativeUsernameandPassword:CreateauserautomaticallyassignedtotheAdministrativeRole.Thisuseristhedefaultadministratorusedtostartdevelopmentmodeservers.INameValue-III1*Username:weblogic2*Userpassword:3*Confirmuserpassword:4Description: