- 链接地址:https://blog.csdn.net/shenjuntao520/article/details/105808856
- 链接标题:Linux中解决cannot access ‘\r’: No such file or directory_[91mchmod: cannot access '/opt/yueji/scancore/buil-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:4875
文章浏览阅读1.7w次,点赞3次,收藏4次。碰到这种情况,是因为脚本文件在windows环境下编辑过后再上传到linux服务器导致换行符格式不对。使用dos2unix命令行即可解决。进入root用户后,使用yum install dos2unix。安装完成后使用命令 dos2unix start.sh 其中start.sh为出问题的脚本文件名,也可以使用*通配符来同时修改多个,或者使用空格隔开文件名的方式。..._[91mchmod: cannot access '/opt/yueji/scancore/build.sh': no such file or di
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除