Linux启动tomcat出现的问题


在bin目录下启动出现 

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]#
转载:https://blog.csdn.net/home_zhang/article/details/8178471


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM