/usr/bin/env: ‘php\r’: No such file or directory
原因很可能是你在windows下编写的脚本文件,放到Linux中无法识别格式。
解决办法:
vim ./webman
esc :set ff=unix 回车
esc :wq
主要内容就是更改文件编码格式,set ff=unix 是指告诉 vi 编辑器,使用unix换行符。