| 1 | 1 | [[분류:the tree]] |
|---|
| 2 | 2 | [include(틀:상위 문서, 문서명1=the tree)] |
|---|
| 3 | 3 | * apt-get 업데이트 |
|---|
| 4 | | > apt-get update -y |
|---|
|
|
| 4 | {{{#!syntax sh |
|---|
| 5 | apt-get update -y |
|---|
| 6 | }}} |
|---|
| 5 | 7 | * sudo 설치 |
|---|
| 6 | | > apt-get install sudo -y |
|---|
|
|
| 8 | {{{#!syntax sh |
|---|
| 9 | apt-get install sudo -y |
|---|
| 10 | }}} |
|---|
| 7 | 11 | * apt 업데이트 |
|---|
| 8 | | > sudo apt update |
|---|
| 9 | | > sudo apt upgrade -y |
|---|
|
|
| 12 | {{{#!syntax sh |
|---|
| 13 | sudo apt update |
|---|
| 14 | sudo apt upgrade -y |
|---|
| 15 | }}} |
|---|
| 10 | 16 | * curl 설치 |
|---|
| 11 | | > sudo apt install curl -y |
|---|
|
|
| 17 | {{{#!syntax sh |
|---|
| 18 | sudo apt install curl -y |
|---|
| 19 | }}} |
|---|
| 12 | 20 | * nvm 설치 ([[https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating|github 링크]]) |
|---|
| 13 | | > curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash |
|---|
| 14 | | |
|---|
| 15 | | > export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" |
|---|
| 16 | | > [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" |
|---|
|
| 21 | {{{#!syntax sh |
|---|
| 22 | curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash |
|---|
| 23 | export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" |
|---|
| 24 | [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" |
|---|
| 25 | }}} |
|---|
| 17 | 26 | * pm2 설치[* npm은 기본으로 설치되어 있음.] |
|---|
| 18 | | > npm install pm2 -g |
|---|
|
|
| 27 | {{{#!syntax sh |
|---|
| 28 | npm install pm2 -g |
|---|
| 29 | }}} |
|---|
| 19 | 30 | ----- |
|---|
| 20 | 31 | * mongoDB 설치 |
|---|
| 21 | | > sudo apt-get install gnupg curl -y |
|---|
| 22 | | |
|---|
| 23 | | > curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \ |
|---|
| 32 | {{{#!syntax sh |
|---|
| 33 | sudo apt-get install gnupg curl -y |
|---|
| 34 | curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \ |
|---|
| 24 | 35 | sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \ |
|---|
| 25 | | --dearmor |
|---|
| 26 | | |
|---|
| 27 | | > echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list |
|---|
| 36 | --dearmor}}} |
|---|
| 37 | > {{{#!syntax sh |
|---|
| 38 | echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list}}} |
|---|
| 28 | 39 | >----- |
|---|
| 29 | 40 | > ubuntu 24.04 (Noble) |
|---|
| 30 | 41 | {{{#!folding [ 다른 버전 보기 ] |
|---|
| 31 | | > echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list |
|---|
|
| 42 | > {{{#!syntax sh |
|---|
| 43 | echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list}}} |
|---|
| 32 | 44 | >----- |
|---|
| 33 | 45 | > Ubuntu 22.04 (Jammy) |
|---|
| 34 | 46 | |
|---|
| 35 | | > echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list |
|---|
|
|
| 47 | > {{{#!syntax sh |
|---|
| 48 | echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list |
|---|
| 49 | }}} |
|---|
| 36 | 50 | >----- |
|---|
| 37 | 51 | > Ubuntu 20.04 (Focal) |
|---|
| 38 | 52 | }}} |
|---|
| 39 | | > sudo apt-get update |
|---|
| 40 | | > sudo apt-get install -y mongodb-org |
|---|
|
|
| 53 | {{{#!syntax sh |
|---|
| 54 | sudo apt-get update |
|---|
| 55 | sudo apt-get install -y mongodb-org |
|---|
| 56 | }}} |
|---|
| 41 | 57 | |
|---|
| 42 | 58 | > 5[* 5. Asia] - 68[* 68. Seoul] |
|---|
| 43 | 59 | * systemctl 설치 |
|---|
| 44 | | > sudo apt-get install systemctl -y |
|---|
|
|
| 60 | {{{#!syntax sh |
|---|
| 61 | sudo apt-get install systemctl -y |
|---|
| 62 | }}} |
|---|
| 45 | 63 | * mongoDB 실행 |
|---|
| 46 | 64 | > mongosh |
|---|
| 47 | 65 | {{{#!folding [ 만약 실행이 안된다면 ] |
|---|
| ... | ... | |
|---|
| 65 | 83 | > db.getUsers(); //생성된 User 확인 |
|---|
| 66 | 84 | > exit |
|---|
| 67 | 85 | * Meilisearch 설치 |
|---|
| 68 | | > curl -L https://install.meilisearch.com | sh |
|---|
|
|
| 86 | {{{#!syntax sh |
|---|
| 87 | curl -L https://install.meilisearch.com | sh |
|---|
| 88 | }}} |
|---|
| 69 | 89 | * git 설치 |
|---|
| 70 | | > apt install git -y |
|---|
|
|
| 90 | {{{#!syntax sh |
|---|
| 91 | apt install git -y |
|---|
| 92 | }}} |
|---|
| 71 | 93 | * the tree 엔진 설치 |
|---|
| 72 | | > git clone https://github.com/wjdgustn/thetree --recursive |
|---|
|
|
| 94 | {{{#!syntax sh |
|---|
| 95 | git clone https://github.com/wjdgustn/thetree --recursive |
|---|
| 96 | }}} |
|---|
| 73 | 97 | |
|---|
| 74 | 98 | ----- |
|---|
| 75 | 99 | 출처 |
|---|
| 76 | 100 | * 다올위키 [[https://daol.cc/w/the tree/설치 방법|the tree/설치 방법]] 문서의 [[https://daol.cc/w/the%20tree/%EC%84%A4%EC%B9%98%20%EB%B0%A9%EB%B2%95?uuid=e67d8b0a-91f1-4f67-9713-c2a5f8d55ece|r10]]판에서 가져옴. |
|---|
| 77 | 101 | * 더시드위키 [[https://theseed.io/w/사용자:asdf1024/연습장|사용자:asdf1024/연습장]] 문서의 [[https://theseed.io/w/%EC%82%AC%EC%9A%A9%EC%9E%90:asdf1024/%EC%97%B0%EC%8A%B5%EC%9E%A5?uuid=79a62d21-f6a7-4acd-a8c7-ec138bd558a0|r654]]판에서 가져옴. |
|---|
| 78 | 102 | * 더시드위키 [[https://theseed.io/w/사용자:asdf1025/the tree 설치|사용자:asdf1025/the tree 설치]] 문서의 [[https://theseed.io/w/%EC%82%AC%EC%9A%A9%EC%9E%90:asdf1025/the%20tree%20%EC%84%A4%EC%B9%98?uuid=0ee2ab8d-594a-4879-a33e-847ab908a4e7|r21]]판에서 가져옴. |
|---|