jboss單機和集羣配置須要注意的幾個關鍵點,親測總結!

一、確保安裝正確的jdk,最好是1.6,這個比較穩定web

二、配置jdk的家目錄和環境變量ide

三、配置jboss的家目錄,並設置環境變量spa

四、正確建立起止腳本:it

   啓動:io

   nohup ./run.sh -b 0.0.0.0 >nohup.out & //startJboss.shconsole

   增長執行權限    0.0.0.0爲訪問源class

   中止:
集羣

   ./shutdown.sh –S  // shutdownJboss.sh變量

五、正確配置jmx-console 密碼,在配置web-console 密碼時要手動建立相應文件 user 和 role 參        考jmx-consolejdk

六、配置正確的端口

七、建立集羣啓動腳本:


   集羣節點1:

   nohup ./run.sh -c all -g DocsPartition -u 239.255.100.100 -b 0.0.0.0

   -D jboss.messaging.ServerPeerID=1 >nohup.out &


   集羣節點2:

   nohup ./run.sh -c all -g DocsPartition -u 239.255.100.100 -b 0.0.0.0

   -D jboss.messaging.ServerPeerID=2 >nohup.out &


參數-c使用all配置項,該配置項包含集羣的配置項,參數-g設置集羣的名稱。參數-u設置集羣內節點交互的多播地址。參數-b設置訪問源的地址,參數-D設置系統屬性jboss.messaging.ServerPeerId的值,JBoss消息須要這個值在羣中要求惟一。

相關文章
相關標籤/搜索