This is not a 5 minute job.
A start is here
https://linuxize.com/post/how-to-install-tomcat-9-on-centos-7/You can follow the first parts down to the systemd unit file.
Create that and then you will need a dropin file as per this:
https://forums.koozali.org/index.php/topic,54569.msg286027.html#msg286027THisis the important bit:
/etc/systemd/system/tomcat.service.d/51custom.conf
[Install]
WantedBy= sme-server.target
(You can do the same thing but put it in /usr/lib/systemd/system is you prefer)
You will need a key:
config set tomcat service status enabled access public
Probably a post-upgrade/reboot and see if the service is up:
systemctl status tomcat
After that then you need to look at access - you could use AllowHosts and TCPPort keys in the config above to open ports and limit access.
Note :
In most cases, when running Tomcat in a production environment, you will use a load balancer or reverse proxy . It’s a best practice to allow access to port 8080 only to your internal network.
This is only a VERY rough and untested guide - you will lneed to do a lot of reading, and I suggest you build a test VM and experiment on that before using it in production.
Note also - v11 is around the corner. Instructions would be similar though.