[精讚] [會員登入]
324

how to stop wildfly keeping standalone server log

how to stop wildfly keeping standalone server log

分享此文連結 //n.sfs.tw/13241

分享連結 how to stop wildfly keeping standalone server log@外行中的外行
(文章歡迎轉載,務必尊重版權註明連結來源)
2020-03-13 22:06:21 最後編修
2019-04-11 10:21:01 By jung
 

有二個方法可以停止wildfly自己保存在standalone目錄下的server log

1. 直接修改standalone-full-ha.xml

位於wildfly/standalone/configuration

將root-logger handlers註解掉

<root-logger>
                <level name="INFO"/>
                <handlers>
                <!--
                    <handler name="CONSOLE"/>
                    <handler name="FILE"/>
                -->

                </handlers>
</root-logger>

systemctl restart wildfly

此方式須重新啟動wildfly,查網路資料有些人不建議在運行中的服務上使用

2. 查到第二種方法,使用CLI命令去處理

先登入wildfly console

sh /opt/wildfly/bin/jboss-cli.sh --connect controller=127.0.0.1 -c

 

/subsystem=logging/root-logger=ROOT:remove-handler(name="CONSOLE")

 

再檢查standalone.xml

發現<handler name="CONSOLE"/>

這行被CLI命令拿掉了

 

 

END

你可能感興趣的文章

how to stop wildfly keeping standalone server log how to stop wildfly keeping standalone server log

openssl package update issue caused by cve-2022-2068 centos7 is at maintenance support phase2, only critical impact security issues will be patched

specific instructions to create a maven archetype from local existing project. Generate an archetype from the project

unknown issue after downgrade to intellij idea community version 使用社群版遇到的奇怪問題

using google Appscript to send messages through LINE NOTIFY 使用google app script傳送LINE NOTIFY

how to make wicket web application runs under docker enviorment with correct encoding 在docker環境下,wicket web application 編碼錯誤的問題

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

縣市IDP更換SSL憑證及修改servername+wildfly等設定 縣市IDP更換SSL

在windows環境下強制刪除無法以檔案總管刪除的檔案或目錄 how to remove directories or files that cannot be deleted by default file manager

被蘋果帳號釣魚網站詐騙的心得 請小心小額電信代收費詐騙

更新程式環境到wildfly18+openjdk11-phase3: 伺服器環境升級準備 upgrade jdk and wildfly on server

ubuntu18.04網路設定無法啟動問題 network connection failed due to networkmanager settings