免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3188 | 回复: 0
打印 上一主题 下一主题

Installing Django on Centos 5 [复制链接]

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-07 22:13 |只看该作者 |倒序浏览
In preparing to upgrade this server to Centos 5.x, I did a test install of the Centos "Server" configuration using
VirtualBox
. The "Server" configuration comes with Apache 2.x, Python 2.4, and mod_python pre-loaded.
Installing Django
Here are the commands needed to install the latest version of Django:
$ yum install subversion
$ cd /var/www
$ mkdir django-src
$ cd django-src
$ svn co http://code.djangoproject.com/svn/django/trunk/
$ cd trunk
$ python setup.py install
Installing and Starting MySQL Server
Here are commands needed to install and start MySQL:
$ yum install mysql-server
$ /etc/rc.d/init.d/mysqld start
Installing Python MySQL Support
This is the trickiest part. Python talks to MySQL using software called
MySQLdb. The version available in Centos via Yum is 1.2.1-1 and isn't
compatible with the most recent Django codebase. Because of this you
must download and compile MySQLdb.
Before compiling MySQLdb, enter the command below to make sure you have the necessary tools:
$ yum install python-devel mysql-devel gcc
Next, download the source tarball from
SourceForge
then follow these steps:
$ mv  ~
$ cd ~
$ tar zxvf
$ cd
$ python setup.py build
$ python setup.py install
When these steps are completed you should be good to go.
转自:http://mikecantelon.com/story/installing_django_on_centos_5
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/74256/showart_2143445.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP