Yona
- 21์ธ๊ธฐ SW ํ์
๊ฐ๋ฐ ํ๊ฒฝ
- http://yona.io
- GitHub์ ์ค์นํ + ํ๋ก์ ํธ๋ณ ๊ฒ์ํ
- ํ๊ตญ์ด, ์์ด, ์ผ์ด ์ง์
- installation
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
- DB info in 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 ๋ฐ์์
[error] play - Specified key was too long; max key length is 767 bytes [ERROR:1071, SQLSTATE:42000]
์๋ฌ๋ฉ์์ง๋ฅผ ๋ง๋๋ฉด, MariaDB ์ญ์ ํ๋ค๊ฐ ๋ค์ ์ค์น
sudo yum uninstall -y MariaDB-server
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 &
์ฐธ๊ณ
- yona-1.16.0 ์ค์น ์์
- yona-1.4.1 ์ค์น ์์