How to install Java 8 and tomcat 8 on CentOS 6 as service

Install Java 8:

Install Tomcat 8

Lets add Tomcat as a service

Paste

Add tomcat to startup

Lets enable tomcat user:

Start tomcat

Go to the browser:

http://serverip:8080/

If you want to run tomcat on port 80:

http://serverip/