启动tomcat报错:Cannot find ./catalina.sh 以及在linux下增加tomcat内存方法

启动tomcat报错:
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(启动)

在tomcat的bin目录下:
找到catalina.sh文件
在cygwin=false上一行添加:
JAVA_OPTS="-server -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+PrintGCDetails -Xloggc:/opt/apache-tomcat-7.0.81/logs/tomcat_gc.log"(/opt/apache-tomcat-7.0.81/为tomcat的目录)

你可能感兴趣的:(学习)