httpd, mod_python配置django服务器

1.下载,安装httpd

  
$ ./configure --prefix=/opt/apps/httpd
    $ make
    $ make install
    $ sudo ln -s /opt/apps/httpd/bin/apachectl /usr/bin/apachectl 
    $ sudo apachectl start #启动
    $ sudo apachectl stop  # 关闭

2.下载,安装mod_python

  
$ ./configure --with-apxs=/opt/apps/httpd-2.2.21/bin/apxs \
               --with-python=/usr/bin/python
    $ make
    $ sudo make install

相关推荐