728x90
반응형
redash BI툴로 오픈소스이다.
bitnami 버전의 설치와 SMTP 세팅방법이다.
다운로드
wget https://bitnami.com/redirect/to/1471031/bitnami-redash-8.0.0-14-linux-x64-installer.run
권한 변경
chmod 755 bitnami-redash-8.0.0-14-linux-x64-installer.run
설치
/root/bitnami-redash-8.0.0-14-linux-x64-installer.run
[root ]# /root/bitnami-redash-8.0.0-14-linux-x64-installer.run
----------------------------------------------------------------------------
Welcome to the Bitnami Re:dash Stack Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
Re:dash : Y (Cannot be edited)
Is the selection above correct? [Y/n]: y
----------------------------------------------------------------------------
Installation folder
Please, choose a folder to install Bitnami Re:dash Stack
Select a folder [/opt/redash-8.0.0-14]:
----------------------------------------------------------------------------
Create Admin account
Bitnami Re:dash Stack admin user creation
Your real name [User Name]: admin
Email Address [user@example.com]: test@naver.com
Password :
Please confirm your password :
Do you want to configure mail support? [y/N]: y
----------------------------------------------------------------------------
Configure SMTP Settings
This is required so your application can send notifications via email.
Default email provider:
[1] GMail
[2] Custom
Please choose an option [1] : 1
----------------------------------------------------------------------------
Configure SMTP Settings
This data is stored in the application configuration files and may be visible to
others. For this reason, it is recommended that you do not use your personal
account credentials.
GMail address []: test@gmail.com ### <-- gmail 주소 입력 -->
GMail password : ### <-- Gmail 패스워드 입력 중요!! -->
Re-enter :
----------------------------------------------------------------------------
Web Server Port
Choose a port that is not currently in use, such as port 81.
Apache Web Server Port [81]: 18080
----------------------------------------------------------------------------
Hostname that will be used to configure Re:dash. If this value is incorrect, you
may be unable to access your Re:dash installation from other computers.
Hostname [123.123.123.123]: redash-0
----------------------------------------------------------------------------
Setup is now ready to begin installing Bitnami Re:dash Stack on your computer.
Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs Bitnami Re:dash Stack on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing Bitnami Re:dash Stack on your computer.
웹서버 학인
ps -ef | grep apache
Redash 시작 & 중지 스크립트
728x90
redash 시작 스크립트
/opt/redash-8.0.0-14/ctlscript.sh start
재시작
/opt/redash-8.0.0-14/ctlscript.sh restart
중지
/opt/redash-8.0.0-14/ctlscript.sh stop
간단하게 OS에서 메일 테스트
mail test@gmail.com
subject : test
test 입니다
Ctrl+D 로 마지막으로 전송
파이썬을 통한 메일 테스트
python mailingTest.py
# -*- coding: utf-8 -*-
import smtplib
smtp = smtplib.SMTP('smtp.gmail.com', 587)
#smtp = smtplib.SMTP('smtp.googlemail.com', 465)
smtp.ehlo()
smtp.starttls()
smtp.login('test@gmail.com','password')
smtp.sendmail('test@gmail.com',
'test2@gmail.com',
'Subject: redash smtp test!')
smtp.quit()
apache port 변경
/opt/redash-8.0.0-14/apache2/conf/httpd.conf
Listen 80 -> 18080 포트 변경
ServerName syf-redash-0.cocone:18080 로 변경
환경변수 REDASH_HOST 에 포트 추가
vi ./apps/redash/htdocs/.env
728x90
300x250
'IT > Opensource' 카테고리의 다른 글
Stunnel (0) | 2023.06.22 |
---|---|
Docker 컨테이너를 전체 개방하지 않도록 iptables에서 제한 (0) | 2021.08.12 |
Redash 설치 및 세팅 (Docker Compose 버전) (0) | 2021.08.11 |
LVS 사전 준비 (0) | 2021.08.09 |
PMM 명령어 (0) | 2021.07.30 |