Apply License File - QMetry Tomcat installed on docker
Steps to Apply QMetry License File for QMetry below v8.9.0.3
Once you have received your QMetry license file "license.key" from support, follow the below steps to apply it to your server:
View existing dockers running on the server.
docker ps
Go to the QMetry Tomcat Docker.
docker exec -it <docker_name> bash
Example 3. QMetry Tomcat Dockerdocker exec -it qmetry_app_1 bash
Backup your existing license.key in the same location.
cd bin mv license.key license_old.key exit
Copy the license file placed on your server /opt/ directory inside the docker.
cd/opt docker cp/opt/license.key <docker_name>:/home/qmetry/QMetry/bin example: docker cp/opt/license.key qmetry_App_!:/home/qmetry/QMetry/bin/
For Windows:
Open the command prompt and go to the directory where license.key is downloaded.
Run dir command to confirm license.key exists in the current working directory.
Run the command to copy license into docker: example: docker cp license.key qmetry_app_1:/home/qmetry/QMetry/bin
Mandatory restart of services to reflect the license.
docker stop<docker_name> example: docker stop qmetry_app_1 docker start<docker_name> example: docker start qmetry_app_1
Note
In case you have configured Redis Caching for QMetry installed on same server OR a separate server - connect to that server and run the below commands :
To view existing containers : docker ps
Replace the container name seen in above command : docker exec -it container-name redis-cli FLUSHALL
Steps to Apply QMetry License File for QMetry v8.9.0.3 and above
Once you have received your QMetry license file "license.key" from support, follow the below steps to apply it to your server:
Go to the QMetry installation directory chosen at the time of installation.
/opt/qmetryapp/license/ cd <directory_path>
Go to license directory
cd license
Backup your existing license.key to the same location:
mv license.key license_old.key
Place the new license file in the directory mentioned in step 2 either by copying it or downloading it directly in the directory.
Mandatory restart of services to reflect the license.
docker stop<docker_name> example: docker stop qmetry_app_1 docker start<docker_name> example: docker start qmetry_app_1
Note
In case you have configured Redis Caching for QMetry installed on same server OR a separate server - connect to that server and run the following commands:
docker ps //view existing containers docker exec -it container-name redis-cli FLUSHALL // replace the container name