执行启动tomcat命令./startup.sh 提示 Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program 问题原因:没有给bin目录下的文件授权可执行权限: chmod +x bin/*.sh 然后用sh startup.sh启动成功
参考:http://dearseven.blog.163.com/blog/static/1005379222013764440253/ linux 下启动tomcat [root@test233 bin]# sh startup.sh Cannot find ./catalina.shThe file is absent or does not have execute permissionThis file is needed to run this program 解决办法:给.sh文件授
从终端进入tomcat的bin目录,然后执行startup.sh Cannot find bin/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 startup.sh启动成功
上传了个tomcat7的压缩包上linux服务器,解压后,想直接启动,发现报错: Cannot find ./catalina.sh The file is absent or does not have execute permission This file is nee 解决方法: 1.在tomcat 的bin目录下 执行这条命令chmod +x *.sh 2.再次执行 sh catalina.sh通过, 3.然后用sh startup.sh启动成功
linux安装tomcat后启动报错: Cannot find ./catalina.shThe file is absent or does not have execute permissionThis file is needed to run this program 原因:无权限 解决方法: 1. chmod +x /usr/tomcat7/bin/*.sh (亲测可用) 2. chmod 755 /usr/tomcat7/bin/*.sh 3. chmod 777 /usr/tomc
最近在做Tomcat的实验,顺便研究了一下tomcat的启动脚本发现一个问题,然后经过多方查阅其他大神的资料,终于解决,现在跟大家分享. tomcat的启动脚本跟别的脚本有稍微区别的原因是他需要识别JAVA_HOME环境,你仅仅是写到/etc/profile文件中是不行的. 在启动的时候会报错,我们通过查询错误信息,显示如下信息内容 startup.sh[14716]: Neither the JAVA_HOME nor the JRE_HOME environment variable is
外部sh脚本如下 #!/bin/bash while read LINE do echo "Hello $LINE!" case $LINE in all) tail -f -n200 /smapp/servers/tomcat/apache-tomcat-/logs/catalina.out & ;; start) /bin/bash /smapp/servers/tomcat/apache-tomcat-/bin/startup.sh ;; stop) /bin/bash
记录一个比较好的tomcat启动脚本,截取<OneinStack>,修改如下两个参数即可用. 使用之前修改下面2个参数: #Location of JAVA_HOME (bin files) export JAVA_HOME=/usr/java/jdk1.7.0_80 #jdk路径 #CATALINA_HOME is the location of the configuration files of this instance of Tomcat CATALINA_HOME=/usr/