weblogicfor linux安裝_第1頁(yè)
weblogicfor linux安裝_第2頁(yè)
weblogicfor linux安裝_第3頁(yè)
weblogicfor linux安裝_第4頁(yè)
weblogicfor linux安裝_第5頁(yè)
已閱讀5頁(yè),還剩16頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、 Linux AS 4 下WebLogic 安裝注意: 配置文字可能有所不同,請(qǐng)按照文字說(shuō)明信息操作.1.1 部署前準(zhǔn)備把WebLogic的bin包放在/home目錄上. 1、創(chuàng)建weblogic用戶組。        groupadd weblogic        useradd -g weblogic weblogic        passwd weblogic(修改weblogic密碼)2、創(chuàng)建/

2、var/web/jsp/bea目錄,修改目錄所有者權(quán)限        mkdir /var/web/jsp/bea        chown Rf weblogic:weblogic /var/web/jsp/bea3、用weblogic用戶登陸系統(tǒng),修改配置文件。        vi /.bash_profile增加export LANG=en_US.iso8859151.2 安裝We

3、bLogic 8.1賦予.bin可執(zhí)行權(quán)限:chmod a+x weblogic_server816_linux32.bin執(zhí)行./weblogic_server816_linux32.bin -mode=console      進(jìn)入控制臺(tái)安裝的歡迎界面,鍵入Next繼續(xù)      此時(shí)出現(xiàn)授權(quán)許可協(xié)議,讀完后鍵入Yes繼續(xù)      提示選擇一個(gè)BEA主目錄:輸入:/var/web/jsp/bea確認(rèn)BEA主目錄,  鍵入1繼續(xù)選擇

4、安裝類型, 鍵入1繼續(xù)選擇安裝路徑,默認(rèn),輸入next繼續(xù)。確認(rèn)安裝路徑。鍵入1繼續(xù)安裝完畢。注:(兩個(gè)補(bǔ)丁文件見(jiàn)補(bǔ)丁包的說(shuō)明) 1.3 創(chuàng)建服務(wù)使用WebLogic用戶登錄系統(tǒng):weblogicjcms bin$ cd /var/web/jsp/bea/weblogic81/common/binweblogicjcms bin$ ./config.sh Unable to instantiate GUI, defaulting to console mode.進(jìn)入設(shè)置:<- BEA WebLogic Configuration Wizard ->&#

5、160;Create or Extend a Configuration:- Choose between creating and extending a configuration. Based on your selection, the Configuration Wizard guides you through the steps to generate a new or extend an existing configuration.  ->1|Create a new WebLogic configuration  &#

6、160; |    Start here to create a WebLogic configuration in your projects directory.     2|Extend an existing WebLogic configuration    |    Start here to extend an existing WebLogic configuration. Use this option to add applications an

7、d services, including Database |    access (JDBC) and Messaging (JMS). This option also enables you to extend functionality by enabling WebLogic Workshop.    Enter index number to select OR ExitNext> 1  <- BEA WebLogic Configuration Wizard -> Sel

8、ect a Domain Template:- Please select a template from the list or select another directory of templates. */home/weblogic/bea/weblogic81/common/templates/domains    1|Basic WebLogic Platform Domain .0    | BEA Systems, Inc.    | Cr

9、eate a basic WebLogic Platform domain, without installing sample applications. Domains created from this template will support the     |WebLogic Server, WebLogic Workshop, WebLogic Integration and WebLogic Portal runtime functionality, including support for J2EE    

10、; |applications, Web applications, Web Services, custom controls, business processes and portals. Use domains created from this template     |for development of WebLogic Platform applications.    2|Basic WebLogic Portal Domain .0   | BEA Systems

11、, Inc.    | Create a basic WebLogic Portal domain, without installing sample applications.   Domains created from this template will support the     |WebLogic Server, WebLogic Workshop and WebLogic Portal runtime functionality, including support for J2EE

12、applications, Web applications,     |Web Services, custom controls and portals. Use domains created from this template for development of WebLogic Portal applications.  3|Basic WebLogic Integration Domain .0  | BEA Systems, Inc.    | C

13、reate a basic WebLogic Integration domain, without installing sample applications.   Domains created from this template will support     |the WebLogic Server, WebLogic Workshop and WebLogic Integration runtime functionality, including support for J2EE applications, Web  

14、; |applications, Web Services, custom controls and business processes. Use domains created from this template for development of WebLogic     |Integration applications.      4|Basic WebLogic Workshop Domain .0   | BEA Systems, Inc.

15、0;Enter index number to select OR DownExitPreviousNext> down   <- BEA WebLogic Configuration Wizard -> Select a Domain Template:- Please select a template from the list or select another directory of templates.     | Create a basic WebLogic

