[精讚] [會員登入]
524

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

你可能感興趣的文章

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

intellij IDEA git設定說明 whenever using git push fuction in the intellij IDEA

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

如何用git log功能產生有固定格式的commit紀錄 how to create a git commit history log file with custom format

安裝netbeans9遇到的小狀況 how to show netbeans9 program onto ubuntu desktop

更新java版本後一定要做的事情 how to deal with PKIX path building failed issue after upgrade java sdk version in IDE

隨機好文

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

設定win10開機自動執行openvpn連接vpn server how to make win10 connecting to a vpn server automactically after booting up

在virtualbox如何壓縮vdi檔 using commands to reduce virtualbox's vdi file space

IIS10設定url rewrite to https if you setup url rewrite function in IIS10, might cause api callback failed

在新版谷歌協作平台嵌入edimax或lass空氣盒子讀取數值並視覺化 embeeded javascript to read and visualized lass json value on new google site