| ... | ... | |
|---|
| 19 | 19 | |
|---|
| 20 | 20 | == 설치 방법 == |
|---|
| 21 | 21 | * 시작하기 전에 apt 업데이트 |
|---|
| 22 | | > sudo apt update |
|---|
| 23 | | > sudo apt upgrade -y |
|---|
|
|
| 22 | {{{#!syntax sh |
|---|
| 23 | sudo apt update |
|---|
| 24 | sudo apt upgrade -y |
|---|
| 25 | }}} |
|---|
| 24 | 26 | |
|---|
| 25 | 27 | === node.js === |
|---|
| 26 | 28 | * nvm 설치. |
|---|
| 27 | 29 | * [[https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating]] |
|---|
| 28 | 30 | |
|---|
| 29 | 31 | * nvm으로 20 버전 설치. |
|---|
| 30 | | > nvm install 20 |
|---|
|
|
| 32 | {{{#!syntax sh |
|---|
| 33 | nvm install 20 |
|---|
| 34 | }}} |
|---|
| 31 | 35 | * node.js 버전 관리 n도 있으니 참고. [[https://www.npmjs.com/package/n| ]] |
|---|
| 32 | 36 | |
|---|
| 33 | 37 | * 위키 엔진 재시작 기능을 사용하기 위한 pm2 설치 |
|---|
| 34 | | > npm install pm2 -g |
|---|
|
|
| 38 | {{{#!syntax sh |
|---|
| 39 | npm install pm2 -g |
|---|
| 40 | }}} |
|---|
| 35 | 41 | |
|---|
| 36 | 42 | === MongoDB === |
|---|
| 37 | 43 | * 위키 엔진의 DB 설치 |
|---|
| ... | ... | |
|---|
| 41 | 47 | * [[https://www.mongodb.com/ko-kr/docs/manual/installation/|Ubuntu가 아닐 경우]] |
|---|
| 42 | 48 | |
|---|
| 43 | 49 | * 설치하였다면 계속하기 - [[https://www.mongodb.com/products/tools/compass|GUI를 원한다면 여기로]] |
|---|
| 44 | | > sudo systemctl status mongod //MongoDB 실행 중인지 확인 |
|---|
| 45 | | > mongosh //MongoDB 접속 |
|---|
|
|
|
|
| 50 | {{{#!syntax sh |
|---|
| 51 | sudo systemctl status mongod |
|---|
| 52 | # ^ MongoDB 실행 중인지 확인 |
|---|
| 53 | mongosh |
|---|
| 54 | # ^ MongoDB 접속 |
|---|
| 55 | }}} |
|---|
| 46 | 56 | |
|---|
| 47 | 57 | * DB 생성하고 DB에 접속할 user 만들기 |
|---|
| 48 | 58 | > use test123 //test123 DB 생성 및 접속 |
|---|
| ... | ... | |
|---|
| 63 | 73 | * [[https://www.meilisearch.com/docs/guides/running_production#4-2-enable-and-start-service|systemctl에 추가해서 실행 편하게 하기]] |
|---|
| 64 | 74 | |
|---|
| 65 | 75 | === 엔진 설치 === |
|---|
| 66 | | > git clone https://github.com/wjdgustn/thetree --recursive //엔진 git으로 불러오기 |
|---|
| 67 | | > npm i // 라이브러리 다운로드하기 |
|---|
| 68 | 78 | |
|---|
| 69 | 79 | == 마지막 == |
|---|
| 70 | 80 | * 초기 설정 및 첫 실행은 다음 문서를 참고하자. |
|---|
| 71 | 81 | * [[the tree/위키 구축]] |
|---|
| 76 | {{{#!syntax sh |
|---|
| 77 | git clone https://github.com/wjdgustn/thetree --recursive |
|---|
| 68 | 82 | |
|---|
| 69 | 83 | == 마지막 == |
|---|
| 70 | 84 | * 초기 설정 및 첫 실행은 다음 문서를 참고하자. |
|---|
| 71 | 85 | * [[the tree/위키 구축]] |
|---|