




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、 Linux AS 4 下WebLogic 安裝注意: 配置文字可能有所不同,請按照文字說明信息操作.1.1 部署前準備把WebLogic的bin包放在/home目錄上. 1、創(chuàng)建weblogic用戶組。 groupadd weblogic useradd -g weblogic weblogic passwd weblogic(修改weblogic密碼)2、創(chuàng)建/
2、var/web/jsp/bea目錄,修改目錄所有者權限 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í)行權限:chmod a+x weblogic_server816_linux32.bin執(zhí)行./weblogic_server816_linux32.bin -mode=console 進入控制臺安裝的歡迎界面,鍵入Next繼續(xù) 此時出現(xiàn)授權許可協(xié)議,讀完后鍵入Yes繼續(xù) 提示選擇一個BEA主目錄:輸入:/var/web/jsp/bea確認BEA主目錄, 鍵入1繼續(xù)選擇
4、安裝類型, 鍵入1繼續(xù)選擇安裝路徑,默認,輸入next繼續(xù)。確認安裝路徑。鍵入1繼續(xù)安裝完畢。注:(兩個補丁文件見補丁包的說明) 1.3 創(chuàng)建服務使用WebLogic用戶登錄系統(tǒng):weblogicjcms bin$ cd /var/web/jsp/bea/weblogic81/common/binweblogicjcms bin$ ./config.sh Unable to instantiate GUI, defaulting to console mode.進入設置:<- 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> 確認八位密碼 /口令必須與上面的一樣 <- 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! *完成服務的建立! 1.4 部署應用 啟動和關閉1、如何啟動WebLogicweblogicjcms bin$ cd /var/web/jsp/bea/user_projects/domains/mydomainweblogicjcms
49、 bin$ ./startWebLogic.sh (需要輸入用戶名密碼) 2、如何關閉WebLogicweblogicjcms bin$ ./stopWebLogic.sh 設置自動啟動WebLogic1、無需輸入用戶名密碼啟動關閉weblogic。以weblogic賬戶在mydomain目錄下,新建perties文件,輸入: password=12345678username=weblogic
50、;把啟動weblogic的用戶名密碼寫進入。 2、修改starWeblogic.sh和stopWeblogic腳本startWeblogic.sh /usr/bin/nohup$JAVA_HOME weblogic.Server > /var/web/weblogic.log 2>&1 注意:紅色部分為添加的命令。意為將啟動腳本放到后臺執(zhí)行,并輸出日志。 stopWeblogic.sh #!/bin/sh 腳本內容(刪除這段腳
51、本,用于身份驗證,刪除后就無需輸入用戶名密碼)# set server name 3、將weblogic的啟動關閉作為linux系統(tǒng)服務。以root賬戶在/etc/init.d下新建weblogic文件,內容如下: #!/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的服務來啟動和關閉weblogic了。#service weblogic start 4、隨系統(tǒng)自動啟動和關閉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 另外,其實我們也可以通過運行setup命令,在system services里面設置weblogic服務是否自動啟動。 1.5 常見問題FAQA:weblogic無法啟動,錯誤信息<error>包含如下, <
56、Error> <EmbeddedLDAP> <000000> <Error opening the Transaction Log: ./myserver/ldap/ldapfiles/EmbeddedLDAP.tran: Permission denied> Q:LDAP啟動失敗,導致的問題可能是用root賬戶啟動了weblogic。檢查mydomain目錄下myserver/ldap/ldapfiles下的文件權限,是否是weblogic用戶組,如果還是無法啟動,請刪除.tran文件。 A:weblogic無法啟動,錯誤信息&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:問題是管理域無法與用戶域通信。查看linux系統(tǒng)主機名,查看/etc/hosts文件,看是否有如下一行主機記錄,如果沒有,請將這一行記錄加入到/etc/hosts文件中。 localhost.localdomain localhost 沒有這一行記錄,就會導致啟動失敗,一般在安裝系統(tǒng)時,設置了主機名、有兩塊網(wǎng)卡,在設置
59、主機名時,上面的記錄就沒有了。 1. 安裝部署1.1 部署前準備把WebLogic的bin包放在/home目錄上. 1、創(chuàng)建weblogic用戶組。 groupadd weblogic useradd -g weblogic weblogic passwd weblogic(修改weblogic密碼)2、創(chuàng)建/var/
60、web/jsp/bea目錄,修改目錄所有者權限 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í)行權限:chmod a+x weblogic_server816_linux32.bin執(zhí)行./weblogic_server816_linux32.bin -mode=console 進入控制臺安裝的歡迎界面,鍵入Next繼續(xù) 此時出現(xiàn)授權許可協(xié)議,讀完后鍵入Yes繼續(xù) 提示選擇一個BEA主目錄:輸入:/var/web/jsp/bea確認BEA主目錄, 鍵入1繼續(xù)選擇安裝類型
62、, 鍵入1繼續(xù)選擇安裝路徑,默認,輸入next繼續(xù)。確認安裝路徑。鍵入1繼續(xù)安裝完畢。注:(兩個補丁文件見補丁包的說明) 1.3 創(chuàng)建服務使用WebLogic用戶登錄系統(tǒng):weblogicjcms bin$ cd /var/web/jsp/bea/weblogic81/common/binweblogicjcms bin$ ./config.sh Unable to instantiate GUI, defaulting to console mode.進入設置:<- 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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- (2025)重點項目玻纖復合材料建設項目可行性研究報告申請立項備案可修改
- 中國商業(yè)綜合體行業(yè)發(fā)展趨勢預測及投資戰(zhàn)略咨詢報告
- 中國礦渣棉行業(yè)市場發(fā)展監(jiān)測及投資前景展望報告
- 2025年中國充氣攀巖跑道行業(yè)市場發(fā)展前景及發(fā)展趨勢與投資戰(zhàn)略研究報告
- 中國丁腈橡膠(液體)項目投資可行性研究報告
- 自行車漲閘行業(yè)深度研究分析報告(2024-2030版)
- 2025年中國LNG汽車行業(yè)發(fā)展?jié)摿︻A測及投資戰(zhàn)略研究報告
- 中國伺服馬達用線行業(yè)市場深度分析及投資戰(zhàn)略規(guī)劃研究報告
- 中國環(huán)保型免洗助焊劑行業(yè)市場發(fā)展前景及發(fā)展趨勢與投資戰(zhàn)略研究報告(2024-2030)
- 2025年硬質材料加工機床及其零件項目投資分析及可行性報告
- 2025盤錦市雙臺子區(qū)輔警考試試卷真題
- DB13T 2770-2018 焊接熔深檢測方法
- 關于衛(wèi)生院“十五五”發(fā)展規(guī)劃(完整本)
- 夫妻存款贈與協(xié)議書
- 2025海南中考:歷史必考知識點
- 2024年常州工學院輔導員考試真題
- 公司財務內控培訓
- 付款合同協(xié)議書范本
- 陪玩團轉讓合同協(xié)議
- 水電材料供貨商技術方案范文
- 2024-2025學年蘇教版七年級生物下冊知識點復習提綱
評論
0/150
提交評論