Linux 执行脚本出现 $‘ ‘: command not found 解决方法
发布日期:2025-04-06 18:07:48 浏览次数:8 分类:精选文章

本文共 520 字,大约阅读时间需要 1 分钟。

目录

1. 问题所示

通过pycharm本地同步代码文件到服务器

在服务器中使用 sh bin/run.sh start启动linux脚本文件的时候

出现如下问题:

xxx:~/manong$ sh bin/run.sh startbin/run.sh: line 2: $'\r': command not found: No such file or directoryme/xxxbin/run.sh: line 6: $'\r': command not found  File "
", line 1 print (hash('manong ^SyntaxError: EOL while scanning string literalbin/run.sh: line 26: $'\r': command not foundbin/run.sh: line 27: syntax error near unexpected token `$'{\r'''in/run.sh: line 27: `setup_config() {

截图如下:

上一篇:linux 技巧:使用 screen 管理你的远程会话
下一篇:Linux 性能监测:介绍

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2025年05月10日 06时03分01秒