社区
脚本语言
帖子详情
请问如何设置apache2让它能解释python代码?
leaof
2004-04-18 08:22:52
请问如何设置apache2让它能解释python代码?
...全文
89
5
打赏
收藏
请问如何设置apache2让它能解释python代码?
请问如何设置apache2让它能解释python代码?
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
xyzxyz1111
2004-04-19
打赏
举报
回复
然后
http://localhost/cgi-bin/fig06_03.py
xyzxyz1111
2004-04-19
打赏
举报
回复
你是不是把脚本放在APACHE的cgi-bin目录下?
leaof
2004-04-18
打赏
举报
回复
文件名 index.py
#!c:\Python23\python.exe
# Fig. 6.3: fig06_03.py
# Displays the current date and time in a Web browser.
print "comeing baby!"
在ie中 http://127.0.0.1
结果:
#!c:\Python23\python.exe
# Fig. 6.3: fig06_03.py
# Displays the current date and time in a Web browser.
print "comeing baby!"
根本没有解释
这是为什么?
leaof
2004-04-18
打赏
举报
回复
文件名 index.py
#!c:\Python23\python.exe
# Fig. 6.3: fig06_03.py
# Displays the current date and time in a Web browser.
print "comeing baby!"
在ie中 http://127.0.0.1
结果:
#!c:\Python23\python.exe
# Fig. 6.3: fig06_03.py
# Displays the current date and time in a Web browser.
print "comeing baby!"
根本没有解释
这是为什么?
xyzxyz1111
2004-04-18
打赏
举报
回复
CGI?
在脚本的第一行加上
#!/your/python/executable/path
就可以了
Apache2
.4+django4.0+
python
3.8+Windows11后端接口部署指南
这里就会出现第一个坑,apache的编译VS版本必须和
python
的编译VS版本一致,我们可以在命令行调用
python
端口我们可以看到一个数字MSC V.1928,这个就是我当前版本
python
对应的vs版本,带入下面
代码
表。
windows 下配置Apache +
python
开发web应用
mod_
python
是一个Apache模块,它可以将
Python
解释
器嵌入到Apache服务器中。 让Apache支持
Python
的过程很简单,只要3步。下载mod_
python
模块安装程序 (注意文件名后面
Python
和Apache的版本号要与自
python
代码
接口实现
python
代码
接口实现导言what is Apache?配置Apache1.下载2.配置文件合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的
代码
片生成一个适合你的列表创建一个表格设定内容居中、...
apache+
python
+mod_
python
+django 编译安装指南
apache+
python
+mod_
python
+django 编译安装指南1、本文将知道你在 linux 下使用源码包安装apache 2.2.4
python
2.5.1 mod_
python
3.3.1 django svn trunk version 但是,因为无法得知编译过程中得到的出错信息,...
如何在Apache Flink中使用
Python
API?
导读:本文重点为大家介绍 Flink
Python
API 的现状及未来规划,主要内容包括:Apache Flink
Python
API 的前世今生和未来发展;Apa...
脚本语言
37,743
社区成员
34,211
社区内容
发帖
与我相关
我的任务
脚本语言
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
复制链接
扫一扫
分享
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
试试用AI创作助手写篇文章吧
+ 用AI写文章