如何在 Configuration Manager 中配置客户端通信端口How to configure client communication ports in Configuration Manager

适用范围: Configuration Manager (Current Branch)Applies to: Configuration Manager (current branch)

可以更改 Configuration Manager 客户端用来与使用 HTTP 和 HTTPS 进行通信的站点系统通信的请求端口号。You can change the request port numbers that Configuration Manager clients use to communicate with site systems that use HTTP and HTTPS for communication. 虽然为防火墙配置了 HTTP 或 HTTPS 的可能性更高,但是,与使用自定义端口号相比,使用 HTTP 或 HTTPS 的客户端通知在管理点计算机上将需要使用更多的 CPU 资源和内存。Although HTTP or HTTPS is more likely to be already configured for firewalls, client notification that uses HTTP or HTTPS requires more CPU usage and memory on the management point computer than if you use a custom port number. 如果通过使用传统的唤醒数据包唤醒客户端,则还可以指定要使用的站点端口号。You can also specify the site port number to use if you wake up clients by using traditional wake-up packets.

在指定 HTTP 和 HTTPS 请求端口时,可以指定默认端口号和备用端口号。When you specify HTTP and HTTPS request ports, you can specify both a default port number and an alternative port number. 在使用默认端口通信失败后,客户端会自动尝试使用备用端口。Clients automatically try the alternative port after communication fails with the default port. 可以指定 HTTP 和 HTTPS 数据通信的设置。You can specify settings for HTTP and HTTPS data communication.

客户端请求端口的默认值是 80 (对于 HTTP 流量)和 443 (对于 HTTPS 流量)。The default values for client request ports are 80 for HTTP traffic and 443 for HTTPS traffic. 仅在你不想使用这两个默认值时才更改它们。Change them only if you do not want to use these default values. 使用自定义端口的典型情况是,你在 IIS 中使用自定义网站而不是默认网站。A typical scenario for using custom ports is when you use a custom website in IIS rather than the default website. 如果更改 IIS 中的默认网站的默认端口号,而其他应用程序也使用此默认网站,则它们可能会失败。If you change the default port numbers for the default website in IIS and other applications also use the default website, they are likely to fail.

重要

不要在不了解后果的情况下更改 Configuration Manager 中的端口号。Do not change the port numbers in Configuration Manager without understanding the consequences. 例如:Examples:

  • 如果在站点配置中更改客户端请求服务的端口号,而且没有重新配置现有的客户端以使用新的端口号,则这些客户端将变为非管理的客户端。If you change the port numbers for the client request services as a site configuration and existing clients are not reconfigured to use the new port numbers, these clients will become unmanaged.
    • 在配置非默认的端口号之前,请确保防火墙和所有介入性网络设备都能支持此配置,并在必要时对它们进行重新配置。Before you configure a non-default port number, make sure that firewalls and all intervening network devices can support this configuration and reconfigure them as necessary. 如果你将在 Internet 上管理客户端,并且更改默认的 HTTPS 端口号 443,则 Internet 上的路由器和防火墙可能会阻止此通信。If you will manage clients on the Internet and change the default HTTPS port number of 443, routers and firewalls on the Internet might block this communication.

为了确保在你更改请求端口号后客户端不会变为非管理的客户端,必须配置客户端以使用新的请求端口号。To make sure that clients do not become unmanaged after you change the request port numbers, clients must be configured to use the new request port numbers. 在更改主站点上的请求端口时,任何连接的辅助站点均会自动继承相同的端口配置。When you change the request ports on a primary site, any attached secondary sites automatically inherit the same port configuration. 使用本主题中的过程来配置主站点上的请求端口。Use the procedure in this topic to configure the request ports on the primary site.

备注

有关如何为运行 Linux 和 UNIX 的计算机上的客户端配置请求端口的信息,请参阅为适用于 Linux 和 UNIX 的客户端配置请求端口For information about how to configure the request ports for clients on computers that run Linux and UNIX, see Configure Request Ports for the Client for Linux and UNIX.

