SQL Server 2005 使用的端口及改变其默认端口的方法

   Updated: 2009-10-11 23:18       SQL Server 2005 使用的端口及改变其默认端口的方法无评论

SQL Server2000 所使用的所有端口:

  1. SQL Server 服务使用两个端口:TCP-1433、UDP-1434。其中 1433 用于供 SQL Server 对外提供服务,1434 用于向请求者返回 SQL Server 使用了那个 TCP/IP 端口。
  2. SQL Server Agent 服务使用 TCP-1625、TCP-1640 端口提供服务。
  3. SQL 查询分析器通过 1601 端口访问 1433,连接 SQL Server。

另外在网上查到 SQL Server2005 使用的端口,无相关解释:

  1. Port 1433 (UDP/TCP) SQL Server Engine
  2. Port 1434 (UDP/TCP) SQL Server Engine
  3. Port 2382 (UDP/TCP) SQL Server OLAP
  4. Port 2383 (UDP/TCP) SQL Server OLAP
  5. Port 2393 (UDP/TCP) SQL Server OLAP
  6. Port 2394 (UDP/TCP) SQL Server OLAP
  7. Port 2725 (UDP/TCP) SQL Server OLAP
  8. Port 3882 (UDP/TCP) SQL Server DTS (Integration Services)

若你的 SQL 服务器有安装防火墙,又希望 SQL 所有的服务可以正常使用,那就把以上的所有端口开启好了。

另:更改 SQL Server 2005 默认端口的方法(这个和更改 2000 的方法不一样):

  1. In SQL Server Configuration Manager, expand SQL Server 2005 Network Configuration, and then click on the server instance you want to configure.
  2. In the right pane, double-click TCP/IP.
  3. In the TCP/IP Properties dialog box, click the IP Addresses tab.
  4. In the TCP Port box of the IPAll section, type an available port number. For this tutorial, we will use 1500.
  5. Click OK to close the dialog box, and click OK to the warning that the service must be restarted.
  6. In the left pane, click SQL Server 2005 Services.
  7. In the right pane, right-click the instance of SQL Server, and then click Restart. When the Database Engine restarts, it will listen on port 1500.

再另:查看电脑上已经开启了的端口的方法:

开始-> 运行-> 输入 cmd-> 输入命令 netstat -an-> 回车即可看到。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注