Installation of Tomcat under Mac system, and terminal presence no such file or directory error prompt solution

Source: Internet
Author: User
Tags tomcat server

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.