当 Configuration Manager 站点发布到 Active Directory 域服务时,可以访问此信息的新客户端和现有客户端将自动配置为它们的站点端口设置,并且您无需采取其他操作。When the Configuration Manager site is published to Active Directory Domain Services, new and existing clients that can access this information will automatically be configured with their site port settings and you do not need to take further action. 无法访问发布到 Active Directory 域服务的此信息的客户端包括:工作组客户端、其他 Active Directory 林中的客户端、配置为仅通过 Internet 进行管理的客户端,以及目前位于 Internet 上的客户端。Clients that cannot access this information published to Active Directory Domain Services include workgroup clients, clients from another Active Directory forest, clients that are configured for Internet-only, and clients that are currently on the Internet. 如果在已安装这些客户端后更改默认端口号,请使用以下方法之一重新安装这些客户端和安装任何新的客户端:If you change the default port numbers after these clients have been installed, reinstall them and install any new clients by using one of the following methods:

  • 使用“客户端请求安装向导”重新安装客户端。Reinstall the clients by using the Client Push Installation Wizard. 客户端请求安装会自动使用当前的站点端口配置来配置客户端。Client push installation automatically configures clients with the current site port configuration. 有关如何使用“客户端请求安装向导”的详细信息,请参阅如何使用客户端请求安装 Configuration Manager 客户端For more information about how to use the Client Push Installation Wizard, see How to Install Configuration Manager Clients by Using Client Push.

  • 使用 CCMSetup.exe 以及 CCMHTTPPORT 和 CCMHTTPSPORT 的 client.msi 安装属性来重新安装客户端。Reinstall the clients by using CCMSetup.exe and the client.msi installation properties of CCMHTTPPORT and CCMHTTPSPORT. 有关这些属性的详细信息,请参阅关于客户端安装属性For more information about these properties, see About client installation properties.

  • 使用搜索 Active Directory 域服务以查找 Configuration Manager 客户端安装属性这一方法来重新安装客户端。Reinstall the clients by using a method that searches Active Directory Domain Services for Configuration Manager client installation properties. 有关详细信息,请参阅关于发布到 Active Directory 域服务的客户端安装属性For more information, see About client installation properties published to Active Directory Domain Services.

    若要重新配置现有客户端的端口号,你也可以使用随安装媒体提供的且位于 SMSSETUP\Tools\PortConfiguration 文件夹中的脚本 PORTSWITCH.VBS。To reconfigure the port numbers for existing clients, you can also use the script PORTSWITCH.VBS that is provided with the installation media in the SMSSETUP\Tools\PortConfiguration folder.

重要

对于当前在 Internet 上的现有客户端和新客户端,你必须使用 CCMHTTPPORT 和 CCMHTTPSPORT 的 CCMSetup.exe client.msi 属性来配置非默认端口号。For existing and new clients that are currently on the Internet, you must configure the non-default port numbers by using the CCMSetup.exe client.msi properties of CCMHTTPPORT and CCMHTTPSPORT.

更改站点上的请求端口后,使用覆盖整个站点的客户端请求安装方法安装的新客户端将自动配置为站点的当前端口号。After changing the request ports on the site, new clients that are installed by using the site-wide client push installation method will be automatically configured with the current port numbers for the site.

配置站点的客户端通信端口号To configure the client communication port numbers for a site

  1. 在 Configuration Manager 控制台中,单击“管理” 。In the Configuration Manager console, click Administration.

  2. 在“管理” 工作区中,展开“站点配置” ,单击“站点” ,然后选择要配置的主站点。In the Administration workspace, expand Site Configuration, click Sites, and select the primary site to configure.

  3. 在“主页” 选项卡上,单击“属性” ,再单击“端口” 选项卡。On the Home tab, click Properties, and then click the Ports tab.

  4. 选择任意项,然后单击“属性”图标以显示“端口详细信息” 对话框。Select any of the items and click the Properties icon to display the Port Detail dialog box.

  5. 在“端口详细信息” 对话框中,指定该项的端口号和描述,然后单击“确定” 。In the Port Detail dialog box, specify the port number and description for the item, and then click OK.

  6. 若要将自定义网站名称 SMSWeb 用于运行 IIS 的站点系统,请选择“使用自定义网站” 。Select Use custom web site if you will use the custom website name of SMSWeb for site systems that run IIS.

  7. 单击“确定” 以关闭站点的属性对话框。Click OK to close the properties dialog box for the site.

    为层次结构中的所有主站点重复此过程。Repeat this procedure for all primary sites in the hierarchy.