Tutorial

Add GIS Server

On the list page of the GIS servers, click the Add GIS Server button, enter the GIS server name, URL, and select the operating system type on the Add GIS Server page.

image78

  • Name (required): Sets the name for the added GIS server.
  • GIS server URL (required): Fill in the access address of the GIS server.
  • Operating system (required): Select the operating system for the added GIS server.

Click the “Next” button, enter the page for installing the Daemon page. Complete the progress according to the prompts and then click the “Finish” button to add the GIS server. On the list page of the GIS servers, you can see the GIS server you just added.

image43

When you add a GIS server, you can also install it without using the steps on the page for installing Daemon. You can manually download the Agent package via the download link in the upper right corner of the page. Then complete the installation of the agent through the following procedures:

  1. Make sure that the jre version is 1.8.0
  2. Download agent package from the agent download link at the upper right corner of iManager page (Windows system choose agent.zip, Linux system choose agent.tar.gz)
  3. Get UUID from the url of the Daemon installation progress page. For example, if the url is http://{IP of the machine where imanger service resides}:8390/imanager/staticFiles/views/apps/addiServer.html?425, the 425 is the UUID.
  4. Copy to agent package to the root directory of GIS server(the same level with bin folder), then extract the agent package at current folder, and make sure that the catalog structure after extracting is %SuperMap iServer HOME%/imanager-agent
  5. Browse http://{imanagerservice machine IP}:8390/imanager/packages/setupconfig?ip={service ip}&id={above UUID}&os={service OS type:windows/linux}, and replace the following file with the obtained file under the unzipped folder of agent:

    imanager-agent/conf/imanager.properties

  6. Make sure that GIS server is stopped
  7. Execute the installation script under imanager-agent/bin, Windows system choose install.bat and Linux system choose install.sh

    Enter the Bin folder of the root directory of iServer

    Execute the command in Linux:

    ./iserver.sh -v > version.txt
    $ wget --header="Content-Type: text/plain" --post-file=version.txt http://{IP of the machine where imanger service resides}:8390/imanager/web/api/service/{above UUID}/agentinstalled.json --refer='${protocol}://${ip}:${port}'

    In Windows:

    First download curl.exe from http://{IP of the machine where imanger service resides}:8390/imanager/downloads/curl.exe, and then place it under the bin folder of iServer root directory.

    Execute the following command:

    PowerShell -Command ".\iserver.bat -v | Out-File -Encoding utf8 version.txt"
    .\curl.exe -i -X POST http://{IP of the machine where imanger service resides}:8390/imanager/web/api/service/{above UUID}/agentinstalled.json -H "Content?Type:text/plain" --data-binary "@./version.txt" -e '${protocol}://${ip}:${port}';
  8. Start GIS server