Enter
cd /Users/mac/Library/Tomcat8.5.47/bin
into the bin folder, or you can enter cd
+space first and then directly drag the bin folder into the terminal.
Then type
sudo chmod 755 *.sh
Authorize all operations in the bin directory;
then prompt to enter
the password. After entering the password , enter
sudo sh startup.sh
Start Tomcat, then enter http://localhost:8080 in the browser.
The command to turn off Tomcat is:
sudo sh shutdown.sh