Because the Mac system was re-installed a few days ago. Get ready to set up some of the necessary lab environments next. Here's a brief summary of what you should be aware of when deploying Tomcat on Mac OS x:
Download the corresponding version number of Tomcat, such as zip inside http://tomcat.apache.org/download-70.cgi.
Download the folder you want to deploy and unzip it. There are two problems that need to be solved, one is the permissions of the script.
In the terminal, navigate to the Tomcat folder and enter
sudo chmod 755./bin/*.sh
The other one is the Java environment variable problem. This is slightly more complicated and can be seen in these presentations:
http://han.guokai.blog.163.com/blog/static/136718271201301183938165/http://www.micmiu.com/lang/java/ set-javahome-on-mac-os-x/
Overall. The simplest method is to write in the environment variable configuration:
Export java_home= '/usr/libexec/java_home '
Note that this is not a single quote, but the key next to 1 on the keyboard.
As for how to change the environment variables, can be a reference here: http://elf8848.iteye.com/blog/1582137 or to participate in my previous blog, more simple.
are set up well afterwards. In the terminal into the Bin folder, enter: Bash startup.sh. You can see the icon for Java, and then you can see the admin page of Tomcat in http://localhost:8080/. I haven't figured it out yet. How can I see the console output of Tomcat? Take a look at this question when you are free.
Update: Just checked. How to output the console information. actually very easy. See here: http://dearseven.blog.163.com/blog/static/1005379222013774319389/so open startup.sh and change the last line to:
# exec "$PRGDIR"/"$EXECUTABLE" start [email protected] "EXEC" $PRGDIR "/" $EXECUTABLE "Run" [email protected] "
can be, very easy.
The experience of deploying Tomcat in Mac OS X