windows中修改catalina.sh上传到linux执行报错This file is needed to run this program
来源:互联网 发布:医院预约管理系统php 编辑:程序博客网 时间:2024/05/01 09:26
一、发现问题
由于tomcat内存溢出,在windows下修改了catalina.sh,然后通过ssh传到linux服务器上,执行catalina.sh时出现如下错误:
Cannot find ./catalina.sh
This file is needed to run this program
二、尝试解决
使用sh catalina.sh命令执行,结果没有设置javahome,然后在catalina.sh里面添加:JAVA_HOME=/usr/lib/jvm/jdk1.5.0_16; 再次执行sh catalina.sh,错误如下:
The BASEDIRenvironmentvariable is not defined correctly
This environmentvariable is needed to run this program
三、解决方案
.sh文件都不是可执行文件,于是找到命令:chmod +x *.sh,这个命令的意思是让所有的.sh文件都可执行。再次执行sh catalina.sh通过,然后用sh startup.sh成功启动。
原帖地址: http://blog.sina.com.cn/s/blog_63533db30100kl5a.html
0 0
- windows中修改catalina.sh上传到linux执行报错This file is needed to run this program
- windows中修改catalina.sh上传到linux执行报错This file is needed to run this program
- Cannot find ./catalina.sh This file is needed to run this program
- This file is needed to run this program
- linux下启动tomcat出现“This file is needed to run this program ”
- The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program
- The BASEDIR environment variable is not defined correctly This environment variable is needed to run
- The BASEDIR environment variable is not defined correctly This environment variable is needed to run
- Cannot find ./catalina.sh The file is absent or does not have execute permission This file is nee
- Cannot find ./catalina.sh The file is absent or does not have execute permission This file is nee
- Cannot find ./catalina.sh The file is absent or does not have execute permission This file is nee
- Tomcat-shutdown.sh报错but has failed to stop it. This is very likely to create a memory leak.
- 打开word中的excel object进行编辑的时候报错:The program used to create this object is Excel.
- This is C++ program
- Xcode上传App到Appstore,报错Error ITMS-90049:"This bundle is invalid.The bundle...."
- Xcode上传App到Appstore,报错Error ITMS-90049:"This bundle is invalid.The bundle...."
- Xcode上传App到Appstore,报错Error ITMS-90049:"This bundle is invalid.The bundle...."
- IntelliJ says 'cannot run program '/path/to/tomcat/bin/catalina.sh' error=13 permission denied
- Windows应用程序高级控件之ImageList
- 算法导论堆排序java实现
- VS2010 无法打开包括文件:“iostream.h”: No such file or directory
- 清除浮动
- FIREFOX和CHROME浏览器下PercentLoaded()不能使用的解决方案
- windows中修改catalina.sh上传到linux执行报错This file is needed to run this program
- Qt5.3里使用X264库将y4m文件进行压缩
- MSOCache文件夹能否删除?
- jquery获取checkbox 的值
- C++中字符串输入
- crm2011导入和卸载事例数据
- 有道无术,术可求也
- 湘潭邀请赛——Welcome to XTCPC
- 2014年ACM-ICPC东北赛区热身赛D题 Number