Apache下运行Python WEB Applications的三种方式
1, 传统CGI:
vim /var/www/cgi-bin/hello.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
print "Content-type: text/html\n"
print "Hello World"
chmod a+x hello.py
vim /etc/httpd/conf/httpd.conf
ScriptAl
原创
2012-02-04 22:35:35 ·
806 阅读 ·
0 评论