linux shell启动tomcat报错:/bin/sh^M: bad interpreter: 没有那个文件或目录
在windows下编辑的shell脚本是windows格式的,需要转化为unix下的格式:
?
dos2unix ?文件名.sh
并且需要赋予该shell脚本各用户执行的权限。