openfire管理控制台綁定設置 Openfire (Jabber/XMPP server) by default binds on port 8080 which is also used by Tomcat. openfire ( Jabber /用戶服務器)默認情況下具有約束力,對港口8080 ,這也是所用的Tomcat 。 This causes Tomcat to fail when openfire is started before it.這會導致失敗的Tomcat時, openfire是開始在它的前面。 The solution, as always, is simple.該解決方案,一如往常,很簡單。

You can either change the port of Openfire or Tomcat.您可以改變港口openfire或雄貓。 Alternatively you can bind them on different IP addresses in machines with multiple interfaces or use 127.0.0.1 for one and the IP address associated with the ethernet card for another.或者,您也可以約束他們對不同的IP地址在機器具有多個接口或使用127.0.0.1為1和IP地址與以太網卡為另一個。 Here are the steps to change the port (simplest solution):這裡是步驟,以改變港口(簡單的解決辦法) :

How to change Openfire default http port (8080)如何改變openfire默認的HTTP端口( 8080 )

1. 1 。 To configure openfire browse to http://localhost:9090/.配置openfire瀏覽到http://localhost:9090/ 。

2. 2 。 Login with the password you had previously provided.登錄與密碼,您以前曾提供。
Note: Look here to注意:看看這裡 recover openfire admin password收回openfire管理員密碼 .

3. 3 。 Click on Http Binding to either disable it or use a different port like 7070.點擊HTTP的約束力要么禁用它,或使用一個不同的港口一樣, 7070 。

4. 4 。 Now stop and start openfire (openfire/bin/openfire stop && openfire/bin/openfire start) to use the new port.現在停止,並開始openfire ( openfire /斌/ openfire停止& & openfire /斌/ openfire開始)以使用新的港口。

How to change Tomcat default port (8080)如何改變的Tomcat默認端口( 8080 )

1. 1 。 Open server.xml and search for a line starting with:開放的server.xml和搜索為一條線開始:

2. 2 。 Change the port value (default 8080) to a port number of your choice改變港口的價值(默認8080 )連接埠號碼您選擇

3. 3 。 Restart tomcat (/sbin/service tomcat5 restart).重新啟動Tomcat和( / sbin /服務tomcat5重新啟動) 。

I prefer changing the port of Openfire.我寧願改變港口openfire 。

Notes:註釋:
1. 1 。 Tomcat is reference implementation of Servlet & JSP specification and is one of the most popular JSP & Servlet container雄貓是參考執行的Servlet & JSP的規格和是其中一個最熱門的JSP & Servlet的貨櫃
2. 2 。 Openfire is a popular Jabber (XMPP protocol) server ( openfire是一個受歡迎的Jabber (協議的)服務器( Openfire usage notes openfire使用筆記 ). ) 。