If you are trying to run startup.sh shell script to Start Apache Tomcat 8 server and you are getting -bash: startup.sh: command not found error message in Terminal Console on your Mac OS X operating system then you much check the following,
Make sure you are at the bin directory where startup.sh script is located example :
Users/code2care/Setups/apache-tomcat-8.0.22/bin/
You must you prefix ./ before startup.sh, ie $ ./startup.sh or else you will get -bash: startup.sh: command not found.
Make sure you have executed permission for startup.sh, else use chmod to modify permissions.
bash-3.2$ cd /Users/code2care/Setups/apache-tomcat-8.0.22/bin/
bash-3.2$ ./startup.sh
Using CATALINA_BASE: /Users/c2c/Setups/apache-tomcat-8.0.22
Using CATALINA_HOME: /Users/c2c/Setups/apache-tomcat-8.0.22
Using CATALINA_TMPDIR: /Users/c2c/Setups/apache-tomcat-8.0.22/temp
Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
Using CLASSPATH: /Users/c2c/Setups/apache-tomcat-8.0.22/bin/bootstrap.jar:/Users/c2c/Setups/apache-tomcat-8.0.22/bin/tomcat-juli.jar
Tomcat started.
bash-3.2$
More Posts related to Tomcat,
- How to check installed Tomcat version
- How to kill tomcat server process using Mac Terminal Command
- Tomcat Manager Default Username and Password
- -bash: startup.sh: command not found - Apache Tomcat 8
- Error 404 Tomcat homepage http://localhost:8080/ not displayed
- Fix Apache Tomca: java.lang.OutOfMemoryError: PermGen spaceError
More Posts:
- 11 Weeks of Android Online Sessions-15-Jun-to-28-Aug-2020 - Android
- [Fix] java: incompatible types: java.lang.String cannot be converted to int - Java
- How to clear Cache, Cookies and History on iPhone Safari - iOS
- Fix: SpringFramework BeanDefinitionValidationException: Could not find an init method named - Java
- Split String in Python with Multiple Delimiters - Python
- How to Uninstall Microsoft Teams on Mac - Teams
- Java SE JDBC Select Statement Example - Java
- PHP Fatal error : Call to a member function bind_param() on a non-object - PHP