tomcat启动异常!

如果在linux系统上启动tomcat报如下异常:
/usr/lib/tomcat/apache-tomcat-7.0.32/bin/catalina.sh: eval: line 389: unexpected EOF while looking for matching `"'
/usr/lib/tomcat/apache-tomcat-7.0.32/bin/catalina.sh: eval: line 390: syntax error: unexpected end of file
/usr/lib/tomcat/apache-tomcat-7.0.32/bin/catalina.sh: line 390: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires
异常原因:tomcat启动未指定jdk,或linux系统没有配置jdk环境变量.
解决方案:bintomcat安装目录下的bin目录下的catalinda.sh脚本,在开头加入export JAVA_HOME=jdk安装目录.
再启动tomcat,一切ok,世界顿时恢复了平静!

你可能感兴趣的:(util)