安装openfire遇到的两个问题

1 填写数据库连接信息之后,日志出现java.net.ConnectException: connection refused错误,检查了防火墙配置之后都没有发现问题,最后在mysql文档 http://dev.mysql.com/doc/refman/5.1/en/can-not-connect-to-server.html  里找到

写道
If the server was started with --bind-address=127.0.0.1, it will listen for TCP/IP connections only locally on the loopback interface and will not accept remote connections.

 于是在my.cnf里注释掉里 bind-address . 接着telnet localhost 3306 成功

2 填写完管理员密码后,点击继续,出现HTTP 500错误,google后,把 /etc/hosts里的127.0.0.1 localhost 改成127.0.0.1 localhost example.com 之后顺利解决问题.

猜你喜欢

转载自franzcai.iteye.com/blog/812007