---
title: "linux shell启动tomcat报错：/bin/sh^M: bad interpreter: 没有那个文件或目录"
author: "jerry_chen"
date: "2012-04-05T14:08:32Z"
tags: []
categories: ["操作系统"]
slug: "linux-shell-tomcat-bin-sh-m-bad-interpreter"
draft: false
lastmod: "2012-04-05T14:08:32Z"
id: 1474376
url: "https://jerry-chen.iteye.com/blog/1474376"
---

在windows下编辑的shell脚本是windows格式的，需要转化为unix下的格式：

 

dos2unix  文件名.sh

 

并且需要赋予该shell脚本各用户执行的权限。