I am having trouble running the tomcat in my terminal. It says no command found. I have attached the screenshot of my terminal below. Please let me know what I did wrong. Thank you in advance.
It is fine
thor@host01 ~$ sudo curl -OL https://downloads.apache.org/tomcat/tomcat-8/v8.5.97/bin/apache-tomcat-8.5.97.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.3M 100 10.3M 0 0 5703k 0 0:00:01 0:00:01 --:--:-- 5703k
thor@host01 ~$ sudo tar -xf apache-tomcat-8.5.97.tar.gz
thor@host01 ~$ sudo mv apache-tomcat-8.5.97 /opt/apache-tomcat-8
thor@host01 ~$ sudo /opt/apache-tomcat-8/bin/startup.sh
Using CATALINA_BASE: /opt/apache-tomcat-8
Using CATALINA_HOME: /opt/apache-tomcat-8
Using CATALINA_TMPDIR: /opt/apache-tomcat-8/temp
Using JRE_HOME: /usr
Using CLASSPATH: /opt/apache-tomcat-8/bin/bootstrap.jar:/opt/apache-tomcat-8/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
thor@host01 ~$ ps -ef | grep tomcat
root 137 1 0 07:40 pts/0 00:00:03 /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /opt/apache-tomcat-8/bin/bootstrap.jar:/opt/apachetomcat-8/bin/tomcat-juli.jar -Dcatalina.base=/opt/apache-tomcat-8 -Dcatalina.home=/opt/apache-tomcat-8 -Djava.io.tmpdir=/opt/apache-tomcat-8/temp org.apache.catalina.startup.Bootstrap start
thor 210 46 0 07:40 pts/0 00:00:00 grep --color=auto tomcat
thor@host01 ~$
Do you have any ideas why its not running on my PC
In that lab, run these commands exactly in order
sudo curl -OL https://downloads.apache.org/tomcat/tomcat-8/v8.5.97/bin/apache-tomcat-8.5.97.tar.gz
sudo tar -xf apache-tomcat-8.5.97.tar.gz
sudo mv apache-tomcat-8.5.97 /opt/apache-tomcat-8
sudo /opt/apache-tomcat-8/bin/startup.sh