JavaDB有端口连接错误。 [英] JavaDB having port connection error.

查看:226
本文介绍了JavaDB有端口连接错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次使用JavaDB,我无法让我的程序运行。每当我运行它,我得到这个错误:

I am using JavaDB for the first time and I am having trouble getting my program to run. Whenever I run it I get this error:

连接到服务器localhost在端口1527上与消息连接拒绝:连接

"Error connecting to server localhost on port 1527 with message Connection refused: connect"

我的数据库和代码都设置好,当我在某人elses电脑上运行它工作正常,但在我的它不是。我使用Netbeans 7.3.1,因为这是我必须用于学校的版本。我不知道是什么导致这个,我可以真的使用一些帮助。如果你有任何问题或希望我发布一些代码只是让我知道。

My database and code are all setup okay as when I ran it on someone elses computer it worked fine, but on mine it doesn't. I'm using Netbeans 7.3.1 as that is the version I have to use for school. I am not sure what is causing this and I could really use some help. If you have any questions or want me to post some code just let me know.

感谢

推荐答案

在您的电脑上?

在Windows上:

netstat -an | find ":PORT_NUMBER"

netstat -an |grep PORT_NUMBER

out它被一些其他应用程序使用你可以做两件事之一:

If it turns out it is used by some other application you can do one of two things:

1)免费端口

2)更改您的应用程序正在运行的端口

2) Change the port your app is running on

也有可能,JavaDB在不同的端口上运行,另一个则需要更改它

It might also be possible, that JavaDB is running on a different port and another you will have to either change it in DB or your app anyway.

编辑:这是另一种检查端口的方法

Here are another ways of checking the port How to determine if a port is open on a Windows server?

这篇关于JavaDB有端口连接错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