執(zhí)行腳本失敗 提示 -bash: ./hello.sh: /bin/basn: bad interpreter: No such file or directory
[root@db ~]# chmod 755 hello.sh?
[root@db ~]# ./hello.sh?
-bash: ./hello.sh: /bin/basn: bad interpreter: No such file or directory
[root@db ~]# chmod 755 hello.sh?
[root@db ~]# ./hello.sh?
-bash: ./hello.sh: /bin/basn: bad interpreter: No such file or directory
2017-02-23
舉報
2017-05-20
你打開你的程序,你要確定第一行寫了 ? ?#!/bin/bash ? ? ?我之前是因為漏掉了bin前面的/ 就提示了和你同樣的錯誤。
2017-02-23
./hello.sh