1. 进入openfire的安装目录下--->进入conf文件夹--->打开openfire.xml文件--->将<setup>true</setup>中的true改为false 这样不用用户名和密码也可以登陆
2. 将openfire.xml文件中
<admin>
<authorizedUsernames>jimuser</authorizedUsernames></admin>
<adminConsole>
<!-- Disable either port by setting the value to -1 -->
<port>9090</port>
<securePort>9091</securePort>
</adminConsole>
红色代码处改为自己的用户名。
如果配置好数据库之后,可以用MYSQL对openfire进行用户名和密码的重新设置。参考以下网址:http://blog.taragana.com/index.php/archive/how-to-recover-openfire-admin-password/