Skip To Content

ArcGIS Enterprise Builder 安装后配置

ArcGIS Enterprise Builder 完成软件安装后,随即将打开浏览器并显示 ArcGIS Enterprise 配置向导。您可以使用配置向导来部署 ArcGIS Enterprise,或关闭浏览器并使用 configurebasedeployment 命令行实用程序完成您的基础部署。

如果您尚未使用 ArcGIS Enterprise Builder 安装软件,请参阅使用 ArcGIS Enterprise Builder 进行安装中的详细步骤,然后继续执行操作。

注:

ArcGIS Enterprise 配置需要在安装了基础部署的计算机上启用 HTTPS。在完成配置步骤之前,您必须创建域证书并启用 HTTPS

使用配置向导

使用 ArcGIS Enterprise Builder 安装软件后,通过配置向导执行以下步骤来完成基础部署:

  1. 如果尚未打开,请浏览至配置向导的 URL (http://mymachine.mydomain.com:6080/arcgis/enterprise)。您也可以在计算机中搜索 ArcGIS Enterprise 配置向导,然后使用快捷方式将其启动。
  2. 登录页面将说明向导需要使用安全连接。单击下一步后,您将重定向到安全端口 6443。您的浏览器将显示安全警告;首次访问安全向导时将显示此警告。继续跳过警告(这因浏览器而异)。
  3. 许可文件面板中,导航到门户的许可文件 (.json)。此文件从 My Esri 中获得,其中包含门户的用户类型、应用程序和应用程序包许可信息。单击下一步

  4. 初始管理员帐户面板中,为初始管理员帐户指定凭据。从下拉列表中选择用户类型(该列表列出了与许可文件中包含的初始管理员帐户兼容的用户类型)。该帐户将用于首次登录 ArcGIS Enterprise 部署和初始化管理任务(例如,创建其他帐户)。此帐户适用于服务器和门户组件。单击下一步
  5. 其他帐户信息面板中,输入其他初始管理员帐户信息,然后单击下一步
  6. 根内容目录面板中,指定内容目录的位置,以便存储日志和配置文件。您的部署将不断更新,因此您应该指定一个可用空间至少为 10 GB 的目录位置。默认位置是 c:\arcgis

    注:

    您将在您指定的根内容目录外部创建其他系统目录。

  7. 配置摘要面板中,验证初始管理员帐户、用户类型和内容目录位置 单击完成

配置开始后,您将看见配置步骤集旁显示一个进度指示器,完成时将显示一个绿色复选标记。

注:

在配置向导的步骤 3(即创建 GIS Server 站点)的过程中,如果您收到指示 ArcGIS Server 站点创建失败的错误消息,请参考 C:\<ArcGIS Server installation directory>\ArcGIS\Server\usr\logs 文件夹中的日志以获取详细信息。

在组件完全配置后,将显示一个 ArcGIS Enterprise 配置状态面板,指示所有组件均已成功配置。

使用命令行实用程序

使用 ArcGIS Enterprise Builder 安装软件后,可以使用命令行实用程序完成基础部署的配置。要运行命令行实用程序,您必须选择以管理员身份来运行。

如果使用实用程序配置您的 ArcGIS Enterprise 门户站点,可以选择以两种不同的方式来指定参数和值:

  • 直接在命令行中指定参数: <location of utility>\configurebasedeployment -fn <first name> -ln <last name> -u <user name> -p <password> -e <email> -qi <question> -qa <answer> -d <directory> -lf <license file> -ut <user type ID>

  • 从属性文件指定参数:<location of utility>\configurebasedeployment -f <properties file>

configurebasedeployment 命令行实用程序位于 <ArcGIS Server installation directory>\tools\configurebasedeployment

注:

默认位置是 C:\Program Files\ArcGIS\Server\tools\configurebasedeployment

以下介绍了命令行实用程序中使用的参数:

  • -fn - 您的名字。
  • -ln - 您的姓氏。
  • -u - 具有 ArcGIS Enterprise 门户管理权限的帐户的用户名。通常,您将使用主站点管理员帐户来创建站点。
  • -p - 您为用户名参数指定的帐户的密码。通常,您将使用主站点管理员帐户来创建门户。
  • -e - 具有 ArcGIS Enterprise 门户管理权限的帐户的电子邮件。
  • -qi - 用于指定您要使用的问题的索引号。此问题可用于找回忘记的密码。每个问题与一个索引号配对。例如,下表指定了索引号,后跟其相应的问题:
    • 1 - 您出生于哪个城市?
    • 2 - 您高中学校的吉祥物是什么?
    • 3 - 您母亲的婚前姓氏是什么?
    • 4 - 您的第一辆车的品牌是什么?
    • 5 - 您就读于哪所高中?
    • 6 - 您最好的朋友的姓氏是什么?
    • 7 - 您最年幼的兄弟姐妹的中间名是什么?
    • 8 - 您从小长大的街道叫什么?
    • 9 - 您最喜欢的虚拟角色叫什么?
    • 10 - 您最喜欢的宠物叫什么?
    • 11 - 您最喜欢哪家饭店?
    • 12 - 您最喜欢的书的书名是什么?
    • 13 - 您梦想的工作是什么?
    • 14 - 您第一次约会的地点在哪里?

  • -qa - 这是您针对参数 qi 选择的密码提示问题的答案。
  • -d - 用于存储数据和配置文件的内容目录的绝对路径和名称。
  • -lf - 门户许可文件的路径。
  • -ut - 初始管理员的用户类型 ID。此参数属于可选操作。要为 -ut 参数生成组织可用的兼容用户类型列表,请运行 listadministratorusertypes 实用程序。如果未指定用户类型 ID,并且门户许可文件包含单个兼容的用户类型,则将分配该用户类型。如果许可文件包含多个兼容的用户类型,则将分配临时用户类型,且初始管理员必须在登录后选择用户类型
  • -f - configurebasedeployment 实用程序的属性文件。
    注:

    默认情况下,configurebasedeployment.properties文件位于 /<ArcGIS Server installation directory>/tools/configurebasedeployment

  • -h - 显示此工具帮助消息并退出。

使用参数的示例

  1. 打开命令提示符。
  2. 在命令提示符中,将工作目录更改为 configurebasedeployment 实用程序的位置。

    例如:<ArcGIS Server installation directory>\tools\configurebasedeployment

  3. 直接在命令提示符内输入 configurebasedeployment 命令、参数及其值。
configurebasedeployment -fn jane -ln smith -u jsmith -p mIpassword -e jsmith@myemail.com -qi 1 -qa Redlands -d c:\arcgis -lf c:\myLicenseFiles\MyFile.json -ut creatorUT

使用文件的示例

运行 configurebasedeployment 实用程序时,可以更改 configurebasedeployment.properties 文件的内容并指定文件,而非在命令提示符处输入参数和值。

  1. 导航至 configurebasedeployment.properties 文件的位置。默认情况下,configurebasedeployment.properties 文件安装至 C:\Program Files\ArcGIS\Server\tools\configurebasedeployment
  2. 在文本编辑器中打开 configurebasedeployment.properties 文件并为每个参数提供值:

    用于配置基础部署的部署属性

    # First name for initial administrator account
    WEBGIS_ADMIN_FIRSTNAME = 
    # Last name for initial administrator account
    WEBGIS_ADMIN_LASTNAME =
    # User name for initial administrator account
    # Can only have the numbers 0-9, the ASCII letters a-z, A-Z and the dot character (.)
    WEBGIS_ADMIN_USERNAME = 
    # Password for primary site administrator
    # Can only have the numbers 0-9, the ASCII letters a-z, A-Z and the dot character (.)
    WEBGIS_ADMIN_PASSWORD = 
    # Initially, leave PORTAL_ADMIN_PASSWORD_ENCRYPTED set to false.
    # When you run the tool the first time, the password will be
    # encrypted and PORTAL_ADMIN_PASSWORD_ENCRYPTED will change to true
    WEBGIS_ADMIN_PASSWORD_ENCRYPTED = false
    # E-mail address for initial administrator account
    # e.g username@domain.com
    WEBGIS_ADMIN_EMAIL =
    # This is the index of the secret questions to retrieve a forgotten password. 
    # The list of questions with their respective index numbers is as follows:
    # 1, What city were you born in?
    # 2, What was your high school mascot?
    # 3, What is your mother's maiden name?
    # 4, What was the make of your first car?
    # 5, What high school did you go to?
    # 6, What is the last name of your best friend?
    # 7, What is the middle name of your youngest sibling?
    # 8, What is the name of the street on which you grew up?
    # 9, What is the name of your favorite fictional character?
    # 10, What is the name of your favorite pet?
    # 11, What is the name of your favorite restaurant?
    # 12, What is the title of your favorite book?
    # 13, What is your dream job?
    # 14, Where did you go on your first date?
    WEBGIS_ADMIN_SECURITY_QUESTION_INDEX = 
    # Answer to the secret question
    # e.g \"My Answer\"
    WEBGIS_ADMIN_SECURITY_QUESTION_ANSWER = 
    # AcGIS Enterprise content directory for storing data and configuration files.
    # By default, the content directory will be created locally.
    # e.g. C:\\arcgis, or \\\\<Absolute path to>\\<the builder arcgis>
    WEBGIS_CONTENT_DIRECTORY =
    # The path to the Portal license file
    PORTAL_LICENSE_FILE =
    # The ID of the user type for the Initial Administrator
    PORTAL_USER_TYPE_ID =

    注:

    如果在 configurebasedeployment.properties 文件中引用路径,则需要转义反斜线。例如:C:\\arcgis\\\\<Absolute path to>\\<ArcGIS Enterprise Builder>

  3. 保存 configurebasedeployment.properties 文件。
  4. 打开命令提示符。
  5. 在命令提示符中,将工作目录更改为 configurebasedeployment 实用程序的位置。

    例如:<ArcGIS Server installation directory>\tools\configurebasedeployment

  6. 输入 configurebasedeployment 命令并指定 configurebasedeployment.properties 文件。

    configurebasedeployment -f configurebasedeployment.properties

注:

一些参数需要多个单词答案,例如 -fn、-ln 或 -qa。在这种情况下,需要将参数包含在引号中。

对于密码值,请避免使用任何特殊字符,例如“&”、“\”等,这些字符对命令提示符具有特殊含义。

对组件进行完全配置后,您将看到一条消息,提示 ArcGIS Enterprise Builder 站点已成功创建。

使用 listadministratorusertypes 命令行实用程序来识别兼容的用户类型

要识别组织许可的用户类型 ID 列表(与管理员角色兼容),请运行位于 listadministratorusertypes 实用程序所在位置的 configurebasedeployment 命令行实用程序。这将为 configurebasedeployment 工具中的 -ut 参数提供输入列表。使用 -la 运行 listadministratorusertypes 工具并将门户许可文件作为输入。

组件已配置

完成 ArcGIS Enterprise 配置向导后,您将拥有以下各项:

  • 具有相同初始管理员帐户配置的门户和 ArcGIS Server 站点
  • 授权为 GIS 服务器ArcGIS Server 站点
  • 已注册到 ArcGIS Server 站点的关系和切片缓存数据存储。
  • 针对门户的 Web Adaptor 指定 portal
  • 针对 ArcGIS Server 站点的 Web Adaptor 指定服务器。已启用通过 Web Adaptor 对 ArcGIS Server 站点进行管理访问。
注:

构建器将安装两个 Web Adaptor,其默认名称为 portal 和 server。在安装过程中,如果已选择指定备用 Web Adaptor 名称,则将使用它们代替已配置的组件。

GIS 服务器站点已与门户联合,并且 GIS 服务器已设置为门户的托管服务器

门户和 Server Manager URL 配置后示例

可使用配置摘要中提供的链接,开始自定义门户添加成员内容以及配置安全性。此外,使用 Server Manager 可管理已发布的服务。构建器完成后,要访问 ArcGIS Server Manager,请使用完整 URL,其格式为 https://gisserver.domain.com:6443/arcgis/manager/

提示:

Esri 建议使用 serverScan.pyportalScan.py 脚本来检查新的 ArcGIS ServerArcGIS Enterprise 门户的安全性最佳做法。