CentOS 6.5 Department Horizon

Source: Internet
Author: User
Tags virtualenv

To deploy as root, Python feeds can also use http://mirrors.aliyun.com/pypi/simple/

Modifying the System

Change the SELinux configuration file/etc/selinux/config,selinux=disabled

Ssh-keygen

~/.ssh/authorized_keys Write Id_rsa.pub

Install Python 2.7.9

Yum-y Update

wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz

Tar zxvf python-2.7.9.tgz

./configure

Make install

Install PIP

wget https://bootstrap.pypa.io/ez_setup.py

Python ez_setup.py

Easy_install-i http://pypi.douban.com/simple Pip

Configuring the default PIP source

Vim ~/.pip/pip.conf

[Global]

Index-url = Http://pypi.douban.com/simple

Trusted-host = pypi.douban.com

Set up a virtual directory

#pip Install requests[security]

Pip Install Virtualenv

Virtualenv. env

source. env/bin/activate

Deployment Code

git clone horizon.git

Install the Python packages required by horizon

Yum-y Install Python-devel

Yum-y Install Libffi-devel

Pip Install–r requirements.txt

Test Horizon Launch

CD Horizon

./manage.py Runserver

CentOS 6.5 Department Horizon

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.