编程知识 cdmana.com

Redash Chinese business version centos8 local deployment

1. Installation instructions
Centos8 Built in Python by 3.6.8 edition , Here's the built-in Python3.6.8 Based on the installation steps . Due to the installation of multiple versions Python Compiling the underlying system will result in re downloading the source code library , More trouble , It is not recommended to use multiple versions Python Installation in environment Redash Chinese version .

Official website :www.dazdata.com

2. Initialize environment installation
    1)、 Enter settings yum Source directory :
    cd /etc/yum.repos.d/
    2)、 Download auto download file tool
    sudo yum install wget
    3)、 take yum Back up the source file :
    sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
    4)、 Download Ali yum Source :
    sudo wget -O /etc/yum.repos.d/CentOS-Base.repohttp://mirrors.aliyun.com/rep...
    5)、 Clean up the original cache :
    sudo yum clean all
    6)、 After setting up the cache, it is convenient to search in the cache :
    sudo yum makecache
    7)、 Update system package :
    sudo yum update -y
    8)、 Install common bags :
    sudo yum -y install gccgcc-c++ kernel-devel make zlibzlib-devellibffi-developenssl-develpython3-devel git
    9)、 install dnf:
    sudo yum install dnf -y
    10)、 Get into root Add the current user to root Group :
    su -
    usermod -g root At present centos user name

3.Postgresql9.6 install
    1) 、 install PostgreSql9.6 Initialize and configure to start automatically when the system starts :
    sudo dnf install @postgresql:9.6
    sudo dnf install postgresql-contrib
    sudo yum install postgresql-devel
    sudo postgresql-setup initdb
    sudo systemctl enable --now postgresql
    2) 、 Sign in Postgresql:
    sudo -u postgrespsql
    3) 、 change postgres password :
    alter user postgres with password '[ password ]';    
    4) 、 Create the role :
    create role At present centos user name ;
    5) 、 Give login permission :
    alter role At present centos user name login;

 4.Redis install
    sudo yum install redis
    sudo systemctl start redis
    sudo systemctl enable redis.service

 5. install nodejs
    sudo yum install nodejs
    npm config set registry http://registry.npm.taobao.org/
    npm config get registry
    sudo npm install n -g
    sudo /usr/local/bin/n stable

6. Install source code initialization
    1)、 Download code :
    git clone https://github.com/dazdata/re... cd redash
    2)、 Front end installation dependency package :
    npm install
    3)、 Front end packaging :
    npm run build
    4)、 To configure pip Domestic source :
    sudo cp pip.conf/etc/pip.conf
    5)、 install Python A virtual environment :
    sudo pip3 install virtualenv
    6)、 establish Python A virtual environment :
    virtualenv venv
    7)、 Activate Python A virtual environment :
    source venv/bin/activate
    8)、 install Pip package :
    pip3 install -r requirements.txt -r requirements_dev.txt -r requirements_bundles.txt
    9)、 Initialize database table structure :
    ./manage.py database create_tables
    10)、 Exit virtual environment , installation is complete :
    deactivate

7. Start the program
1) Open three terminals separately , All implemented cd redash After entering the directory, execute one of the following three commands :
source venv/bin/activate
./manage.py runserver --debugger --reload
and
source venv/bin/activate
./manage.py rq worker                 
and
source venv/bin/activate
./manage.py rq scheduler

2) Open the browser , Enter the address :http://localhost:5000
3) Each time the terminal starts running a service . If you need to stop service , Directly by Ctrl+C key , perform deactivate sign out python A virtual environment .

版权声明
本文为[Redash Chinese version]所创,转载请带上原文链接,感谢

Scroll to Top