installation

Build - nvme-cli

2021.08.22
installation

Build - nvme-cli # 1. 클론/컴파일/설치 # git clone https://github.com/linux-nvme/nvme-cli.git cd nvme-cli make make install # RUN nvme --version 2. 커스텀 플러그인 추가 # 플러그인은 todd라는 명으로 추가한다. mkdir -p plugins/todd plugins/todd/todd-nvme.h #undef CMD_INC_FILE #define CMD_INC_FILE plugins/todd/todd-nvme #if !defined(TODD_NVME) || defined(CMD_HEADER_MULTI_READ) #define TODD_NVME #include "cmd.h"#include <stdio.h> PLUGIN(NAME("todd", "Todd plugin"), COMMAND_LIST( ENTRY("list","List available FADU devices",todd_list) ) ); #endif #include "define_cmd.h" plugins/todd/todd-nvme.c #include "nvme. ...

Installation - Django

2021.08.22
installation

Installation - Django # 1. Installation # (1) venv 설치 # 개발 환경을 깔끔하게 관리하기 위한 도구 mkdir v1 cd v1 sudo apt install python3-venv -y python3 -m venv v1 # 개발환경 적용 source v1/bin/activate (2) Django 설치 # python3 -m pip install --upgrade pip pip install django~=2.0.0 mkdir project1 django-admin startproject mysite . 다음과 같은 구조로 파일이 생성됨 생성된 구조 . ├── manage.py └── mysite ├── __init__. ...

Installation - ElasticSearch

2021.08.22
installation

install Elasticsearch # 주의 service로 동작하므로 wsl에서 테스트 불가 참고 https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-20-04 $ curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - $ echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list $ sudo apt update $ sudo apt install elasticsearch $ sudo vi /etc/elasticsearch/elasticsearch.yml /etc/elasticsearch/elasticsearch.yml # ---------------------------------- Network ----------------------------------- # # Set the bind address to a specific IP (IPv4 or IPv6): # network. ...

Installation - gitea(docker)

2021.08.22
installation

Installation - getea # 참고 https://docs.docker.com/compose/install/ https://docs.gitea.io/en-us/install-with-docker/ apt install docker docker.io -y sudo curl -L "[https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)](https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname%20-s)-$(uname%20-m))" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose mkdir dockers cd dockers vi docker-compose.yml docker-compose.yml version: "2" networks: gitea: external: false services: server: image: gitea/gitea:latest environment: - USER\_UID=1000 - USER\_GID=1000 restart: always networks: - gitea volumes: - ./gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "2222:22" docker-compose up docker-compose start

Installation - Mongo DB

2021.08.22
installation

Mongo DB Installation # 참고 1. 키 추가 # wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add - 2. 레포지토리 추가 # echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list 3. 패키지 최신화 및 설치 # sudo apt update sudo apt-get install -y mongodb-org 4. 서비스 시작 # service mongod start service mongod enable service mongod status 5. 관리자 계정 생성 # MongoDB CLI를 통해 인증을 위한 관리자 계정을 생성한다. ...