yona 설치방법
centos 기준
# yum install java-1.8.0-openjdk*
java 1.8 이상 필요
mariadb 필요
mysql 설치
# vi /etc/yum.repo/mariadb.repo
아래 내용 추가
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
# yum clean all
# yum install MariaDB-server MariaDB-client -y
DB 생성
# mysql -u root
create user 'yona'@'localhost' IDENTIFIED BY 'passwd';
set global innodb_file_format = BARRACUDA;
set global innodb_large_prefix = ON;
create database yona
DEFAULT CHARACTER SET utf8mb4
DEFAULT COLLATE utf8mb4_bin
;
GRANT ALL ON yona.* to 'yona'@'localhost';
DB 생성 잘됐나 확인
mysql -u yona -p'yonadan'
use yona
mysql 환경설정 추가
# vi /etc/my.cnf
[client]
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4
[mysqld]
collation-server=utf8mb4_unicode_ci
init-connect='SET NAMES utf8mb4'
character-set-server=utf8mb4
lower_case_table_names=1
innodb_file_format=barracuda
innodb_large_prefix=on
mysql 재시작
# service mysql restart
# chkconfig mysql on
yona 설치
# cd /opt
# wget https://github.com/yona-projects/yona/releases/download/v1.12.0/yona-h2-v1.12.0-bin.zip
# unzip yona-h2-v1.12.0-bin.zip
# cd yona-1.12.0/conf
# vi application.conf
환경설정 및 db 암호 변경
# cd yona-1.12.0/bin/
./yona
Play server process ID is 9968
[info] play - database [default] connected at jdbc:h2:file:./yona
[info] application - === Yona server starting initialization ===
[info] application - --- Config reading: ok! - 146 ms
[info] application - --- Property reading: ok! - 0 ms
[info] application - --- Pull request checking: ok! - 7 ms
[info] play - Starting application default Akka system.
[info] application - --- Notification mail scheduler: ok! - 138 ms
[info] application - --- Notification event cleanup scheduler: ok! - 0 ms
[info] application - --- Temporary files cleanup scheduler: ok! - 19 ms
[info] application - --- Basic access controller config reading: ok! - 2 ms
[debug] application - Registered AuthProvider 'google'
[debug] application - Registered AuthProvider 'github'
[info] play - Application started (Prod)
[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
이상태로 떠 있으면 성공
http://localhost:9000 접속 하면 위와 같은 접속 화면 뜸
추가옵션
가입시 관리자가 승인해야 하는 기능
# signup.require.admin.confirm = true
최초 가입시 메일로 유효 메일 확인을 하는 기능
# application.use.email.verification = true
로그인 하지 않으면 어떠한 페이지도 보이지 않게 만드는 기능
# application.allowsAnonymousAccess=true
'Linux' 카테고리의 다른 글
review board install (0) | 2019.04.15 |
---|---|
rhodecode install (0) | 2019.04.02 |
httpd: Unknown DAV provider: svn (0) | 2019.03.25 |
/usr/share/code/code: symbol lookup error: /usr/share/code/code: undefined symbol: gtk_widget_get_scale_factor (0) | 2019.01.17 |
ERROR: IO::Socket::SSL or LWP::Protocol::https is not installed (0) | 2018.10.10 |