更改 ArcGIS Server 账户
本主题与 Linux 上的 ArcGIS Enterprise 无关。
无需重新运行 ArcGIS Server 安装即可更改 ArcGIS Server 账户。 安装后,可通过运行随此软件提供的配置服务账户实用程序来更改账户。 例如,此操作可用来响应安全策略更改,或者在排除服务器故障时实施。
实用程序旨在更改分配给 ArcGIS Server 服务的 RunAs 账户并为账户授予对 ArcGIS Server 安装目录中所有文件夹的读取权限和对以下文件夹的完全控制权限:
<ArcGIS Server installation directory>\bin<ArcGIS Server installation directory>\DatabaseSupport<ArcGIS Server installation directory>\framework<ArcGIS Server installation directory>\usr
使用 configureserviceaccount 实用程序更改正在使用的 ArcGIS Server 服务后,请使用操作系统工具为 ArcGIS Server 使用的以下位置更新以下权限:
对所有服务器目录、配置存储目录和 ArcGIS Server 日志目录的完全控制权限。 使用 ArcGIS Server Manager 或 ArcGIS Server Administrator Directory 查找这些目录。
对相关目录的读取权限,这些目录包含在发布 Web 服务时注册到 ArcGIS Server 站点的数据库连接文件。 如果使用的是 Windows 身份验证而非数据库身份验证,还必须授予 ArcGIS Server 账户写入权限。
对在发布 Web 服务之前注册到 ArcGIS Server 站点的 GIS 数据文件夹的读取权限。 如果您允许发布过程将数据复制到服务器,则数据将放置在 ArcGIS Server 账户被授予权限的服务器目录中,并且不必再为原始服务器目录应用任何其他权限。
configureserviceaccount实用程序安装在以下目录中:<ArcGIS Server installation directory>\tools\ConfigUtility。 该工具设置了新账户以运行 ArcGIS Server 服务,并在该服务所使用的 ArcGIS Server 安装目录位置上授予所需的权限。
在以下示例中,configureserviceaccount 实用程序将对域账户进行设置,以运行 ArcGIS Server 服务,授予此账户对 ArcGIS Server 安装目录文件夹和文件的所需权限,并将包含 Windows 账户信息的配置文件写入磁盘。
注:
必须从使用以管理员身份运行选项打开的命令提示符窗口运行 configureserviceaccount 实用程序。
configureserviceaccount.bat --username mydomain\username --password difficultpsswd --writeconfig c:\temp\domainaccountconfig.xml
注:
更改账户会导致在其下运行的服务重启。
configureserviceaccount 实用程序具有以下参数:
configureserviceaccount [--username username] [--password password] [--readconfig user-configuration-file] [--writeconfig user-configuration-file]
username- 用于 ArcGIS Server 账户的名称password- 用于 ArcGIS Server 账户的密码。readconfig- 先前运行实用程序时保存的配置文件的可选路径writeconfig- 保存配置文件的可选路径,以便将来运行实用程序时应用相同属性