Apr 26, 2021 From the Apple menu in the corner of your screen, choose About This Mac. You should see the macOS name, such as macOS Big Sur, followed by its version number. If you need to know the build number as well, click the version number to see it. Which macOS version is the latest? Terminal (Terminal.app) is the terminal emulator included in the macOS operating system by Apple. Terminal originated in NeXTSTEP and OPENSTEP, the predecessor operating systems of macOS. As a terminal emulator, the application provides text-based access to the operating system, in contrast to the mostly graphical nature of the user experience of macOS, by providing a command-line interface.
The Servlet 4.0 specification is out and Tomcat 9.0.x does support it. Time to dive into Tomcat 9.
Since OS X 10.7 Java is not (pre-)installed anymore, let’s fix that by installing a Prebuilt OpenJDK Binary. Easy to follow details about how to install OpenJDK are available here. Anyway, after opening the Terminal app,
hopefully shows something like this:
A kind of Tomb porting on Mac OS X. MacTomb is a free and open source system for file encryption on Mac OS X, facilitating the backup of secret files through encrypted storage containers. MacTomb shares most concepts with Tomb, that is, it can be considered its little brother. Mac OS 10.7 to 10.7.2: Upgrade to at least Mac OS 10.7.3, so you can use Java 8. Mac OS 10.5 to 10.6: you are stuck with Apple's version of Java 6. This means the recent versions of JOSM will not run, but you can install an older version: Use JOSM version 7000 for Java 6 (version 7000 is the last release compatible with Java 6).
Whatever you do, when opening Terminal and running ‘java –version’, you should see something like this, with a version of at least 1.8.x I.e. Tomcat 9.x requires Java 8 or later.
JAVA_HOME is an important environment variable, not just for Tomcat, and it’s important to get it right. Here is a trick that allows me to keep the environment variable current, even after a Java Update was installed. In ~/.zshrc, I set the variable like so:
Here are the easy to follow steps to get it up and running on your Mac
sudo mkdir -p /usr/local
sudo mv ~/Downloads/apache-tomcat-9.0.40 /usr/local
sudo rm -f /Library/Tomcat
sudo ln -s /usr/local/apache-tomcat-9.0.40 /Library/Tomcat
sudo chown -R <your_username> /Library/Tomcat
sudo chmod +x /Library/Tomcat/bin/*.sh
Starting and stoping Tomcat works with executing the provided scripts, like so:/Library/Tomcat/bin/startup.sh
/Library/Tomcat/bin/shutdown.sh
Finally, after your started Tomcat, open your Mac’s Web browser and take a look at the default page: http://localhost:8080