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 
   

猜你喜欢

转载自greybeard.iteye.com/blog/1328671
今日推荐