The MAC command line launches tomcat in detail

  • 2020-06-19 12:06:09
  • OfStack

The MAC command line launches tomcat in detail

1. Modify authorization

Go to 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 system super administrator privilege. chmod changes the access mode for one or more files 755 represents that the user has the right to read, write, and execute the file. Other members in the same group have the right to execute and read the file. The 777 represents user,group,others, all with 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.sh
Using CATALINA_BASE:  /Users/yp/Documents/workspace/apache-tomcat-7.0.68
Using CATALINA_HOME:  /Users/yp/Documents/workspace/apache-tomcat-7.0.68
Using CATALINA_TMPDIR: /Users/yp/Documents/workspace/apache-tomcat-7.0.68/temp
Using JRE_HOME:    /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home
Using 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.jar
Tomcat started.

Visit http: / / localhost: 8080 /

The above is the example of MAC command to start tomcat, if you have any questions, please leave a message or to this site community exchange discussion, we make progress together, thank you for reading, I hope to help you, thank you for your support to this site!


Related articles: