在本地修改过的shell脚本上传到服务器上运行时会出现 /bin/bash^M: bad interpreter: No such file or directory 的异常用vi编辑器将其中的编码转成unix的:set fileformat=unix:wq!