16、Workshop domain, without installing sample applications.   Domains created from this template will support the     |WebLogic Server and WebLogic Workshop runtime functionality, including support for J2EE applications, Web applications, Web Services and   

17、  |custom controls. Use domains created from this template for development of WebLogic Workshop applications.  ->5|Basic WebLogic Server Domain .0    | BEA Systems, Inc.    | Create a basic WebLogic Server domain without installing sampl

18、e applications.    6|WebLogic Server Examples Domain .0    | BEA Systems, Inc.    | Create the WebLogic Server Examples domain in a directory outside of the installed kit. The Examples domain contains a collection of     |exa

19、mples to show best practices for coding individual J2EE APIs.    7|Avitek Medical Records Sample Domain .0    | BEA Systems, Inc.    | Create the Avitek Medical Records domain in a directory outside of the installed kit. The Avitek Medical

20、Records is a WebLogic Server     |sample application suite that concisely demonstrates all aspects of the J2EE platform.    8|Select another directory location  Enter index number to select OR UpExitPreviousNext>5 <- BEA WebLogic Configuration

21、Wizard -> Select a Domain Template:- Please select a template from the list or select another directory of templates.    *The selected template is the same as the one you are working on. Do you     *want to reload the template ?  ->1|Yes &

22、#160;  2|No  Enter index number to select OR ExitNext> 1<- BEA WebLogic Configuration Wizard -> Choose Configuration Option:-     *Do you want to run the wizard in express mode? ->1|Yes   2|No Enter index number to select OR Exi

23、tPreviousNext> 1 <- BEA WebLogic Configuration Wizard -> Configure Administrative Username and Password:- Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start development mode servers.     |&

24、#160;         Name           |              Value              |   _|_

25、|_|   1|       *User name:       |            weblogic             |   2|     *User p

26、assword:     |                                 |   3| *Confirm user password: |     &

27、#160;                           |   4|      Description:       | The default administration user | S

28、elect Option:    1 - Modify "User name"    2 - Modify "User password"    3 - Modify "Confirm user password"    4 - Modify "Description" Enter option number to select OR ExitPreviousNext> 2

29、0;<- BEA WebLogic Configuration Wizard -> Configure Administrative Username and Password:- Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start development mode servers.     "*User password:&quo

30、t; =  Input new *User password: OR ExitResetAccept> 輸入八位密碼   <- BEA WebLogic Configuration Wizard -> Configure Administrative Username and Password: - Create a user automatically assigned to the Administrative Role. This user is the default administrator used t

31、o start development mode servers.      |          Name           |              Value     

32、         |   _|_|_|   1|       *User name:       |            weblogic         

33、   |   2|     *User password:     |             *              |   3| *Confirm user password: | 

34、;                                |   4|      Description:       | The default ad

35、ministration user | Select Option:    1 - Modify "User name"    2 - Modify "User password"    3 - Modify "Confirm user password"    4 - Modify "Description"    5 - Discard Changes&

36、#160;Enter option number to select OR ExitPreviousNext> 3 <- BEA WebLogic Configuration Wizard -> Configure Administrative Username and Password:- Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start development

37、 mode servers.     "*Confirm user password:" =  Input new *Confirm user password: OR ExitResetAccept> 確認(rèn)八位密碼 /口令必須與上面的一樣  <- BEA WebLogic Configuration Wizard -> Configure Administrative Username and Password:- Create a user automa

38、tically assigned to the Administrative Role. This user is the default administrator used to start development mode servers.          |          Name           |

39、              Value              |   _|_|_|   1|       *User name:       |  

40、0;         weblogic             |   2|     *User password:     |            *   

41、          |   3| *Confirm user password: |            *             |   4|      Description:

42、60;      | The default administration user | Select Option:    1 - Modify "User name"    2 - Modify "User password"    3 - Modify "Confirm user password"    4 - Modify "Descri

43、ption"    5 - Discard Changes Enter option number to select OR ExitPreviousNext> next  <- BEA WebLogic Configuration Wizard -> Domain Mode Configuration:- Enable Development or Production Mode for this domain.   ->1|Development Mode&

44、#160;   2|Production Mode Enter index number to select OR ExitPreviousNext> 2  <- BEA WebLogic Configuration Wizard -> Java SDK Selection:-  ->1|JRockit SDK _04-8130 /home/weblogic/bea/jrockit81sp3_142_04  2|Sun SDK _04 /home/weblogic/bea

45、/jdk142_04   3|Other Java SDK Enter index number to select OR ExitPreviousNext> 1  <- BEA WebLogic Configuration Wizard -> Select the target domain directory for this configuration:-     "Target Location" = /home/weblogic/bea/user_

