码迷,mamicode.com
首页 > 编程语言 > 详细

Linux部署python django程序-apache

时间:2016-09-26 19:37:18      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:

1、安装Apache

先卸载自带的httpd

rpm -e httpd --nodeps

在网上下载四个文件

1、apr-1.4.6.tar.gz

2、apr-util-1.5.1.tar.gz

3、pcre-8.32.tar.gz

4、httpd-2.4.3.tar.gz

下载地址:

http://pan.baidu.com/share/link?shareid=169366&uk=1829018343

分别安装这四个包root用户

安装apr-1.4.6.tar.gz

tar xzf apr-1.4.6.tar.gz

./configure -prefix=/usr/local/apr

make

make install

安装apr-util-1.5.1.tar.gz

tar xzf apr-util-1.5.1.tar.gz

./configure -with-apr=/usr/local/apr

make

make install

 

安装c++(linux下安装安装pcre-8.32前必须安装)

yum install -y gcc gcc-c++

 

 

安装pcre

tar xzf pcre-8.32.tar.gz

./configure -prefix=/usr/local/pcre

make

make install

 

安装apache

tar xzf httpd-2.4.3.tar.gz

./configure -prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-pcre=/usr/local/pcre/

make

make install

安装完成后到

/usr/local/apache/ conf/路径下的httpd.conf添加配置

ServerName localhost:80

 

检查一下apache是否正确安装

到/usr/local/apache/bin/路径下

./apachectl

然后登录127.0.0.1

 

 

正常情况:

 技术分享

Linux部署python django程序-apache

标签:

原文地址:http://www.cnblogs.com/whzym111/p/5910090.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!