Skip to main content

更改 Portal for ArcGIS 账户

本主题与 Linux 上的 ArcGIS Enterprise 无关。

如果想更改运行 Portal for ArcGIS (Windows) 服务的账户,可使用 configureserviceaccount 实用程序进行更改。

更改为本地或域账户

要将 Portal for ArcGIS 账户更改为本地或域用户,请使用 configureserviceaccount 实用程序。

configureserviceaccount 实用程序安装在 <Portal for ArcGIS installation directory>\tools\ConfigUtility 目录下。 该工具设置了新的账户以运行 Portal for ArcGIS 服务,并在该服务所使用的 Portal for ArcGIS 目录上授予所需的权限。

在以下示例中,configureserviceaccount 将对域账户进行设置,以运行 Portal for ArcGIS 服务,授予此账户对 Portal for ArcGIS 系统文件夹和文件的所需权限,并将包含这些设置的配置文件写入磁盘。

注:

必须从使用以管理员身份运行选项打开的命令提示符窗口运行 configureserviceaccount 实用程序。

configureserviceaccount.bat --username mydomain\username --password difficultpsswd --writeconfig c:\temp\domainaccountconfig.xml

注:

更改账户会导致在其下运行的服务重启。

configureserviceaccount 实用程序的可用参数如下:

configureserviceaccount [--username username] [--password password] [--readconfig user-configure-file] [--writeconfig user-configure-file]

  • username - 用于 Portal for ArcGIS 账户的名称

  • password - Portal for ArcGIS 账户的密码

  • readconfig - 先前运行实用程序时保存的配置文件的可选路径

  • writeconfig - 保存配置文件的可选路径,以便将来运行实用程序时应用相同属性

更改为 LocalSystem 账户

安装 Portal for ArcGIS 时,指定运行 Portal for ArcGIS 服务的账户。 如果您已指定本地或域用户并想切换至 LocalSystem 账户,请按照以下步骤操作。 更改账户时您的门户将离线。

请记住,LocalSystem 账户不用于访问网络位置。 因此,如果您的内容目录在网络上共享,继续操作前需要将其移动至本地目录。 要了解详细信息,请参阅更改门户内容目录

  1. 在 Windows 中,转至控制面板 > 管理工具并打开服务

  2. 在服务列表中,右键单击 Portal for ArcGIS 并选择属性

  3. 常规选项卡中,单击停止

  4. 单击登录选项卡并从登录选项中选择本地系统账户

  5. 单击常规选项卡并单击启动。 Portal for ArcGIS 服务已启动并以“本地系统”账户运行。

  6. 单击确定

更改为群组管理服务账户

组托管服务账户 (gMSA) 是一个可提供自动密码管理的特殊 Active Directory 域账户。 该账户不能用于交互式登录,仅限用于预定义的服务器组。

自 10.8 起,configureserviceaccount 实用程序可以用于配置 Portal for ArcGIS 服务,使其在 gMSA 下运行。 对于用户名参数,可以指定 gMSA 末尾是否有 $ 符号。 不需要密码参数。 readconfigwriteconfig 参数在使用 gMSA 时的作用相同。

旧版本:

在 10.8 之前的版本中,只能使用 PowerShell 将门户配置为对其服务账户使用 gMSA。 有关具体步骤,请参阅此知识库文章