46、projects/domains Input new Target Location OR ExitPreviousNext> 直接回車 <- BEA WebLogic Configuration Wizard -> Edit Domain Information:-     | Name | Value   |   _|_|_|   1| *Name: | mydomain | Enter value fo

47、r "Name" OR ExitPreviousNext> 輸入名稱或者直接回車   <- BEA WebLogic Configuration Wizard -> Creating Domain. 0%          25%          50%      &#

48、160;   75%          100%-|-|-|-*  * Domain Created Successfully! *完成服務(wù)的建立! 1.4 部署應(yīng)用        啟動(dòng)和關(guān)閉1、如何啟動(dòng)WebLogicweblogicjcms bin$ cd /var/web/jsp/bea/user_projects/domains/mydomainweblogicjcms

49、 bin$ ./startWebLogic.sh    (需要輸入用戶名密碼) 2、如何關(guān)閉WebLogicweblogicjcms bin$ ./stopWebLogic.sh           設(shè)置自動(dòng)啟動(dòng)WebLogic1、無(wú)需輸入用戶名密碼啟動(dòng)關(guān)閉weblogic。以weblogic賬戶在mydomain目錄下,新建perties文件,輸入: password=12345678username=weblogic 

50、;把啟動(dòng)weblogic的用戶名密碼寫進(jìn)入。 2、修改starWeblogic.sh和stopWeblogic腳本startWeblogic.sh /usr/bin/nohup$JAVA_HOME weblogic.Server > /var/web/weblogic.log 2>&1 注意:紅色部分為添加的命令。意為將啟動(dòng)腳本放到后臺(tái)執(zhí)行,并輸出日志。    stopWeblogic.sh     #!/bin/sh    腳本內(nèi)容(刪除這段腳

51、本,用于身份驗(yàn)證,刪除后就無(wú)需輸入用戶名密碼)# set server name     3、將weblogic的啟動(dòng)關(guān)閉作為linux系統(tǒng)服務(wù)。以root賬戶在/etc/init.d下新建weblogic文件,內(nèi)容如下:                   #!/bin/sh# chkconfig: 345 20 80# description: Weblogic auto start-stop

52、 script. DOMAIN_HOME=/var/web/jsp/user_projects/domains/mydomainWLS_OWNER=weblogic           case "$1" in     'start')     su - $WLS_OWNER -c "cd $DOMAIN_HOME; ./startWebLogic.sh&quo

53、t;     ;     'stop')     su - $WLS_OWNER -c "cd $DOMAIN_HOME; ./stopWebLogic.sh"     ;Esac 其中DOMAIN_HOME是你創(chuàng)建的用戶域的路徑。文件配置好后,就可以利用linux的服務(wù)來(lái)啟動(dòng)和關(guān)閉weblogic了。#service weblogic start 4、隨系統(tǒng)自動(dòng)啟動(dòng)和關(guān)閉webl

54、ogic      以root用戶執(zhí)行如下命令:              ln -s /etc/init.d/weblogic /etc/rc.d/rc1.d/K80weblogicln -s /etc/init.d/weblogic /etc/rc.d/rc2.d/S20weblogicln -s /etc/init.d/weblogic /etc/rc.d/rc3.d/S20weblogicln -s /etc/init

55、.d/weblogic /etc/rc.d/rc4.d/S20weblogicln -s /etc/init.d/weblogic /etc/rc.d/rc5.d/S20weblogicln -s /etc/init.d/weblogic /etc/rc.d/rc6.d/K80weblogic 另外,其實(shí)我們也可以通過(guò)運(yùn)行setup命令,在system services里面設(shè)置weblogic服務(wù)是否自動(dòng)啟動(dòng)。  1.5 常見(jiàn)問(wèn)題FAQA:weblogic無(wú)法啟動(dòng),錯(cuò)誤信息<error>包含如下,    <

56、Error> <EmbeddedLDAP> <000000> <Error opening the Transaction Log: ./myserver/ldap/ldapfiles/EmbeddedLDAP.tran: Permission denied> Q:LDAP啟動(dòng)失敗,導(dǎo)致的問(wèn)題可能是用root賬戶啟動(dòng)了weblogic。檢查mydomain目錄下myserver/ldap/ldapfiles下的文件權(quán)限,是否是weblogic用戶組,如果還是無(wú)法啟動(dòng),請(qǐng)刪除.tran文件。 A:weblogic無(wú)法啟動(dòng),錯(cuò)誤信息&l

57、t;error>包含如下,     <Error> <Deployer> <BEA-149204> <The deployment framework was unable to register with the Data Replication Service. <Error> <Deployer> <BEA-149601> <The deployment framework was unable to resume accepting requests.>

