Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Local deployment of Centos8 for Redash Chinese Business Edition

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you the Redash Chinese business version of Centos8 local deployment example analysis, I hope you will learn something after reading this article, let's discuss it together!

1. Installation instructions

The built-in Python of Centos8 is version 3.6.8. Here are the installation steps based on the built-in Python3.6.8. As the installation of multiple versions of Python will cause the underlying libraries of the system to download source code and recompile, it is not recommended to install the Chinese version of Redash in multi-version Python environments.

Official website: www.dazdata.com

two。 Initialize the environment installation

1) enter the source directory of setting yum:

Cd / etc/yum.repos.d/

2) download the tool to download files automatically

Sudo yum install wget

3) back up the yum source file:

Sudo mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.backup

4) download Ali Yumyuan:

Sudo wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo

5) Clean the original cache:

Sudo yum clean all

6) after the cache is established, it is convenient to search in the cache:

Sudo yum makecache

7). Update the system package:

Sudo yum update-y

8) install common packages:

Sudo yum-y install gccgcc-c++ kernel-devel make zlibzlib-devellibffi-developenssl-develpython3-devel git

9) install dnf:

Sudo yum install dnf-y

10) go under root users and add the current user to the root group:

Su-

Usermod-g root current centos user name

3.Postgresql9.6 installation

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) Log in to Postgresql:

Sudo-u postgrespsql

3) change the postgres password:

Alter user postgres with password'[password]'

4), create a role:

Create role current centos user name

5) Grant login permissions:

Alter role current centos username login

4.Redis installation

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 the code:

Git clone https://github.com/dazdata/redash.git&& cd redash

2) the frontend installs the dependency package:

Npm install

3), front-end packaging:

Npm run build

4) configure pip from domestic sources:

Sudo cp pip.conf/etc/pip.conf

5) install Python virtual environment:

Sudo pip3 install virtualenv

6) create a Python virtual environment:

Virtualenv venv

7) activate Python virtual environment:

Source venv/bin/activate

8) install the Pip package:

Pip3 install-r requirements.txt-r requirements_dev.txt-r requirements_bundles.txt

9) initialize the database table structure:

. / manage.py database create_tables

10) exit the virtual environment, and the installation is complete:

Deactivate

7. Startup program

1) Open three terminals respectively, execute cd redash to enter the directory and execute one of the following three commands respectively:

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 and enter the address: http://localhost:5000

3) each time the terminal starts and runs a service. If you need to stop the service, press Ctrl+ C directly and execute deactivate to exit the python virtual environment.

After reading this article, I believe you have some understanding of "sample analysis of local deployment of Redash Chinese business version of Centos8". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report