Thank you for posting in Q & A
Refer to this link it may help you.
Install Apache Tomcat On Your Azure Linux Redhat VM
Please don’t forget to Accept the answer
and up-vote wherever the information provided helps you, this can be beneficial to other community members.