Server Update

本文件介绍了 Headwind MDM(HMDM)服务器安装的更新。在服务器上进行更新之前,请确保您的移动设备运行的是兼容版本的 HMDM 启动程序。

重要

An incompatible launcher app version can cause a loose of communication between the server and the mobile devices. To prevent this, update the launcher app on the mobile devices first. Please refer to chapter Verify Update on Mobile Devices to learn more.

您可以向我们的支持团队索取安装文件。更新时只需要应用服务器的 WAR 文件。

  1. Log on to the console of the HMDM server.

  2. 创建 HMDM 服务器配置和应用程序的备份目录。

    mkdir /root/hmdm_backup_$(date --iso-8601)
    

    重要

    您可以使用任何目录备份文件,只需确保不使用应用程序服务器的配置或应用程序目录,例如``/var/lib/tomcat9/*``

  3. Create a backup of the HMDM database.

    pg_dump -h 127.0.0.1 -U hmdm -W hmdm > /root/hmdm_backup_$(date --iso-8601)/db.sql
    
  4. 创建 HMDM 服务器配置的备份。

    cp /var/lib/tomcat9/conf/Catalina/localhost/ROOT.xml /root/hmdm_backup_$(date --iso-8601)/ROOT.xml
    
  5. 创建 HMDM 应用程序的备份。

    cp /var/lib/tomcat9/webapps/ROOT.war /root/hmdm_backup_$(date --iso-8601)/ROOT.war
    
  6. 将收到的应用程序存档复制到应用程序服务器的 webapps 目录``/var/lib/tomcat9/webapps/ROOT.war``。

  7. 使用``systemctl restart tomcat9.service`` 重新启动应用程序服务器。

  8. 检查 HMDM 服务器的 Web 面板是否功能完备。如果遇到 HTTP 错误 404,请从备份中恢复 HMDM 配置文件,并重新启动应用程序服务器。