在window系統(tǒng)下編輯.sh傳到Linux服務(wù)器上可能會出現(xiàn)-bash: ./full_build.sh: /bin/bash^M: bad interpreter: No such file or directory錯誤這時候可以在vim使用命令查看一下,:set ff? 如果出現(xiàn)dos 使用命令:set ff=unix
2017-07-28
最新回答 / qiangweiwei
在window系統(tǒng)下編輯.sh傳到Linux服務(wù)器上可能會出現(xiàn)-bash: ./full_build.sh: /bin/bash^M: bad interpreter: No such file or directory錯誤這時候可以在vim使用命令查看一下,:set ff? 如果出現(xiàn)dos 使用命令:set ff=unix
2017-07-28
直接php goods.php可能會出現(xiàn)php command not found,這時候可以用php的全路徑或者看是否設(shè)置了echo $PATH
2017-07-28