查看该文件:vim start.sh 不是编辑模式直接输入:set ff 查看弹出的界面 fileformat=dos 说明文本格式不对 直接set ff = unix 就可以了 转载于:https://www.cnblogs.com/fengzmh/p/9843041.html