linux的openfire執行日誌配置經歷

2022-09-05 12:33:09 字數 762 閱讀 8679

openfire的日誌可以通過/usr/openfire/lib/log4j.xml(與openfire的安裝目錄有關,我的openfire是安裝在/usr/openfire/)的xml配置檔案進行設定logs檔案的位置,但是我在對openfire的進行日誌檔案配置後(通過設定openfirehone環境變數值export openfirehome=/usr/openfire),一直無法在/usr/openfire/logs/目錄下生成info.log、debug.log、error.log、warn.log幾個日誌檔案,直到昨天才發現在日誌檔案生成在根目錄下的logs資料夾即/logs/。網上說openfirehome的環境變數值,但實際上我已經在/etc/profild中設定了export openfirehome=/usr/openfire環境變數值。但是openfire執行時,的值為空的,$/logs/debug.log替換後變成/logs/debug.log。為了讓日誌檔案生成在/usr/openfire/logs中,我測試了兩種實現方式。

把中的值改為,以此類推。

把中的值改為,以此類推,不過個人不建議設定成絕對路徑,還是使用相對路徑實現。

網上介紹設定openfirehome環境變數值,就可以實現定義openfire的日誌路徑,個人認為這種方式最好,但是我沒有測試成功,有待後續繼續研究。

<?xml version="1.0" encoding="utf-8" ?>

<?xml version="1.0" encoding="utf-8" ?>

openfire的集群研究

研究了幾個月的openfire的集群,今天終於有點眉目了。分享一下。openfire的集群通過外掛程式整合到伺服器中。該外掛程式使用oracle coherence。oracle coherence是乙個分布式的快取方案,並且通過集群為應用提供強大的快取後備支援。coherence主要是記憶體快取,...

linux下部署openfire伺服器

openfire伺服器的安裝依賴於jdk以及資料庫 mysql為例 一 安裝jdk 2 安裝rpm包 sudo yum y localinstall mysql community release el7 5.noarch.rpm 3 安裝mysql sudo yum y install mysql...

支援redfire的openfire版本

查了一下,最新的openfire好像不支援redfire,最後找到了openfire3.7.1版本支援最新的rredfire 0.0.3.2 openfire3.7.1 rredfire 0.0.3.2 rredfire 0.0.3.2安裝在rredfire 0.0.3.2的plugins裡面。會有...