-
Notifications
You must be signed in to change notification settings - Fork 4
Tomcat Setup for Front End Debugging
Sharan Srivatsa edited this page Apr 12, 2018
·
2 revisions
(https://wolfpaulus.com/mac/tomcat/)
- java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
- setting JAVA_HOME on mac: https://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/
- Download tomcat: https://tomcat.apache.org/download-90.cgi
- Unzip it
- sudo mkdir -p /usr/local
- sudo mv ~/Downloads/apache-tomcat-9.0.1 /usr/local
- sudo rm -f /Library/Tomcat
- sudo ln -s /usr/local/apache-tomcat-9.0.1 /Library/Tomcat
- sudo chown -R <your_username> /Library/Tomcat
id -un // Do this to get your username. For me it was Sharan
sudo chown -R Sharan /Library/Tomcat
- sudo chmod +x /Library/Tomcat/bin/*.sh
- /Library/Tomcat/bin/startup.sh
- /Library/Tomcat/bin/shutdown.sh
- In /usr/local/apache-tomcat-9.0.7/webapps create a project folder. Call it
MyApp
for example
engr2-3-183-dhcp:MyApp Sharan$ ls
3.html us.json
engr2-3-183-dhcp:MyApp Sharan$
-
Rename the html file to index.html
-
Start Tomcat