[精讚] [會員登入]
513

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

你可能感興趣的文章

[NetBeans]如何從git下載專案改建為自己的專案 修改git專案

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

在IDEA從JDK8升級到JDK11遇到的奇怪問題 在IDEA遇到的JAVA11函式庫引入問題

使用virtualbox每次都忘記的事情 share folder from win host to linux guest vm

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

使用letsEncrypt替換docker容器內的nginx https憑證 using cerbot for nginx on oracle linux 9

隨機好文

回應 修正pom.xml,

使用virtualbox每次都忘記的事情 share folder from win host to linux guest vm

新增IDP程式使用google防機器人的驗證功能 身份認證程式新增google防機器人v2

在debian9使用apt-key add gpg key from ubuntu keyserver

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