...
# Java 8export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home
Insatlling Installing Java 8 using brew :
Similarly you can install java using brew by typing the following commands into a terminal and switching the default java version as stated above
...
alias mysql=/usr/local/mysql/bin/mysqlalias mysqladmin=/usr/local/mysql/bin/mysqladmin
Install tomact tomcat :
Download and install the core binary from the original website here https://tomcat.apache.org/download-70.cgi
- Unzip the file downloaded
- Run the following commands.
sudo mkdir -p /Library/Tomcat
sudo mv ~/PATH-TO-UNZIPED-TOMCAT/apache-tomcat-7.X.XX /Library/Tomcat
- Make all scripts executable
sudo chmod +x /Library/Tomcat/apache-tomcat-7.X.XX/bin/*.sh
Starting Tomcat
sudo ./Library/Tomcat/apache-tomcat-7.X.XX/bin/startup.sh
After starting Tomcat server you can visit http://localhost:8080 on a web browser and observe the following screen
Stoping Stopping Tomcat
sudo ./Library/Tomcat/apache-tomcat-7.X.XX/bin/shutdown.sh