Weblogic10 常用linux指令

來源:互聯網
上載者:User
文章目錄

 

一.Weblogic 建立域

域目錄/servers/AdminServer 路徑下

以weblogic帳號登入(與建立域目錄相對應賬戶)

cd /home/weblogic/bea/weblogic92/common/bin

執行./config.sh進入配置介面。配置步驟如下:

1.Choose between creating and extending a domain,選擇Create a new WebLogic domain

2.Select Domain Source,選擇Choose Weblogic Platform components

3.Enter the location of the domain template, _____Workshop for WebLogic Platform [2] x 斷行符號

4.Configure Administrator Username and Password,修改系統管理使用者的使用者名稱、密碼

5.Domain Mode Configuration,選擇Development Mode

6.Java SDK Selection,選擇預設的Sun SDK 1.5.0_12 @ /usr/java/jdk1.5.0_12

7.Choose Configuration Option,選擇Yes

8.Configure the Administration Server,預設Listen port為7001,需要修改為80

9.Configure Managed Servers

10.Configure Clusters

11.Configure Machines

12.Configure Unix Machines

13.Select the target domain directory for this domain

14.Edit Domain Information,修改網域名稱為life

15.建立的life域位於/home/weblogic/bea/user_projects/domains目錄下

 

二.Weblogic10生產模式啟動不用輸入使用者名稱密碼

域目錄/servers/AdminServer 路徑下

建立/security/boot.properties boot.properties

編輯內容:

username=weblogic

password=88888888

然後啟動 ./startWeblogic.sh -Dweblogic.system.StoreBootIdentity=true

只需要第一次這樣執行,以後直接用./startWeblogic.sh &正常啟動即可。

 

三.Linux下啟動關閉WebLogic,讓startWebLogic.sh在後台啟動並執行兩種方法

第一種,這種方法最常用:

鍵入 nohup ./startWebLogic.sh & (&的作用是可以使服務在後台啟動)

或者 nohup ./startWebLogic.sh >out.log 2>&1 &

使用命令tail -f 文字檔名即可監視遠程檔案的變動情況,例如要監視Weblogic某一域的日誌輸出只需要輸入命令:tail -f nohup.out

第二種,當上面的sh需要與使用者互動(比如需要輸入使用者名稱,口令),可以這樣:

鍵入 ./startWebLogic.sh
#進行互動操作 ...
按下 "ctrl + z"
輸入 "bg" 程式進入後台運行

 

停止後台weblocgic

# ./stopWebLogic

一般情況很難關閉,需要殺掉後台進程(經常這樣)
查看後台java進程
#ps -ef|grep java 如:
root 123456 2346546
root 1346464 64646464 java/.......
殺後台進程 :#kill -9 1346464

  轉載請標明出處 http://blog.csdn.net/shimiso 

技術交流群:173711587

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.