Cannot find ./catalina.sh The file is absent or does not have execute permission This file is nee

25 篇文章 1 订阅
13 篇文章 1 订阅

从tomcat官网上下载了apache-tomcat-7.zip,在window 7系统里面解压以后,直接放在了Linux服务器上。

进入tomcat/bin目录,执行启动的时候出现如下错误:

[root@test bin]# ./startup.sh
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program

解决方法:

在tomcat 的bin目录下 执行这条命令
chmod +x *.sh  
再次执行 sh catalina.sh通过,

然后用sh startup.sh启动成功

如下:

[root@test bin]# chmod +x *.sh
[root@test bin]# sh catalina.sh
Using CATALINA_BASE:   /usr/local/duckling/tomcat-5.5.36
Using CATALINA_HOME:   /usr/local/duckling/tomcat-5.5.36
Using CATALINA_TMPDIR: /usr/local/duckling/tomcat-5.5.36/temp
Using JRE_HOME:        /usr/Java/jdk1.7.0
Using CLASSPATH:       /usr/local/duckling/tomcat-5.5.36/bin/bootstrap.jar
Usage: catalina.sh ( commands ... )
commands:
  debug             Start Catalina in a debugger
  debug -security   Debug Catalina with a security manager
  jpda start        Start Catalina under JPDA debugger
  run               Start Catalina in the current window
  run -security     Start in the current window with security manager
  start             Start Catalina in a separate window
  start -security   Start in a separate window with security manager
  stop              Stop Catalina
  stop -force       Stop Catalina (followed by kill -KILL)
  version           What version of tomcat are you running?
[root@test bin]# sh startup.sh
Using CATALINA_BASE:   /usr/local/duckling/tomcat-5.5.36
Using CATALINA_HOME:   /usr/local/duckling/tomcat-5.5.36
Using CATALINA_TMPDIR: /usr/local/duckling/tomcat-5.5.36/temp
Using JRE_HOME:        /usr/java/jdk1.7.0
Using CLASSPATH:       /usr/local/duckling/tomcat-5.5.36/bin/bootstrap.jar
[root@test bin]#


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值