centos 安装 django

来源:互联网 发布:apache tomcat安装 编辑:程序博客网 时间:2024/04/26 03:19

Install Prerequisites

  1. Install Apache.
    1. Ensure it’s working, including ensuring the firewall lets traffic through.
  2. Install MySQL
  3. Install revision control or however you pull software, e.g. git.
    1. Create a non-priviledged user, if that’s you install your software.
    2. Ensure Apache can access the software directory.

Install Django

$sudo yum install python Django mod_python MySQL-python

Test Django

$ python
Python2.6.6(r266:84292, Feb22 2013, 00:00:18)
[GCC4.4.720120313 (Red Hat 4.4.7-3)] on linux2
Type"help","copyright","credits" or "license" for more information.
>>>import django
>>>print django.get_version()
1.4.5
>>>
0 0
原创粉丝点击