Поделиться через


Change the Central Administration Web site port number (SharePoint Foundation 2010)

 

Применимо к: SharePoint Foundation 2010

Последнее изменение раздела: 2016-11-30

During the installation of Microsoft SharePoint Foundation 2010, the Central Administration Web site is established on a randomly-assigned TCP port, or on a port that you select when you create the farm. The security policies of your organization might require you to change this port number.

This procedure describes how to change the Central Administration Web site port number by using a Windows PowerShell 2,0 cmdlet. You cannot use the user interface to perform this task.

To change the Central Administration Web site port number by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: См. статью Add-SPShellAdmin. Additionally, verify that you are a member of the Farm Administrators SharePoint group.

  2. On the Start menu, click All Programs.

  3. Click Microsoft SharePoint 2010 Products.

  4. Click SharePoint 2010 Management Shell.

  5. At the Windows PowerShell command prompt, type the following command:

    Set-SPCentralAdministration -Port <PortNumber>
    

    Where <PortNumber> is the port number that you want to use. You are prompted for confirmation to change the port number unless you use the Confirm:$false parameter with the command.

    Примечание

    The Set-SPCentralAdministration cmdlet blocks the following ports:

    • Lower than 1023

    • Higher than 32767

    • 443 (SSL)

    If you must use a blocked port, you can do so by using the Stsadm command stsadm -o setadminport. For more information, see Setadminport: Stsadm operation (Windows SharePoint Services).

For more information about the Windows PowerShell cmdlet, see Set-SPCentralAdministration.

Примечание

Для выполнения административных задач из командной строки мы рекомендуем использовать Windows PowerShell. Программа командной строки Stsadm является устаревшей, однако она добавлена для совместимости с предыдущими версиями продукта.

See Also

Reference

New-SPCentralAdministration