Mac command line starts Tomcat

Source: Internet
Author: User

I. Modification of authorization

Go to the Tomcat Bin directory and modify the authorization

?  pwd/Users/yp/Documents/workspace/apache-tomcat-7.0.68/bin?  bin sudo chmod 755 *.sh
    • sudo is the system Super Administrator privilege.
    • chmod changing the access mode of one or more files
    • 755 means that the user has read, write, and execute permissions on the file, and other people in the same group have permission to execute and read, no write permission, and other users have the same permissions as the same group of people.
    • 777 stands for, User,group, others, both read and write and execute permissions.
    • Chmod-r 777 Folername, get folder permissions.
Second, start

To execute a startup command sudo sh ./startup.sh :

? Bin sudo sh./startup.shusing catalina_base:/users/yp/documents/workspace/apache-tomcat-7.0.68using catalina_home: /Users/ Yp/documents/workspace/apache-tomcat-7.0.68Using CATALINA_ TMPDIR: /users/yp/documents/workspace/apache-tomcat-7.0< Span class= "Hljs-number" >.68/tempusing jre_home: /library/java/javavirtualmachines/jdk1 .8.0_40.jdk/contents/homeusing CLASSPATH: /users/yp/documents/workspace/apache-tomcat-7.0.68/bin/bootstrap.jar:/users/yp/documents/workspace/apache-tomcat-< Span class= "Hljs-number" >7.0.68/bin/tomcat-juli.jartomcat started. 


/span>

Visit http://localhost:8080/

Third, close

./shutdown. Sh

Mac command line starts Tomcat

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.