码迷,mamicode.com
首页 > 系统相关 > 详细

mac安装tomcat,找不到catalina.sh

时间:2017-11-12 14:56:52      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:tomcat配置   mac   找不到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

-rwxr-xr-x@ 1 ***  staff  21646  9 29 15:26 catalina.sh

-rwxr-xr-x@ 1 ***  staff   1922  9 29 15:26 configtest.sh

-rwxr-xr-x@ 1 ***  staff   8157  9 29 15:26 daemon.sh

-rwxr-xr-x@ 1 ***  staff   1965  9 29 15:26 digest.sh

-rwxr-xr-x@ 1 ***  staff   3547  9 29 15:26 setclasspath.sh

-rwxr-xr-x@ 1 ***  staff   1902  9 29 15:26 shutdown.sh

-rwxr-xr-x@ 1 ***  staff   1904  9 29 15:26 startup.sh

-rwxr-xr-x@ 1 ***  staff   5024  9 29 15:26 tool-wrapper.sh

-rwxr-xr-x@ 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

标签:tomcat配置   mac   找不到catalina.sh   

原文地址:http://3620583.blog.51cto.com/3610583/1980939

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!