<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[运维进行时]]></title> 
<link>https://blog.liuts.com/index.php</link> 
<description><![CDATA[互联网运维与架构]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[运维进行时]]></copyright>
<item>
<link>https://blog.liuts.com/post//</link>
<title><![CDATA[Python_mod安装文档]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[Python]]></category>
<pubDate>Tue, 14 Aug 2007 14:24:53 +0000</pubDate> 
<guid>https://blog.liuts.com/post//</guid> 
<description>
<![CDATA[ 
	Python2.4安装文档<br/>#rpm -e python --nodeps<br/>#tar -zxvf Python-2.4.2.tgz<br/>#./configure<br/>#make<br/>#make install<br/>#vi /etc/profile<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"> export PYTHONHOME=/usr/local<br/> export PYTHONPATH=/usr/local/lib/python2.4<br/> export PATH=$PATH:$PYTHONHOME</div></div><br/>Python_mod安装文档<br/>#gzip mod_python-3.1.4.tar<br/>#tar -zxvf mod_python-3.1.4.tar.gz<br/>#cd mod_python-3.1.4<br/>#./configure --with-apxs=/usr/local/apache/bin/apxs<br/>#make<br/>#su<br/>#make install<br/>#vi /usr/local/apache/conf/httpd.conf<br/>添加:LoadModule python_module modules/mod_python.so<br/><div class="code"><br/>&lt;Directory /usr/local/apache/htdocs/python&gt;<br/>&nbsp;&nbsp; AddHandler mod_python .py<br/>&nbsp;&nbsp; PythonHandler index<br/>&nbsp;&nbsp; PythonDebug On<br/>&lt;/Directory&gt;<br/></div><br/>#cd /usr/local/apache/htdocs/python<br/>vi index.py<br/><textarea name="code" class="python:nogutter" rows="15" cols="100">
from mod_python import apache
def handler(req):
&nbsp;&nbsp;&nbsp;&nbsp;req.write("Hello World!")
&nbsp;&nbsp;&nbsp;&nbsp;return apache.OK
</textarea><br/>安装Django文档<br/>Install Mysql-pythong<br/>#tar -zxvf MySQL-python-1.2.0.tar.gz<br/>#cd MySQL-python-1.2.0<br/>#python setup.py build<br/>#su<br/>#python setup.py install<br/>Install Django<br/>#tar xzvf Django-0.91.tar.gz<br/>#cd Django-0.91 <br/>#sudo python setup.py install<br/>#vi httpd.conf<br/><div class="code"><br/>&lt;Directory /usr/local/apache/htdocs/python&gt;<br/>&nbsp;&nbsp; SetHandler python-program<br/>&nbsp;&nbsp; PythonPath &quot;&#91;&#039;/usr/local/apache/htdocs/python&#039;&#93; + sys.path&quot;<br/>&nbsp;&nbsp; PythonHandler django.core.handlers.modpython<br/>&nbsp;&nbsp; SetEnv DJANGO_SETTINGS_MODULE newtest.settings<br/>&nbsp;&nbsp; PythonDebug On<br/>&lt;/Directory&gt;<br/></div><br/>Tags - <a href="https://blog.liuts.com/tags/python/" rel="tag">python</a> , <a href="https://blog.liuts.com/tags/django/" rel="tag">django</a> , <a href="https://blog.liuts.com/tags/mod_python/" rel="tag">mod python</a>
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post//#blogcomment</link>
<title><![CDATA[[评论] Python_mod安装文档]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://blog.liuts.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>