版权声明:本文为博主原创文章,转载请注明出处 https://blog.csdn.net/vkingnew/article/details/86509608
python 3.6.6
superset 0.28.1
sqlite-3.7.17
默认采用sqlite数据库。
--python版本:
# yum -y install python36-devel
# rpm -qa | grep -i python36
python36-libs-3.6.6-1.el7.x86_64
python36u-setuptools-39.0.1-1.ius.centos7.noarch
python36-devel-3.6.6-1.el7.x86_64
python36-3.6.6-1.el7.x86_64
python36u-pip-9.0.1-1.ius.centos7.noarch
--安装:
pip install superset -i https://pypi.douban.com/simple
# 创建管理员账号
# fabmanager create-admin --app superset
Username [admin]:
User first name [admin]:
User last name [user]:
Email [[email protected]]:
Password:
Repeat for confirmation:
Recognized Database Authentications.
Admin User admin created.
# 初始化数据库 默认使用的sqlite数据库:
superset db upgrade
# 载入案例数据
superset load_examples
# 初始化角色和权限
superset init
# 启动服务,端口号 8088,使用 -p 更改端口号
superset runserver
2019-01-16 16:16:58,337:INFO:root:The Gunicorn 'superset runserver' command is deprecated. Please use the 'gunicorn' command instead.
#superset runserver -p 8088 &
或者:
python superset runserver -d -p 8088
默认允许所有的IP地址访问。
--访问:
http://172.16.1.81:8088