首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式碼之家 >> 數據庫知識 >  >> SQL Server 資料庫 >> SQL Server 2005

SQL Server 2005 修改預設連接埠 1433 完整步驟

     編輯:SQL Server 2005

修改 TCP/IP 連接埠步驟

  1. 開啟 SQL Server 組態管理員。
  2. 展開 SQL Server 2005 網路組態,點選目標執行個體 (如 MSSQLSERVER) 的 協定。
  3. 右側雙擊 TCP/IP 開啟屬性。
  4. 切換至 IP 位址 索引標籤。
  5. 在 IPAll 區段的 TCP 連接埠 輸入新連接埠 (例:1500),將 TCP 動態連接埠 設為 0。
  6. 按 確定,系統提示需重新啟動服務,再按確定。
  7. 左側切換至 SQL Server 2005 服務,右鍵對應執行個體 (如 SQL Server (MSSQLSERVER)) 選擇 重新啟動。

驗證

重啟完成後,資料庫引擎將監聽新連接埠 (例:1500)。客戶端連線字串需同步更新:Server=IP,1500 或 Server=IP\INSTANCE,1500。

英文版操作對照

In SQL Server Configuration Manager, expand SQL Server 2005 Network Configuration, and then click on the server instance you want to configure.
In the right pane, double-click TCP/IP.
In the TCP/IP Properties dialog box, click the IP Addresses tab.
In the TCP Port box of the IPAll section, type an available port number. For this tutorial, we will use 1500.
Click OK to close the dialog box, and click OK to the warning that the service must be restarted.
In the left pane, click SQL Server 2005 Services.
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.

補充提醒

  • 修改後需同步更新防火牆規則、應用程式連線字串、別名設定。
  • 若使用 SQL Server Browser 服務,用戶端可不指定連接埠自動解析,但建議明確指定連接埠以減少攻擊面。

修改預設連接埠是資安加固的基本措施之一,建議生產環境皆執行此設定。

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式碼之家 All Rights Reserved