start.sh: line 1: $'\r': command not found 或 start.sh: line 10: syntax error near unexpected token `

先说下我遇到这个情况的背景:

在windows上写了sh脚本,放到linux 上跑

通过:set ff 查看脚本格式  fileformat=dos

如果不是unix 就通过:set ff=unix 设置,:wq保存退出

第二个问题是我在启动jar包的最后面加了; 去掉就好了

猜你喜欢

转载自blog.csdn.net/qq_38423105/article/details/84873254
今日推荐