반응형

 Confluence는 WiKi 같은 협업도구이다. 기능이 더 많고, 사용이 편리해며 무엇보다도 가격이 저렴해서 많이 사용하는 듯 하다.


 Synology NAS인 DS716+ 는 Intel Celeron 쿼드코어 CPU를 가지고 있고, 시스템 메모리는 2G 인데 램을 교체하면 8G까지 확장할 수 있다. Confluence를 사용하기 위해서는 메모리를 Upgrade 해주는게 좋을것 같다.


(Confluence무료 평가판 다운로드)

 Confluence 홈페이지에서는 무료 평가판을 받을 수 있다. 무료 평가판은 30일동안 이용 가능하며, 10명의 사용자는 10$로 개인이 사용할때는 저렴하게 이용할 수 있다. 무료평가판을 다운로드한다. 이때 Linux x64 버전(atlassian-confluence-6.1.1-x64.bin, 2017년 4월 15일 기준)을 다운로드 한다. 그리고 NAS에 옮겨 놓는다.


(DS716+에 패키지 설치)

 패키지 센터에서 Java8 과 MariaDB를 설치한다.


(Confluence 설치)

 Admin 권한을 가진 계정으로 SSH 로 NAS에 접속하고 atlassian-confluence-6.1.1-x64.bin 이 있는 경로로 가서 실행 권한을 준다. 

 chmod +x atlassian-confluence-5.10.7-x64.bin


 그리고 해당 파일을 실행 시키면, 패키지를 설치한다. (빨간색은 키 입력 부분)

/volume1/media$ sudo ./atlassian-confluence-6.1.1-x64.bin 

Unpacking JRE ...

Starting Installer ...

Apr 16, 2017 7:51:55 PM java.util.prefs.FileSystemPreferences$1 run

INFO: Created user preferences directory.

Apr 16, 2017 7:51:55 PM java.util.prefs.FileSystemPreferences$2 run

INFO: Created system preferences directory in java.home.

Fontconfig error: Cannot load default config file


This will install Confluence 6.1.1 on your computer.

OK [o, Enter], Cancel [c]

o

Choose the appropriate installation or upgrade option.

Please choose one of the following:

Express Install (uses default settings) [1], 

Custom Install (recommended for advanced users) [2, Enter], 

Upgrade an existing Confluence installation [3]

2


Where should Confluence 6.1.1 be installed?

[/opt/atlassian/confluence]

/volume1/media/confluence_bin

Default location for Confluence data

[/var/atlassian/application-data/confluence]

/volume1/media/confluence_data

Configure which ports Confluence will use.

Confluence requires two TCP ports that are not being used by any other

applications on this machine. The HTTP port is where you will access

Confluence through your browser. The Control port is used to Startup and

Shutdown Confluence.

Use default ports (HTTP: 8090, Control: 8000) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]


Confluence can be run in the background.

You may choose to run Confluence as a service, which means it will start

automatically whenever the computer restarts.

Install Confluence as Service?

Yes [y, Enter], No [n]

y


Extracting files ...

                                                                           


Please wait a few moments while we configure Confluence.

Installation of Confluence 6.1.1 is complete


Start Confluence now?

Yes [y, Enter], No [n]

y


Please wait a few moments while Confluence starts up.

Launching Confluence ...

Installation of Confluence 6.1.1 is complete

Your installation of Confluence 6.1.1 is now ready and can be accessed via

your browser.

Confluence 6.1.1 can be accessed at http://localhost:8090

Finishing installation ...


(mysql driver 설치)

http://dev.mysql.com/downloads/connector/j/ 에서 MySQL Connector/J를 다운로드 하고 /volume1/media/confluence_bin/confluence/WEB-INF/lib 에 mysql-connector-java-5.1.40-bin.jar 를 복사한다.


(mariadb에 database 생성)

SSH로 NAS에 접속하고 다음으로 mysql 계정과 데이터베이스를 생성한다.

MariaDB [(none)]> use mysql

Database changed

MariaDB [mysql]> create database confluence;

Query OK, 1 row affected (0.00 sec)


MariaDB [mysql]> create user 'confluence'@'localhost' identified by '[password]';

Query OK, 0 rows affected (0.00 sec)


MariaDB [mysql]> grant all privileges on confluence.* to confluence@localhost;

Query OK, 0 rows affected (0.01 sec)


MariaDB [mysql]> flush privileges ;



(Conflunce 시작 및 설정)

confluence 계정을 NAS에서 생성한다. 그리고 설치 폴더와, 데이터 폴더에 소유권을 confluence로 변경하고 다음처럼 읽기/쓰기/실행 권한을 준다


chown -R confluence <confluence-install-folder>

chown -R confluence <confluence-home-folder>

chmod -R u=rwX,go-rwx <confluence-install-folder>

chmod -R u=rwX,go-rwx <confluence-home-folder>


/volume1/media/confluence_bin/bin 로 가서 sudo ./start-confluence.sh 로 실행 시킨다. 성공적으로 실행되면 브라우저에서 http://xxx.xxx.xxx.xxx:8090 으로 입력하면 설정 화면으로 들어갈 수 있다.


반응형
Posted by alias
,