问题:在linux环境下面执行SH的可执行文件。

-bash: ./start.sh: /bin/sh^M: bad interpreter: No such file or directory

解决办法:

1.查看该文件  vim start.sh   不是编辑模式直接输入:set ff     查看弹出的界面  fileformat=dos  说明文本格式不对

直接set ff  = unix   就可以了

 

相关文章:

  • 2021-12-30
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2021-08-17
  • 2022-02-24
  • 2021-11-13
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案