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使用笔记 ). ) 。