如何在pycharm中远程执行bash脚本

2024-09-30 06:30:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我有专业授权版的Pycharm。我也安装了BashSupport plugin。 但是,我不确定在RHEL服务器上远程测试和执行bash脚本需要哪些步骤。在

我也可以配置远程解释器,但是interpreter path是{}

enter image description here


Tags: path服务器脚本bash远程专业步骤plugin
2条回答

我今天遇到了保存问题。 如果我使用默认的pycharm bash配置,将得到以下错误:

C:\windows\system32\bash.exe C:/git/NewProject/run.sh  
/bin/bash: C:/git/NewProject/run.sh: No such file or directory

Process finished with exit code 127

error run remote bash

因此,我将默认的Windows脚本路径更改为Linux绝对脚本路径,如下所示: enter image description here

运行成功。 enter image description here

在我的逻辑中,您需要将解释器路径改为/bin/bash而不是/usr/bin/python,否则我不明白您要做什么。。在

相关问题 更多 >

    热门问题