After upgrading the service, if a problem occurs, you can roll back the service to revert to the previous normal state.
Please note that HENGSHI SENSE currently does not support downgrade operations, and rollback operations will not preserve modifications made after the upgrade.
The specific rollback operation steps are as follows:
bin/hengshi-sense-bin stop all
mkdir -p backup/current/
cp -r bin conf lib pg_data local_data temp_data backup/current/
rm -rf bin conf lib pg_data local_data temp_data
# View the backup directory
ls backup/
hengshi-20181127172943.tgz
# Select a backup archive to roll back
tar xzf hengshi-20181127172943.tgz
# View the contents of the archive
cd hengshi-20181127172943
ls
bin conf data lib
# Roll back the contents
mv bin conf lib ../
mv data/* ../
bin/hengshi-sense-bin start all