Skip to main content
 首页 » 编程设计

python之如何在您的服务器上运行 python 脚本

2025年05月04日14dyllove98

我的服务器上安装了 mod_python,但是如果我想访问 python 脚本 - 假设 httü://site.com/something.py 脚本没有运行,下载框“弹出”

有什么解决办法吗?

请您参考如下方法:

我会考虑一个轻量级框架,例如 http://werkzeug.pocoo.org/因为在现代使用 CGI 风格的 Python 脚本不是很实用。

我会使用 mod_wsgi 而不是 mod_python 因为后者有点过时了。