weblogic清除緩衝

來源:互聯網
上載者:User

標籤:main   其他   環境   安全認證   清除   開發環境   dom   cts   背景   

背景:在開發調試或測試時,很多時候重新更新部署服務後會發現某些更新並沒有體現到,還是之前的情況,也或者會出現其他錯誤問題,這個時候就要考慮到可能是weblogic緩衝未清理引起。

 可以先嘗試下面這種做法:

如果發布到weblogic的工程,登入發現還是原來的代碼錯誤,可嘗試清理weblogic緩衝:
1.在weblogic控制台中停止應用,刪除部署的工程
2.登入weblogic伺服器,刪除以下目錄中的shgfmis目錄:    

  D:\bea\user_projects\domains\shgfmis\servers\AdminServer\tmp\_WL_user

  D:\bea\user_projects\domains\shgfmis\config\deployments

  開發環境刪除以下目錄下的shgfmis目錄:   

  D:\bea\user_projects\domains\shgfmis\servers\AdminServer\tmp\_WL_user

  D:\bea\user_projects\domains\shgfmis\config\deployments

 
3.重新部署工程

 

【注】:其中shgfmis是我工程的名字

 

如:

cd weblogic/user_projects/domains/yypt_domain/servers/yypt_adminserver/tmp/_WL_user

rm -r yypt 

 

刪除yypt緩衝 

然後重啟weblogic

 

如果上面這個方法還是不起作用,試一下下面這個清除所有的緩衝:

清理緩衝步驟如下:

1、前置條件:停止服務

2、找到下面3個目錄,然後將裡面的檔案刪除即可:

……/user_projects/domains/base_domain/servers/AdminServer/tmp/ 
……/user_projects/domains/base_domain/servers/AdminServer/cache/ 
……/user_projects/domains/base_domain/config/deployments/

注意:在cache目錄下如發現有security 檔案夾,該檔案夾為安全認證檔案,不可刪除。通常測試模式的服務自動會產生該檔案,而生產模式則需人為建立。

3、重啟服務即可完成

 

weblogic清除緩衝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.