The first step:
1. Open your terminal: then enter Pico. Bash_profile return
Step Two:
2. Then add the path to your tomcat-placed paths
After editing, control+x (save) Continue: Y (agree) carriage return;
3. Enter Export path= $PATH:/library/tomcat6/bin
4. Update the configured environment variable source. bash_profile
Step three: Start Tamcat;
1) If you have configured (convenient) This step, you can enter the startup.sh directly in the terminal
2) If you do not configure (convenient) This step, first CD xxxx (XXX Indicates the path that you Tomcat put to), and then enter ./startup.sh
Attention:
If the word "Permission denied" appears after startup.sh, you will need to set permissions on this directory:
Start Terminal: Enter sudo chmod 755 xxx/bin/*.sh (XXX Indicates the path you tomcat put to) enter;
OK, start Tomcat again at the terminal input startup.sh;
Configure Tomcat under Mac