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 文件。
Log on to the console of the HMDM server.
创建 HMDM 服务器配置和应用程序的备份目录。
mkdir /root/hmdm_backup_$(date --iso-8601)
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
创建 HMDM 服务器配置的备份。
cp /var/lib/tomcat9/conf/Catalina/localhost/ROOT.xml /root/hmdm_backup_$(date --iso-8601)/ROOT.xml
创建 HMDM 应用程序的备份。
cp /var/lib/tomcat9/webapps/ROOT.war /root/hmdm_backup_$(date --iso-8601)/ROOT.war
Copy the received application archive to the application server's
webappsdirectory/var/lib/tomcat9/webapps/ROOT.war.使用``systemctl restart tomcat9.service`` 重新启动应用程序服务器。
检查 HMDM 服务器的 Web 面板是否功能完备。如果遇到 HTTP 错误 404,请从备份中恢复 HMDM 配置文件,并重新启动应用程序服务器。
备注
If the version number has not been updated in the web panel About section you may need to clear the cache of your browser.