Tomcat, as a free server word-of-mouth is too good, this would like to install a research and research, helpless computer is a Mac system, search on the internet a number of installation methods are always wrong, until met this blog, http://www.cnblogs.com/qingyuan/p/4145175.html.
Step 1: Find the Tomcat website Portal: http://tomcat.apache.org/download-90.cgi
Find the download area zip format and tar.gz format are OK, I chose tar.gz
2: After decompression into the library directory (that is, the repository), change the name to Tomcat:
3: Open Terminal:
Enter sudo chmod 755/library/tomcat/bin/*.sh, and the terminal will let you enter the password, which is your computer password
start Tomcat to continue in terminal input cd/library/tomcat/bin/, go to Bin directory
After continuing the sudo sh startup.sh, the terminal will display:
Using catalina_base:/library/tomcat
Using Catalina_home:/library/tomcat
Using Catalina_tmpdir:/library/tomcat/temp
Using Jre_home:/library/java/javavirtualmachines/jdk1.8.0_101.jdk/contents/home
Using CLASSPATH:/library/tomcat/bin/bootstrap.jar:/library/tomcat/bin/tomcat-juli.jar
Tomcat started.
At this point the Tomcat server is turned on, verified, and entered in the browser: localhost:8080 if the following interface appears, the installation is successful.
If you need to turn off shutdown.sh
Say I encountered in the installation of the pit, just start the installation of the search for someone else's blog, follow their steps to operate, but at the terminal always appear no such file or directory such as the error message. Then the blog practice is to enter the account password, and there is no bin directory, resulting in an error. Write this blog is also hope and I met the same situation of students can take a little detour.
Installation of Tomcat under Mac system, and terminal presence no such file or directory error prompt solution