I am configuring CentOS 7 system for a Java developer. So firstly I have installed Java using command wget java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el7_3.x86_64.rpmafter that installed the downloaded packageyum install java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el7_3.x86_64.rpmand it is successfully installed, and I have checked it usingjava -versionand below is the command replyjava version 1.7.0_131OpenJDK Runtime Environment (rhel-2.6.9.0.el7_3-x86_64 u131-b00)OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)Please tell me if there is something wrong in the above process.Now I have to install Apache tomcat 8 but I am studying it over net but that is quite confusing because they are creating groups and something like permissions. Please someone tell me the shortest way because we only want to test the system and will deploy a sample test.war for our testing purpose.
How to install Apache Tomcat 8 on centos 7?
centos;java;tomcat
after you have installed java on your system, you need to do as i mention here:#mv apache-tomcat-7 /opt#useradd tomcat#chown -R tomcat:tomcat /opt/apache-tomcat-7To Install tomcat you need to run the startup.sh #cd   /opt/apache-tomcat#./bin/startup.shnow you make tomcat file in init.d directory to run tomcat as a service.#vim  /etc/init.d/tomcatcopy paste the following script in your tomcat file, change directories as it is in your system#!/bin/bash# chkconfig: 234 20 80# description: Tomcat Server basic start/shutdown scriptexport TOMCAT_HOME=/opt/apache-tomcat-7  START_TOMCAT=${TOMCAT_HOME}/bin/startup.sh  STOP_TOMCAT=${TOMCAT_HOME}/bin/shutdown.shexport downloadPath=/tmpexport JAVA_OPTS=-Xms2g -Xmx2g -XX:PermSize=512m  -XX:MaxPermSize=512mstart() {          echo -n Starting tomcat:           cd ${TOMCAT_HOME}/bin          su -p -s /bin/sh tomcat ${START_TOMCAT}          echo done. }stop() {          echo -n Shutting down tomcat:           cd ${TOMCAT_HOME}/bin          su -p -s /bin/sh tomcat ${STOP_TOMCAT}          sleep 5          for pid in ps -ef | grep  org.apache.catalina.startup.Bootstrap | grep -v grep | awk '{print  $2}' | xargs          do             kill -9 $pid          done          echo done. }case $1 in    start)    start    ;;    stop)    stop    ;;    restart)    stop    start    ;;    *)    echo Usage: $0 {start|stop|restart}esacexit 0chmod +x /etc/init.d/tomcatchkconfig --add tomcatsu - tomcatservice tomcat startnote that Permsize, xms and xmx sizes are optional and you need to ask your developers for the exact amount.if you need help on creating users for the web login on tomcat, please ask.