mac tomcat
1 alampsdeMacBook-Pro:bin alamps$ ./startup.sh 2 3 4 5 Using CATALINA_BASE: /Users/alamps/Library/apache-tomcat-8.5.5 6 Using CATALINA_HOME: /Users/alamps/Library/apache-tomcat-8.5.5 7 Using CATALINA_TMPDIR: /Users/alamps/Library/apache-tomcat-8.5.5/temp 8 Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 9 Using CLASSPATH: /Users/alamps/Library/apache-tomcat-8.5.5/bin/bootstrap.jar:/Users/alamps/Library/apache-tomcat-8.5.5/bin/tomcat-juli.jar 10 Tomcat started. 11 alampsdeMacBook-Pro:bin alamps$ pwd 12 13 14 /Users/alamps/Library/apache-tomcat-8.5.5/bin 15 alampsdeMacBook-Pro:bin alamps$
原先安装了tomcat8.0.9版本,启动后,浏览器无法显示主页。通过读readme,要求java版本7.0以上,本机6.0版本,不符合要求,于是安装了tomcat7.0.55版本,可以正常使用
http://tomcat.apache.org/download-70.cgi
Last login: Tue Sep 6 22:16:14 on ttys000
alampsdeMacBook-Pro:~ alamps$ ls
07第一个oc的类.m Downloads a.out
07第一个oc的类.o Library androidworkspace
AndroidStudioProjects Movies apache-tomcat-8.5.5
Applications Music genymotion-log.zip
Desktop Pictures ios
Documents Public 百度云同步盘
alampsdeMacBook-Pro:~ alamps$ cd Library/
alampsdeMacBook-Pro:Library alamps$ ls
Accounts FontCollections Printers
Alipay Fonts PubSub
Application Scripts Google Safari
Application Support Group Containers Saved Application State
Assistants Icons Screen Savers
Audio IdentityServices Services
Autosave Information Input Methods Sounds
Caches Internet Plug-Ins Spelling
Calendars Keyboard Layouts SyncedPreferences
ColorPickers Keychains Voices
Colors LanguageModeling WebKit
Compositions LaunchAgents XMind
Containers Logs apache-tomcat-7.0.70
Cookies Mail apache-tomcat-8.5.5
Developer Messages com.apple.nsurlsessiond
Dictionaries PreferencePanes iMovie
Favorites Preferences iTunes
alampsdeMacBook-Pro:Library alamps$ cd apache-tomcat-7
-bash: cd: apache-tomcat-7: No such file or directory
alampsdeMacBook-Pro:Library alamps$ cd apache-tomcat-7.0.70/
alampsdeMacBook-Pro:apache-tomcat-7.0.70 alamps$ ls
LICENSE RUNNING.txt lib webapps
NOTICE bin logs work
RELEASE-NOTES conf temp
alampsdeMacBook-Pro:apache-tomcat-7.0.70 alamps$ cd bin/
alampsdeMacBook-Pro:bin alamps$ ls
bootstrap.jar setclasspath.sh
catalina-tasks.xml shutdown.bat
catalina.bat shutdown.sh
catalina.sh startup.bat
commons-daemon-native.tar.gz startup.sh
commons-daemon.jar tomcat-juli.jar
configtest.bat tomcat-native.tar.gz
configtest.sh tool-wrapper.bat
daemon.sh tool-wrapper.sh
digest.bat version.bat
digest.sh version.sh
setclasspath.bat
alampsdeMacBook-Pro:bin alamps$ ./startup.sh
Using CATALINA_BASE: /Users/alamps/Library/apache-tomcat-7.0.70
Using CATALINA_HOME: /Users/alamps/Library/apache-tomcat-7.0.70
Using CATALINA_TMPDIR: /Users/alamps/Library/apache-tomcat-7.0.70/temp
Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Using CLASSPATH: /Users/alamps/Library/apache-tomcat-7.0.70/bin/bootstrap.jar:/Users/alamps/Library/apache-tomcat-7.0.70/bin/tomcat-juli.jar
Tomcat started.