解决Sql server用管理器可以连接但Tomcat无法连接的端口问题。-图文

时间: 2011-01-26 / 分类: Database / 浏览次数: 1,042 views / 0个评论 发表评论

image 

管理器可以连接……

tomcat 报错如下。

Cannot create PoolableConnectionFactory (The TCP/IP connection to the host 192.168.3.114, port 1433 has failed. Error: Connection refused: connect. Please verify the connection properties and check that a SQL Server instance is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.)

image

打开sql server 配置管理中心

image

启用TCP/IP 并双击打开属性。

image

发现端口都空着,

image

加上1433

image

需要重启服务器

image

重启后,搞定!

发表评论

您的昵称 *

您的邮箱 *

您的网站