Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does MAC start tomcat on the command line?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how MAC starts tomcat on the command line". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

A detailed introduction to starting tomcat from the MAC command line

I. modify the authorization

Enter the bin directory of tomcat and modify the authorization

➜bin pwd/Users/yp/Documents/workspace/apache-tomcat-7.0.68/bin➜ bin sudo chmod 755 * .sh

Sudo is the super administrator privilege of the system.

Chmod changes the access mode of one or more files

755 means that the user has the permission to read, write and execute the file, other people in the same group have the permission to execute and read, but do not have the right to write, and other users have the same permissions as those in the same group.

777 delegates, user,group, others, have read, write and executable permissions.

Chmod-R 777 folername, get folder permissions.

2. Start

Execute the 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.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-7.0.68/bin/tomcat-juli.jarTomcat started.

Visit http://localhost:8080/

This is the end of the content of "how to start tomcat with MAC on the command line". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report