-bash: ./run.sh: /bin/bash^M: bad interpreter: No such file or directory 報錯解決方法
技術標籤:IT
- bash: ./run.sh: /bin/bash^M: bad interpreter: No such file or directory
- 技術交流qq群
1093476453
解決辦法
dos2unix blockip.sh
- 再次執行就成功了
相關推薦
-bash: ./run.sh: /bin/bash^M: bad interpreter: No such file or directory 報錯解決方法
技術標籤:IT bash: ./run.sh: /bin/bash^M: bad interpreter: No such file or directory技術交流qq群 1093476453
Ubuntu執行*.sh檔案出現 bash: ./a.sh: /bin/bash^M: bad interpreter: No such file or directory問題解決方案
用Windows下用一些方便的編輯器(比如鼎鼎大名的Notepad++,Sublim)寫好, 然後拷貝檔案到linux下, 結果呢, 在執行指令碼*.sh的時候, 會出現如下問題:
-bash: /usr/local/mysql/bin/mysqldumpslow: /usr/bin/perl: bad interpreter: No such file or directory
[mysql@test67 data]$ mysqldumpslow -bash: /usr/local/mysql/bin/mysqldumpslow: /usr/bin/perl: bad interpreter: No such file or directory
執行shell指令碼報錯“/bin/bash^M: bad interpreter: No such file or directory”
在執行shell指令碼時提示這樣的錯誤主要是由於shell指令碼檔案是dos格式,即每一行結尾以\\r\\n來標識,而unix格式的檔案行尾則以\\n來標識。
rar linux & /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 問題的解決
安裝32位rar: 下載至/usr/src目錄 wget http://www.rarlab.com/rar/rarlinux-3.8.0.tar.gz -directory-prefix=/usr/src
-bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
1、問題 [root@PC3 test6]# rar x xiaohou.rar -bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
/usr/bin/yum: /usr/bin/python3.6.8: bad interpreter: No such file or directo
技術標籤:Linuxyumlinux 報錯日誌 file /usr/bin/yum,line 30 except KeyboardInterrupt, e 分析解決
Nginx pid檔案找不到 nginx: [error] open() "/run/nginx/nginx.pid" failed (2: No such file or directory)
Nginx pid檔案找不到 nginx: [error] open() \"/run/nginx/nginx.pid\" failed (2: No such file or directory)
/usr/bin/env: ‘node\r’: No such file or directory
同步連結: https://www.shanejix.com//usr/bin/env: ‘node\\r’: No such file or directory/ 執行 npm scripts命令突然報錯如下:
Linux系統下執行bash指令碼提示/usr/bin/env: ‘bash\r’: No such file or directory
技術標籤:linuxlinux 1、問題現象 在Linux系統中使用 searchsploit 啟動,執行失敗,並報錯提示如下所示:2、錯誤原因:
Centos8系統執行二進位制檔案時,報“bash: ./xxx: no such file or directory”解決
在執行某個二進位制檔案時報錯誤:bash: ./xxx: no such file or directory,但在該目錄下確實存在該檔案,且具有執行許可權。有些linux系統(本次場景:CentOS 8.3和Fedora 27)的發行版裡沒有安裝redhat-lsb這個庫
解決:/system/bin/sh: ./hello: No such file or directory
技術標籤:學習linuxubuntushellandroid android中執行C可執行檔案時,出現/system/bin/sh: ./hello: No such file or directory 錯誤。
tomcat服務未開啟,啟動未報錯,關閉報錯:/usr/local/tomcat/apache-tomcat-8.5.50/bin/catalina.sh: line 524: /usr/java/jdk/jre/bin/java: No such file or directory
0.前言: 指前兩篇jdk與tomcat安裝留下的問題 1.問題報錯 [root@VM_16_8_centos bin]# ./shutdown.sh
ACFS啟動報錯acfsload start line 42: /lib/acfstoolsdriver.sh: No such file or directory
測試環境Oracle 11.2.0.4 想測試ACFS檔案系統執行如下命令報錯: [root@wsgwa1 ~]# /u01/app/11.2.0/grid/bin/acfsload start
kafka群起指令碼啟動不了:nohup: failed to run command `java‘: No such file or directory
技術標籤:kafkashell kafka群起指令碼啟動不了:nohup: failed to run command `java’: No such file or directory
深度學習tensorflow2.x RuntimeError: The Session graph is empty. Add operations to the graph before calling run(). 報錯解決方法
import tensorflow as tf tf.compat.v1.disable_eager_execution() #保證sess.run()能夠正常執行
Linux/ubuntu 安裝 redis 4.0報錯解決:redis-server.service: Can't open PID file /var/run/redis/redis-se
此文首發於我的個人部落格:Linux/ubuntu 安裝 redis 4.0報錯解決:redis-server.service: Can’t open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory — zhang0pet
linux解決“/bin/bash^M: bad interpreter“
linux解決“/bin/bash^M: bad interpreter“ 原因: 在執行shell指令碼時提示這樣的錯誤主要是由於shell指令碼檔案是dos格式,即每一行結尾以\\r\\n來標識,而unix格式的檔案行尾則以\\n來標識
/bin/sh、/bin/bash、/bin/dash、/bin/rbash的區別
/bin/sh、/bin/bash、/bin/dash、/bin/rbash的區別bash檢視系統可以使用的shell種類檢視預設shellsh把sh改為指向bash(修改預設shell)dash把sh改為指dash(修改預設shell)TOC
#!/bin/bash和#!/bin/sh的區別_Linux
#!/bin/bash和#!/bin/sh的區別_Linux#!區別TOC #!/bin/bash和#!/bin/sh的區別_Linux 參考: /bin/sh、/bin/bash、/bin/dash、/bin/rbash的區別