Sudo: /opt/apache-tomcat-8/bin/startup.sh: command not found

Please I can getting this error in starting the server, how do I go about it.

Hello @achebepeter94,
Kindly check the steps in the attached gif.
tomcat

Thanks,
KodeKloud Support

On following this exact step I was able to start the start.sh but connecting to the port just refuses to work.

I believe the fault was from the downloaded link. I went to the apache tomcat website to get the zip link and it worked just fine.

Here’s the link for anyone facing such issue.
https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.79/bin/apache-tomcat-8.5.79.zip

Command to download it.

wget https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.79/bin/apache-tomcat-8.5.79.zip --no-check-certificate

Great! Happy learning.

Hello, I had the same problem, the issue is that the configuration file points to port 8080 instead of 8081. You can change it under /opt/apache-tomcat-11/conf/server.xml

<Connector port="8081" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8081" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

Regards!