Start Tomcat on the command line under mac, but the browser enters http://localhost:8080, prompt 404

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

Guess you like

Origin blog.csdn.net/qq_45465526/article/details/102885158