基于centos6.x安装部署superset

前端之家收集整理的这篇文章主要介绍了基于centos6.x安装部署superset前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

参考http://airbnb.io/superset/installation.html

1. 安装环境基于python 2.7或3.4,

2. 安装所需的包

sudo yum upgrade python-setuptools
install gcc gcc-c++ libffi-devel pip wheel openssl-libsasl2-openldap-devel
3. 安装python版本切换程序vitralenv
virtualenv

安装完成之后,可以通过如下的方法切换 python的版本:

virtualenv venv
. ./venv/bin/activate
在新环境中安装pip
install --setuptools pip
安装并初始化superset
# Install superset
pip install superset

# Create an admin user (you will be prompted to set username,first and last name before setting a password)
fabmanager create-admin --app superset

# Initialize the database
superset db upgrade

# Load some data to play with
superset load_examples

# Create default roles and permissions
superset init

# Start the web server on port 8088,use -p to bind to another port
superset runserver

# To start a development web server,use the -d switch
# superset runserver -d
原文链接:https://www.f2er.com/centos/377335.html

猜你在找的CentOS相关文章