1. 설치 환경/파일
| 항목 | 내용 | 비고 |
|---|---|---|
| Synology 모델 | Synology 916+ 8GB | |
| Confluence 설치 파일 | atlassian-confluence-5.10.7-x64.bin |
|
| DB | MariaDB 5.5.53-0070 | |
| Java |
| 둘 다 설치하긴 했는데...JAVA8 이 사용되었을 듯... |
DB 편집기 | phpMyAdmin 4.6.5.0169 |
2. 설치과정
2.1. 참고사이트
- http://alnova2.tistory.com/1069
- synology 716+ 에 설치한 내용
- 916+ 에도 거의 동일하게 적용할 수 있었음
2.2. 설치과정
2.2.1. Confluence 설치 파일 실행 권한 설정
chmod +x atlassian-confluence-5.10.7-x64.bin
2.2.2. 설치 파일 관리자 권한으로 실행
$ sudo ./atlassian-confluence-5.10.7-x64.binUnpacking JRE ... Starting Installer ... Oct 09, 2016 8:42:26 PM java.util.prefs.FileSystemPreferences$2 run INFO: Created system preferences directory in java.home. Fontconfig error: Cannot load default config fileThis will install Confluence 5.10.7 on your computer. OK [o, Enter], Cancel [c] 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 (-> 2번으로해서 설치 폴더를 변경할수 있도록 한다.)Where should Confluence 5.10.7 be installed? [/volume1/media/atlassian-confluence-5.10.7-x64.bin.15413.dir] /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]Extracting files ... Please wait a few moments while Confluence starts up. Launching Confluence ... Installation of Confluence 5.10.7 is complete Your installation of Confluence 5.10.7 is now ready and can be accessed via your browser. Confluence 5.10.7 can be accessed at http://localhost:8090 Finishing installation ..
2.2.3. mysql driver 설치
- http://dev.mysql.com/downloads/connector/j/ 접속
- Tar Archive 파일 다운로드
- Select Platform 은 'Platform Independent' 선택
- 다운받은 파일 압축해제
- 'mysql-connector-java-5.1.40-bin.jar' 파일을 '/volume1/media/confluence_bin/confluence/WEB-INF/lib' 에 복사
2.2.4. MariaDB 에 database 생성
- Synology 의 phpMyAdmin 을 실행하여 'root' 로 로그인 (비밀번호는 관리자 계정 비번과 동일함)
- 아래의 Query 수행
CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin; GRANT ALL PRIVILEGES ON confluence.* TO 'confluence'@'%'; GRANT ALL PRIVILEGES ON confluence.* TO 'confluence'@'localhost'; SET PASSWORD FOR 'confluence'@'%' = PASSWORD('confluence'); SET PASSWORD FOR 'confluence'@'localhost' = PASSWORD('confluence'); flush privileges;
2.2.5. Confluence 폴더 권한 설정
- Synology 에서 사용자에 'confluence' 추가
- Media 폴더의 소유권을 'confluence' 유저로 변경
- 아래의 명령을 통해 폴더 권한 설정
sudo chomod -R 777 /volume1/media/confluence_*
2.2.6. Confluence 실행
cd /volume1/media/confluence_bin/bin sudo ./start-confluence.sh
