linux执行sh报错:$’\r’: 未找到命令的解决 原因解决 原因 sh文件直接从windows复制过来导致的 解决 yum install dos2unix dos2unix **.sh 进行转换 再次执行即可