mac installation configuration Tomcat

First, install Tomcat

1, first of all to the official website to download Tomcat: https://tomcat.apache.org/download-90.cgi

img

2, tomcat unzip the file, it is best to rename the file name "Tomcat", easy to find later, and finally put it in / Library (repository)

. (1) Click finder -> Users -> Your computer's name -> Resources (some also called / Library).

(2) Some Apple will hide the library catalog, direct access to the upper left corner, go to the folder, fill in the path / Library, he entered the repository.

img

Second, the terminal (Terminal) opens directly Tomcat

1, into the Tomcat bin directory: an input terminal cd / Library / Tomcat / bin, the transport losers

cd /Library/Tomcat/bin

Tomcat can also open the folder, the bin folder drag directly to the terminal, of course, the premise is to enter cd + Space

2, all operations from the authorized bin directory: an input terminal sudo chmod 755 * .sh, the transport losers

sudo chmod 755 *.sh

3, this time to enter a password, the transport losers

4, this time can open Tomcat, the input terminal sudo sh ./startup.sh, the transport losers

sudo sh ./startup.sh

img

Terminal after the success of such

Third, enter the URL into the browser localhost:8080, if the following screen appeared to prove successful

img

Fourth, close Tomcat, the input terminal sh ./shutdown.sh, to close the transport

Description:

sudo super administrator privileges for the system.

chmod change the access mode of one or more files

755 on behalf of users of the file has read, write, and execute permissions, other people have the same group and execute permissions to read, no write permissions, and privileges as other users of the same group of people.

777 representatives, user, group, others, has read and write and execute permissions.

* Chmod -R 777 folername, get folder permissions.

Guess you like

Origin www.cnblogs.com/x1you/p/11606053.html