如何在我的红帽服务器上 运行 python 文件?

how to run python files on my red hat server?

我尝试使用 sh 命令,但我总是收到 command not found in line x 错误。我正在使用 Red Hat Enterprise,我正在打开一个用 python.

编程的 Nagios 插件

错误:check_fileage.py:第 3 行:导入:找不到命令

从您的 bash shell 使用 python pythonFile.py,即从终端