Redash 安裝部署

2021-09-08 13:53:41 字數 2675 閱讀 9441

是一款開源的bi工具,提供了基於web的資料庫查詢和資料視覺化功能。

官網:github:

官方支援的環境有 ubuntu 16.04, aws, google compute cloud 和 docker。

help-onpremise/setup/setting-up-redash-instance.html

wget 

sudo chmod +x bootstrap.sh

sudo ./bootstrap.sh

執行完成後,訪問http://ip:80

依賴:python (2.7), postgresql (9.3 or newer), redis (2.8.3 or newer) and node.js (v6 or newer)

參考:help-onpremise/dev/setup.html

系統環境:centos linux release 7.4.1708 (core) 

redash版本:3.0.0

yum update -y

yum install -y gcc gcc-c++ cyrus-sasl-devel make

yum install -y pwgen python-devel python-pip supervisor

yum install -y nginx curl wget redis

yum install -y libffi-devel

yum install -y mariadb-devel

yum install -y libpqxx-devel

systemctl start redis

mkdir -p /opt/redash

adduser --system --no-create-home -s /sbin/nologin redash

chown redash /opt/redash

cd /opt/redash

sudo -u redash wget /archive/v3.0.0.tar.gz

sudo -u redash tar xvf v3.0.0.tar.gz

ln -nfs /opt/redash/redash-3.0.0 /opt/redash/current

pwgen -1s 32獲取值,用於redash_cookie_secret

vim /opt/redash/.env

export redash_log_level="info"

export redash_redis_url=redis://localhost:6379/0

export redash_database_url="postgresql:///redash"

export redash_cookie_secret=rwql7ttb9o5w0nkqafu4exe3tpveqvvf

ln -nfs /opt/redash/.env /opt/redash/current/.env

cd /opt/redash/current

pip install --upgrade pip

pip install setproctitle

vim /root/.bash_profile

export path="/usr/pgsql-9.5/bin:$path"

pip install psycopg2

pip install -r requirements.txt

pip install setuptools==3.4.4

pip install -r requirements_all_ds.txt

curl --silent --location  | bash -

yum install -y nodejs

npm install -g cnpm --registry=

cnpm install

cnpm run build

sudo -u postgres createuser redash --no-superuser --no-createdb --no-createrole

sudo -u postgres createdb redash --owner=redash

sudo -u redash bin/run ./manage.py database create_tables

cp /opt/redash/current/setup/ubuntu/files/supervisord.conf /etc/supervisord.d/redash.ini

systemctl start supervisord

cp /opt/redash/current/setup/ubuntu/files/nginx_redash_site /etc/nginx/conf.d/nginx_redash_site.conf

修改/etc/nginx/conf.d/nginx_redash_site.conf中埠為8080

頁面訪問http://ip:8080

參考:help-onpremise/setup/settings-environment-variables.html

Docker部署安裝Redash中文版

1安裝說明 相比linux環境本地安裝而言,docker安裝方式更為簡便,docker指令碼化安裝過程會自動獲取redis postgres python3.7映象,構造redash最新的後台server worker schedule映象。前端npm依賴包安裝和前端最新 打包是通過卷對映方式掛載到...

Docker 環境下部署 redash

環境 centos7 1 虛擬機器安裝 安裝vmware,並安裝centos7 2 安裝docker docker安裝手冊 3 安裝nodejs centos下安裝nodejs 4 redash安裝 1 clone git repostory git clone 2 create docker se...

redash開發環境搭建

參考 有補充 在redis的目錄中 找到redis.conf 將bind的值配置為bind 0.0.0.0 或者你自己的伺服器,確保能redash能連通 修改data目錄下的pg hba.conf檔案 host all all 127.0.0.1 32 trust host all all 24 t...