基于centos6.x安装部署superset

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

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

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

2. 安装所需的包

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

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

  1. virtualenv venv
  2. . ./venv/bin/activate
在新环境中安装pip
  1. install --setuptools pip
安装并初始化superset
  1. # Install superset
  2. pip install superset
  3.  
  4. # Create an admin user (you will be prompted to set username,first and last name before setting a password)
  5. fabmanager create-admin --app superset
  6.  
  7. # Initialize the database
  8. superset db upgrade
  9.  
  10. # Load some data to play with
  11. superset load_examples
  12.  
  13. # Create default roles and permissions
  14. superset init
  15.  
  16. # Start the web server on port 8088,use -p to bind to another port
  17. superset runserver
  18.  
  19. # To start a development web server,use the -d switch
  20. # superset runserver -d

猜你在找的CentOS相关文章