打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Centos 5.8 x86_64

1.python
yum install gcc gcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64
install python 2.7
 
wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2
tar -xvjf Python-2.7.tar.bz2
cd Python*
./configure --prefix=/opt/python27
make
make install
vi ~/.bash_profile
replace PATH=$PATH:$HOME/bin
with PATH=$PATH:$HOME/bin:/opt/python27/bin
 
reload .bash_profile
 
source ~/.bash_profile
echo "/opt/python27/lib" > /etc/ld.so.conf.d/python27.conf
ldconfig
install setuptool
2.setuptools
cd ~
wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
sh setuptools-0.6c11-py2.7.egg
install gevent
 
3.django
easy_install pip
pip install django
 
4.mod_wsgi
 
yum -y install apache
./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-python=/usr/local/bin/python
--with-python=/usr/local/bin/python  python安装路径默认
./configure --with-apxs=/usr/local/apache/bin/apxs \      这是源码路径如果 直接装httpd(redhat)这个路径不需要配置

 如果python默认



本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
subversion 1.2.3 for Redhat linux AS 4 源码包安装文档
Linux下配置安装PHP环境
apache2+mysql+php安装
如何修改CentOS 6.x上默认Python版本
ubuntu安装python3.7,并更新python默认指向为python3.7
Centos默认的python2.6.6升级到python2.7.10
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服