58、; Q:?jiǎn)栴}是管理域無(wú)法與用戶域通信。查看linux系統(tǒng)主機(jī)名,查看/etc/hosts文件,看是否有如下一行主機(jī)記錄,如果沒(méi)有,請(qǐng)將這一行記錄加入到/etc/hosts文件中。             localhost.localdomain    localhost        沒(méi)有這一行記錄,就會(huì)導(dǎo)致啟動(dòng)失敗,一般在安裝系統(tǒng)時(shí),設(shè)置了主機(jī)名、有兩塊網(wǎng)卡,在設(shè)置

59、主機(jī)名時(shí),上面的記錄就沒(méi)有了。 1.     安裝部署1.1 部署前準(zhǔn)備把WebLogic的bin包放在/home目錄上. 1、創(chuàng)建weblogic用戶組。        groupadd weblogic        useradd -g weblogic weblogic        passwd weblogic(修改weblogic密碼)2、創(chuàng)建/var/

60、web/jsp/bea目錄,修改目錄所有者權(quán)限        mkdir /var/web/jsp/bea        chown Rf weblogic:weblogic /var/web/jsp/bea3、用weblogic用戶登陸系統(tǒng),修改配置文件。        vi /.bash_profile增加export LANG=en_US.iso8859151.2 安裝WebLog

61、ic 8.1賦予.bin可執(zhí)行權(quán)限:chmod a+x weblogic_server816_linux32.bin執(zhí)行./weblogic_server816_linux32.bin -mode=console      進(jìn)入控制臺(tái)安裝的歡迎界面,鍵入Next繼續(xù)      此時(shí)出現(xiàn)授權(quán)許可協(xié)議,讀完后鍵入Yes繼續(xù)      提示選擇一個(gè)BEA主目錄:輸入:/var/web/jsp/bea確認(rèn)BEA主目錄,  鍵入1繼續(xù)選擇安裝類型

62、, 鍵入1繼續(xù)選擇安裝路徑,默認(rèn),輸入next繼續(xù)。確認(rèn)安裝路徑。鍵入1繼續(xù)安裝完畢。注:(兩個(gè)補(bǔ)丁文件見(jiàn)補(bǔ)丁包的說(shuō)明) 1.3 創(chuàng)建服務(wù)使用WebLogic用戶登錄系統(tǒng):weblogicjcms bin$ cd /var/web/jsp/bea/weblogic81/common/binweblogicjcms bin$ ./config.sh Unable to instantiate GUI, defaulting to console mode.進(jìn)入設(shè)置:<- BEA WebLogic Configuration Wizard -> 

63、Create or Extend a Configuration:- Choose between creating and extending a configuration. Based on your selection, the Configuration Wizard guides you through the steps to generate a new or extend an existing configuration.  ->1|Create a new WebLogic configuration   

64、 |    Start here to create a WebLogic configuration in your projects directory.     2|Extend an existing WebLogic configuration    |    Start here to extend an existing WebLogic configuration. Use this option to add applications and se

65、rvices, including Database |    access (JDBC) and Messaging (JMS). This option also enables you to extend functionality by enabling WebLogic Workshop.    Enter index number to select OR ExitNext> 1  <- BEA WebLogic Configuration Wizard -> Select

66、a Domain Template:- Please select a template from the list or select another directory of templates. */home/weblogic/bea/weblogic81/common/templates/domains    1|Basic WebLogic Platform Domain .0    | BEA Systems, Inc.    | Create

67、 a basic WebLogic Platform domain, without installing sample applications. Domains created from this template will support the     |WebLogic Server, WebLogic Workshop, WebLogic Integration and WebLogic Portal runtime functionality, including support for J2EE     |a

68、pplications, Web applications, Web Services, custom controls, business processes and portals. Use domains created from this template     |for development of WebLogic Platform applications.    2|Basic WebLogic Portal Domain .0   | BEA Systems, In

69、c.    | Create a basic WebLogic Portal domain, without installing sample applications.   Domains created from this template will support the     |WebLogic Server, WebLogic Workshop and WebLogic Portal runtime functionality, including support for J2EE appl

70、ications, Web applications,     |Web Services, custom controls and portals. Use domains created from this template for development of WebLogic Portal applications.  3|Basic WebLogic Integration Domain .0  | BEA Systems, Inc.    | Creat

71、e a basic WebLogic Integration domain, without installing sample applications.   Domains created from this template will support     |the WebLogic Server, WebLogic Workshop and WebLogic Integration runtime functionality, including support for J2EE applications, Web  

72、60;|applications, Web Services, custom controls and business processes. Use domains created from this template for development of WebLogic     |Integration applications.      4|Basic WebLogic Workshop Domain .0   | BEA Systems, Inc. Enter index number to select OR DownExitPreviousNext> down   <- BEA WebLogic Configuration Wizard -> Select a Doma

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論