[app@M5-OPS-grey-baojiaapi bin]$ ./startup.sh
-bash: ./startup.sh: /bin/sh^M: bad interpreter: No such file or directory
用vi打開文件 執(zhí)行 :set ff 發(fā)現(xiàn)文件格式是dos格式
執(zhí)行 :set ff=unix 將文件變成unix格式
然后再執(zhí)行就可以了
[app@M5-OPS-grey-baojiaapi bin]$ ./startup.sh
-bash: ./startup.sh: /bin/sh^M: bad interpreter: No such file or directory
用vi打開文件 執(zhí)行 :set ff 發(fā)現(xiàn)文件格式是dos格式
執(zhí)行 :set ff=unix 將文件變成unix格式
然后再執(zhí)行就可以了