Aug 29

Install Apache Tomcat 9 on MacOs

Download the .tar.gz binary under the section core from:

And the commands that I executed (I know , you are smart, so not explaining)
java -version
cd ~/Downloads/
tar xvf apache-tomcat-9.0.0.M26.tar.gz
mv apache-tomcat-9.0.0.M26 tomcat9
cd tomcat9/
cd bin/
sh [will start Tomact, go to http://localhost:8080 on your browser]
sudo mkdir -p /usr/local/tomcat9
sudo mv tomcat9 /usr/local/
sudo rm -f /Library/Tomcat [remove link to older installation of Tomcat if any]
sudo ln -s /usr/local/tomcat9 /Library/Tomcat
sudo chown -R sayedahmed /Library/Tomcat [change ownership]
chmod +x /Library/Tomcat/bin/*.sh [execute permission]
nano ~/.bash_profile


You might want to check:  (GUI to start/stop Tomcat)



Skip to toolbar