Yona

In AWS install Yona

Prerequisite

sudo dnf install mariadb105-server -y
sudo systemctl enable mariadb
sudo systemctl start mariadb
sudo mariadb-secure-installation
mysql -uroot -p
create database yona DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_bin;

GRANT ALL PRIVILEGES ON yona.* TO yona@localhost IDENTIFIED BY 'yonadan';

Install Yona

mkdir local && cd local
wget https://github.com/yona-projects/yona/releases/download/v1.16.0/yona-v1.16.0-bin.zip

unzip yona-v1.16.0-bin.zip
ln -s yona-1.16.0/ yona
cd yona
bin/yona # first for unarchive folders
vi conf/application.conf
# MariaDB
db.default.driver=org.mariadb.jdbc.Driver
db.default.url="jdbc:mariadb://127.0.0.1:3306/yona?useServerPrepStmts=true"
db.default.user=yona
db.default.password="yonadan"
bin/yona

Run Yona in Background

nohup bin/yona &

DB Migration

Err ๋ฐœ์ƒ์‹œ

Yona in Windows

SET YONA_HOME=c:\yona\yona-1.16.0
SET JAVA_OPTS=-Dyona.home=%YONA_HOME% -Dconfig.file=%YONA_HOME%\conf\application.conf -Dlogger.file=%YONA_HOME%\conf\application-logger.xml

Yona restart shell

#!/bin/bash
source /home/ec2-user/.bash_profile

cd /home/ec2-user/local/yona
sudo kill -9 `cat RUNNING_PID`
sudo rm -rf RUNNING_PID
sleep 5
/usr/bin/nohup /home/ec2-user/local/yona/bin/yona &

์ฐธ๊ณ 

What Else?
inflearn react api server -50% ํ• ์ธ์ฟ ํฐ: 15108-f2af1e086101 buy me a coffee