Install Apache Tomcat via Yum
# yum -y install tomcat
Most of the important Tomcat files will be located in /usr/share/tomcat. If you already have a Tomcat application that you want to run, you can place it in the /usr/share/tomcat/webapps directory, configure Tomcat, and restart the Tomcat service.
$ sudo systemctl start tomcat
$ sudo systemctl status tomcat
● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2020-07-02 20:48:12 EDT; 6s ago
Main PID: 23673 (java)
Tasks: 33
Memory: 69.2M
CGroup: /system.slice/tomcat.service
└─23673 /usr/lib/jvm/jre/bin/java -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dca...
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: Jul 02, 2020 8:48:14 PM org.apache.catalina.startup.Catalina load
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: INFO: Initialization processed in 1362 ms
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: Jul 02, 2020 8:48:14 PM org.apache.catalina.core.StandardService startInternal
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: INFO: Starting service Catalina
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: Jul 02, 2020 8:48:14 PM org.apache.catalina.core.StandardEngine startInternal
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: INFO: Starting Servlet Engine: Apache Tomcat/7.0.76
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: Jul 02, 2020 8:48:14 PM org.apache.coyote.AbstractProtocol start
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: Jul 02, 2020 8:48:14 PM org.apache.catalina.startup.Catalina start
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: INFO: Server startup in 113 ms
$ sudo systemctl start tomcat
$ sudo systemctl status tomcat
● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2020-07-02 20:48:12 EDT; 6s ago
Main PID: 23673 (java)
Tasks: 33
Memory: 69.2M
CGroup: /system.slice/tomcat.service
└─23673 /usr/lib/jvm/jre/bin/java -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dca...
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: Jul 02, 2020 8:48:14 PM org.apache.catalina.startup.Catalina load
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: INFO: Initialization processed in 1362 ms
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: Jul 02, 2020 8:48:14 PM org.apache.catalina.core.StandardService startInternal
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: INFO: Starting service Catalina
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: Jul 02, 2020 8:48:14 PM org.apache.catalina.core.StandardEngine startInternal
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: INFO: Starting Servlet Engine: Apache Tomcat/7.0.76
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: Jul 02, 2020 8:48:14 PM org.apache.coyote.AbstractProtocol start
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: Jul 02, 2020 8:48:14 PM org.apache.catalina.startup.Catalina start
Jul 02 20:48:14 ip-172-16-0-86.ca-central-1.compute.internal server[23673]: INFO: Server startup in 113 ms
Comments
Post a Comment