更新时间:2026-06-26 GMT+08:00
分享

升级RemoteApp或app_publisher程序

升级堡垒机实例版本后,通常需要同步升级Windows应用服务器的RemoteApp或Linux应用服务器的app_publisher至新版本,否则对应的应用发布功能无法正常运行,本小节介绍如何升级RemoteApp和app_publisher。

RemoteApp和app_publisher的升级步骤可概括为:先卸载旧版本,再重新安装新版本。

前提条件

升级RemoteApp(Windows应用服务器)

  1. 登录Windows应用服务器,进入控制面板 > 程序 > 程序和功能中卸载老版本RemoteApp程序。

    Windows应用服务器地址在堡垒机实例的资源 > 应用发布 > 应用服务器页面查看。

  2. 卸载完成后,上传并解压新版本RemoteApp安装包。
  3. 双击解压包中的setup.exe进行安装,直到安装完成。

升级app_publisher(Linux应用服务器)

  1. 登录Linux应用服务器,上传新版本app_publisher安装包并解压。

    tar -zxvf app_publisher_V1.xxxxxxxxxx.tar.gz

    Linux应用服务器地址在堡垒机实例的资源 > 应用发布 > 应用服务器页面查看。

  2. 执行以下命令卸载旧版本docker镜像。

    docker rmi 127.0.0.1:5000/psm-kingbase:1.0 127.0.0.1:5000/psm-gbase8a:1.0 127.0.0.1:5000/psm-dameng:1.0 127.0.0.1:5000/psm-firefox:1.0

    卸载镜像时如果出现如下报错提示:

    Error response from daemon: conflict: unable to remove repository reference "127.0.0.1:5000/psm-firefox:1.0" (must force) - container xxxxxx is using its referenced image xxxxxxxx

    则说明已有镜像相关的container会话,您需执行如下命令,删除镜像相关的container会话。需删除镜像相关的所有container会话后,再卸载镜像。

    docker rm -f 容器ID或容器名称

    上述命令中容器ID或容器名称,即上述报错提示中container后的数值xxxxxx,需根据实际情况替换。

  3. 执行以下命令查看docker镜像是否卸载完成。

    docker images
    • 若显示为空,如图1所示,则表示卸载完成。
      图1 卸载docker镜像完成
    • 若显示有客户端信息,如图2所示,则可执行2,重新删除docker镜像。
      图2 卸载docker镜像未完成

  4. 卸载完成后,执行以下命令安装新版本app_publisher目录下安装包和镜像。

    1
    2
    cd app_publisher_V1.xxxxxxx
    ./install.sh
    

相关文档