出现如题错误就是windows下写的文件在linux环境下无法识别,格式上略有差异。 Centos解决方法: 1、yum -y install dos2unix 2、dos2unix 文件名 再次执行就可以了