起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 229|回复: 10

【结帖】『急』tomcat无法正常启动**

[复制链接]
发表于 2008-3-27 16:53:11 | 显示全部楼层 |阅读模式
tomcat无法正常启动错误信息是如图所示:

11111.gif

63.38 KB, 下载次数: 128

回复

使用道具 举报

发表于 2008-3-27 16:59:24 | 显示全部楼层
检查网络、端口是否好的,数据库是否能连上
回复 支持 反对

使用道具 举报

发表于 2008-3-27 17:07:50 | 显示全部楼层
停电后就起不来了,换目录重装依然如此:(其他目前应该是没动过
我先回复个老库看看是不是数据库损坏了
回复 支持 反对

使用道具 举报

发表于 2008-3-27 17:17:36 | 显示全部楼层
重起下机器看看
回复 支持 反对

使用道具 举报

发表于 2008-3-27 17:18:53 | 显示全部楼层
重启了,和库无关。还有什么原因呢?
回复 支持 反对

使用道具 举报

发表于 2008-3-27 17:26:09 | 显示全部楼层
数据库启动没有?
回复 支持 反对

使用道具 举报

发表于 2008-3-28 09:31:31 | 显示全部楼层

搞定了

原因是:1433端口不可用了。为什么变成不可用就不知道了:(
把SQLServer和config.justep.xml的端口都改成1434还报这个错误(1434可用)
最后还是开开1433就好了。
可以结贴了,谢谢刘哥曹姐贾兄方兄
回复 支持 反对

使用道具 举报

发表于 2008-3-28 09:36:52 | 显示全部楼层
好,谢谢反馈,结贴!
回复 支持 反对

使用道具 举报

发表于 2008-3-28 09:38:07 | 显示全部楼层
SQL Server实际用了两个端口 1433  1434 每个端口有自己的用处
1433可以改成用其他端口,但是不能改成用1434端口
请参考 http://www.diybl.com/course/7_da ... /2007106/76994.html
SqlServer服务使用两个端口:TCP-1433、UDP-1434。其中1433用于供SqlServer对外提供服务,1434用于向请求者返回SqlServer使用了那个TCP/IP端口。
回复 支持 反对

使用道具 举报

发表于 2008-3-28 09:41:26 | 显示全部楼层
或者参考 http://msdn2.microsoft.com/en-us/library/ms181087.aspx
====================
Background
Prior to Microsoft SQL Server 2000, only one instance of SQL Server could be installed on a computer. SQL Server listened for incoming requests on port 1433, assigned to SQL Server by the official Internet Assigned Numbers Authority (IANA). Only one instance of SQL Server can use a port, so when SQL Server 2000 introduced support for multiple instances of SQL Server, SQL Server Resolution Protocol (SSRP) was developed to listen on UDP port 1434. This listener service responded to client requests with the names of the installed instances, and the ports or named pipes used by the instance. To resolve limitations of the SSRP system, SQL Server 2005 introduces the SQL Server Browser service as a replacement for SSRP.

How SQL Server Browser Works
When an instance of SQL Server starts, if the TCP/IP or VIA protocols are enabled for SQL Server, the server is assigned a TCP/IP port. If the named pipes protocol is enabled, SQL Server listens on a specific named pipe. This port, or "pipe," is used by that specific instance to exchange data with client applications. During installation, TCP port 1433 and pipe \sql\query are assigned to the default instance, but those can be changed later by the server administrator using SQL Server Configuration Manager. Because only one instance of SQL Server can use a port or pipe, different port numbers and pipe names are assigned for named instances, including SQL Server Express. By default, when enabled, both named instances and SQL Server Express are configured to use dynamic ports, that is, an available port is assigned when SQL Server starts. If you want, a specific port can be assigned to an instance of SQL Server. When connecting, clients can specify a specific port; but if the port is dynamically assigned, the port number can change anytime SQL Server is restarted, so the correct port number is unknown to the client.

Upon startup, SQL Server Browser starts and claims UDP port 1434. SQL Server Browser reads the registry, identifies all instances of SQL Server on the computer, and notes the ports and named pipes that they use. When a server has two or more network cards, SQL Server Browser returns the first enabled port it encounters for SQL Server. SQL Server 2005 and SQL Server Browser support ipv6 and ipv4.

When SQL Server 2000 and SQL Server 2005 clients request SQL Server resources on a named instance, the client network library sends a UDP message to the server using port 1434. SQL Server Browser responds with the TCP/IP port or named pipe of the requested instance. The network library on the client application then completes the connection by sending a request to the server using the port or named pipe of the desired instance.

For information about starting and stopping the SQL Server Browser service, see "How to: Start and Stop the SQL Server Browser Service" in SQL Server Books Online.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-7-9 22:48 , Processed in 0.042413 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表