mac安装tomcat,找不到catalina.sh
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac安装tomcat,找不到catalina.sh相关的知识,希望对你有一定的参考价值。
1. 首先进入tomcat文件夹
cd Desktop/tomcat7/bin
2. ls -al *.sh
3. chmod +x .*sh
4. ls -al *.sh
5. ./startup.sh
就可以启动tomcat了
6. ./shutdown.sh
关闭tomcat服务
***MacBook-Pro:~ ***$ cd Desktop/tomcat7/bin
***MacBook-Pro:bin ***$ ls -al *.sh
[email protected] 1 *** staff 21646 9 29 15:26 catalina.sh
[email protected] 1 *** staff 1922 9 29 15:26 configtest.sh
[email protected] 1 *** staff 8157 9 29 15:26 daemon.sh
[email protected] 1 *** staff 1965 9 29 15:26 digest.sh
[email protected] 1 *** staff 3547 9 29 15:26 setclasspath.sh
[email protected] 1 *** staff 1902 9 29 15:26 shutdown.sh
[email protected] 1 *** staff 1904 9 29 15:26 startup.sh
[email protected] 1 *** staff 5024 9 29 15:26 tool-wrapper.sh
[email protected] 1 *** staff 1908 9 29 15:26 version.sh
***MacBook-Pro:bin ***$ chmod +x *.sh
***MacBook-Pro:bin ***$ ./startup.sh
Using CATALINA_BASE: /Users/***/Desktop/tomcat7
Using CATALINA_HOME: /Users/***/Desktop/tomcat7
Using CATALINA_TMPDIR: /Users/***/Desktop/tomcat7/temp
Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
Using CLASSPATH: /Users/***/Desktop/tomcat7/bin/bootstrap.jar:/Users/***/Desktop/tomcat7/bin/tomcat-juli.jar
Tomcat started.
***MacBook-Pro:bin ***$ ./shutdown.sh
Using CATALINA_BASE: /Users/***/Desktop/tomcat7
Using CATALINA_HOME: /Users/***/Desktop/tomcat7
Using CATALINA_TMPDIR: /Users/***/Desktop/tomcat7/temp
Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
Using CLASSPATH: /Users/***/Desktop/tomcat7/bin/bootstrap.jar:/Users/***/Desktop/tomcat7/bin/tomcat-juli.jar
***MacBook-Pro:bin***$
这样就可以成功配置tomcat了。并成功启动和关闭tomcat了
本文出自 “java九九乘法表” 博客,请务必保留此出处http://3620583.blog.51cto.com/3610583/1980939
以上是关于mac安装tomcat,找不到catalina.sh的主要内容,如果未能解决你的问题,请参考以下文章
解决eclipse配置Tomcat时找不到server选项(Mac通用)
Mac安装Scrapy教程及安装成功后找不到Scrapy解决
tomcat应用org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].S