本机启动,报错 java.net.ConnectException: Connection refused: connect java.rmi.ConnectException: Connection refused to host: 0.0.0.0; nested exception is: java.net.ConnectException: Connection refused: connect -------------------------------------- 搜了半天, (1)查看/etc/sysconfig/network文件,内容如下 NETWORKING=yes HOSTNAME=centOs6
(2)查看/etc/hosts文件,只有如下内容 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
(3)看来是主机名centOs6解析不了的问题。 增加 127.0.0.1 centOs6 localhost localhost4 localhost4.localdomain4
实际的服务器,应该写外网IP吧,我这是本机,就写127.0.0.1了。
(4)搞定。
|