中文

操作方法:在 ArcGIS Server Manager 中恢复默认的 PrintingTools 服务

摘要

ArcGIS Server Manager 在“实用程序”文件夹中包含一个预先配置的地理处理服务,名为 PrintingTools,该服务允许从 web 应用程序打印地图。

下面提供的说明介绍了如果 ArcGIS Server Manager 的默认 PrintingTools 服务因硬件故障、人为错误或其他问题而丢失,应如何恢复。

过程

请按照以下步骤恢复默认的 PrintingTools 服务。

  1. 在 web 浏览器中,打开管理员目录并登录。 URL 格式为:
    http://gisserver.domain.com:6080/arcgis/admin
  2. 在“管理员目录”中,单击服务
  3. 在“文件夹”列表中,选择 PrintingTools 服务的目标文件夹。
    :
    如果不存在适当的文件夹,请单击 createFolder 创建文件夹,然后创建一个文件夹(例如,名为 PrintingTools)。
    

    [O-Image]
     
  4. 单击 createService

    Click createService
     
  5. 在“创建服务”页面上,将以下 JavaScript 对象表示法 (JSON) 粘贴到“服务属性”文本框中:

    [O-Image]

    ArcGIS Server(版本 10.1-10.5.1)的代码:
    {
    "serviceName": "PrintingTools",
    "type": "GPServer",
    "description": "The PrintingTools service is used by web application developers
    to export the contents of a webmap to pdf, jpeg, png or other formats. 
    This service is generally used in the context of providing applications 
    with printing functionality.",
    "capabilities": "null",
    "clusterName": "default",
    "minInstancesPerNode": 1,
    "maxInstancesPerNode": 2,
    "instancesPerContainer": 1,
    "maxWaitTime": 60,
    "maxStartupTime": 300,
    "maxIdleTime": 1800,
    "maxUsageTime": 600,
    "loadBalancing": "ROUND_ROBIN",
    "isolationLevel": "HIGH",
    "configuredState": "STOPPED",
    "recycleInterval": 24,
    "recycleStartTime": "00:00",
    "keepAliveInterval": -1,
    "private": false,
    "isDefault": false,
    "maxUploadFileSize": 0,
    "allowedUploadFileTypes": "",
    "properties": {
    "virtualOutputDir": "/rest/directories/arcgisoutput",
    "outputDir": "C:\\arcgisserver\\directories\\arcgisoutput",
    "showMessages": "Error",
    "toolbox": "${AGSSERVER}/ArcToolBox/Services/Printing Tools.tbx",
    "jobsDirectory": "C:\\arcgisserver\\directories\\arcgisjobs",
    "executionType": "Synchronous",
    "jobsVirtualDirectory": "/rest/directories/arcgisjobs",
    "maximumRecords": "1000"
     },
    "extensions": [],
    "datasets": []
    }
    ArcGIS Server(版本 10.6 或更高版本)的代码
    {
     "serviceName": "PrintingTools",
     "type": "GPServer",
     "description": "The PrintingTools service is used by web application developers to export the contents of a webmap to pdf, jpeg, png or other formats. This service is generally used in the context of providing applications with printing functionality.",
     "capabilities": "",
     "provider": "ArcObjects11",
     "clusterName": "default",
     "minInstancesPerNode": 1,
     "maxInstancesPerNode": 1,
     "instancesPerContainer": 1,
     "maxWaitTime": 60,
     "maxStartupTime": 300,
     "maxIdleTime": 1800,
     "maxUsageTime": 600,
     "loadBalancing": "ROUND_ROBIN",
     "isolationLevel": "HIGH",
     "configuredState": "STARTED",
     "recycleInterval": 24,
     "recycleStartTime": "20:00",
     "keepAliveInterval": -1,
     "private": false,
     "isDefault": false,
     "maxUploadFileSize": 0,
     "allowedUploadFileTypes": "",
     "properties": {
      "virtualOutputDir": "/rest/directories/arcgisoutput",
      "maximumRecords": "1000",
      "outputDir": "C:\\arcgisserver\\directories\\arcgisoutput",
      "jobsDirectory": "C:\\arcgisserver\\directories\\arcgisjobs",
      "showMessages": "Error",
      "executionType": "Synchronous",
      "toolbox": "${AGSSERVER}/ArcToolBox/Services/Printing Tools.tbx",
      "jobsVirtualDirectory": "/rest/directories/arcgisjobs",
      "resultMapServer": "false"
     },
     "extensions": [],
     "frameworkProperties": {},
     "datasets": []
    }
    警告:
    请勿更改 serviceName 的值。
  6. 单击“创建”。PrintingTools 服务将随即创建并显示在“服务”列表中。

相关信息