Skip To Content

静默安装 GeoScene Notebook Server

您可以使用命令行参数安装和授权 GeoScene Notebook Server,而不使用 安装向导。

提示:

您选择的安装模式将决定默认的卸载模式。 例如,如果您选择从命令行进行静默安装,则卸载过程将默认为通过命令行静默卸载。

安装 GeoScene Notebook Server 之前,请查看系统要求

注:

命令行参数区分大小写。 如果进行命令行安装时出现问题,请确认大小写是否与示例中显示的属性相匹配。

准备安装 GeoScene Notebook Server

继续安装之前,请完成以下步骤。

  1. 登录 GeoScene Support 并获取必要的文件。 您需要以下文件:
    • 您的 GeoScene Notebook Server 软件下载。
    • 您的授权文件。
    • 一种或两种 Docker 容器镜像,具体取决于您的许可。 这些容器镜像包含 GeoScene Notebooks 运行所需的所有组件。 有关详细信息,请参阅 DockerGeoScene Notebook Server
  2. 验证每台将要安装 GeoScene Notebook Server 的计算机是否满足系统要求
  3. 修改每台计算机的防火墙以允许通过 GeoScene Notebook Server 使用的 11443 端口进行通信。
  4. 将您的 OS 用户帐户(将安装 GeoScene Notebook Server 的帐户)添加到名为 docker 的 Unix 群组中。 此工作流记录在 Docker 网站上
    注:

    不支持使用根帐户安装 GeoScene Notebook Server

静默安装 GeoScene Notebook Server

按照以下步骤从命令行静默安装 GeoScene Notebook Server

默认情况下,GeoScene Notebook Server 将安装在 ${HOME}/geoscene/notebookserver

  1. 以将要运行 GeoScene Notebook Server 的用户身份打开 shell 命令。 浏览至从 GeoScene Support 下载 GeoScene Notebook Server tar.gz 文件的目录。
  2. 使用以下命令将 tar.gz 文件解压缩:

    tar -xvzf GeoScene_Notebook_Server_Linux_<version>.tar.gz

  3. 浏览至文件的解压缩目录,然后浏览至 <untar directory>/Documentation/EULA.pdf。 阅读许可协议。
  4. 在目录中,静默运行安装程序,然后使用 .prvc 文件进行授权。 语法如下:

    <untar directory>/Setup -m silent -l yes -a <full path to .prvc file>

    命令行工具的参数如下:

    参数说明
    -m; --mode MODE

    (可选)安装模式:silent 。 默认为 silent

    -l; --license-agreement CHOICE

    对于静默模式,必须指定 yes 或 no。Yes 表示您已阅读并同意 GeoScene 主协议 (E204, E300)。 您可以随时查看协议

    -a; --authorization-file PATH_TO_FILE

    (可选)GeoScene 提供的授权或配置文件的绝对文件路径。

    如果未使用此选项,则必须如下一节所述,在安装后对软件进行授权。

    -d; --directory DIRECTORY

    (可选)默认情况下,GeoScene Notebook Server 将安装在 ${HOME} 目录中。 DIRECTORY 可指定其他安装目录。

    将路径 /geoscene/notebookserver/ 附加到安装目录。

    安装目录的名称应为小写形式。 与安装程序捆绑在一起的示例和数据要求数据路径使用小写字母。

    -v; --verbose

    (可选)在详细模式下运行安装程序。

    -h; --help

    显示命令行帮助并退出。

    -e; --examples

    显示每个选项的使用说明示例并退出。

  5. 修改您的操作系统权限,以允许 systemd 引导和管理 GeoScene Notebook Server 上的进程。 此操作允许在启动计算机时立即启动服务。
    1. 在终端内,切换为Root用户。
    2. <GeoScene Notebook Server install directory>/framework/etc/scripts/agsnotebook.service 单元文件复制到 /etc/systemd/system。 将此重定位文件的文件权限从 700 更改为 600。
    3. 仍然以Root用户身份运行以下命令:

      # systemctl enable agsnotebook.service

    4. 重新启动 systemd 服务,然后检查其状态以验证其配置是否正确:

      # systemctl stop agsnotebook.service
      # systemctl start agsnotebook.service
      # systemctl status agsnotebook.service

    5. 结束Root用户会话。
    6. 重新启动操作系统,然后验证 GeoScene Notebook Server 是否正确启动。

静默授权软件

如果您在安装过程中未授权软件,请使用以下语法运行软件授权以静默授权 GeoScene Notebook Server。 运行以下命令以查看所有授权选项:

<GeoScene Notebook Server install directory>/tools/authorizeSoftware --help

以邮件方式获取授权

您需要通过邮件方式,基于 (.prvc) 文件对 GeoScene Notebook Server 进行授权。在此过程中将生成文件,供您发送至 GeoScene 以完成过程。

  1. GeoScene Notebook Server 安装完成后,在提示符处运行以下命令:

    <GeoScene Notebook Server install directory>/tools/authorizeSoftware -f <full path to the .prvc file> -o <full path to authorization file output>

  2. 创建输出信息文件后,请执行如下操作:
    • 以电子邮件形式将您的授权信息发送到 authorize@geoscene.cnGeoScene 将以电子邮件形式返回您的 .ecp 授权文件。
  3. 获得 .ecp 授权文件后,请再次运行 authorizeSoftware 脚本以对其进行处理,然后完成服务器授权过程:

    <GeoScene Notebook Server install directory>/tools/authorizeSoftware -f <full path to the .ecp file>

对每台您想要安装 GeoScene Notebook Server 的计算机重复此工作流。

安装所有软件后,配置 GeoScene Notebook Server,然后创建您的服务器站点。 可以选择通过 createsite 命令行实用程序来创建站点。

静默卸载软件

要从命令行静默卸载 GeoScene Notebook Server,请运行以下命令:

<GeoScene Notebook Server install directory>/uninstall_GeoSceneNotebookServer