목록IT 인터넷 (525)
반업주부의 일상 배움사

인증 메일 보낼 때 이용하고 있어요. Banjubu email template 이용해 주셔서 감사합니다. 이동하기 또는 아래 링크를 복사해 브라우저에 붙여 넣으세요 https://banjubu.tistory.com 한 줄로 줄여서 코드에 샥. https://www.willpeavy.com/tools/minifier/ 영어, 중국어 공부중이신가요? 홈스쿨 교재. 한 권으로 가족 모두 할 수 있어요! 한GLO 미네르바에듀 : 네이버쇼핑 스마트스토어 한글로 영어가 된다?! 한글로[한GLO]는 영어 중국어 일어 러시아어 스페인어가 됩니다!! smartstore.naver.com
bash 보다 편리하다는 이유로 zsh(지쉘)을 많이 사용해요. zsh도 쓰고 멋진 테마도 적용하기 위해 맥의 기본 터미널(Terminal)을 iTerm2로 대체할게요. 기본 터미널 앱으로 실행해요. 1. Homebrew 설치 $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 2. iTerm2 설치 $ brew install --cask iterm2 여기서부터는 애플리케이션 폴더에 새롭게 설치된 iTerm 앱을 열어서 실행할게요. 1. Oh My Zsh 설치 $ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/t..
1. Homebrew 설치 $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 2. MySQL 설치 MySQL 8.x $ brew install mysql MySQL 5.7 $ brew install mysql@5.7 이후부터 자신이 설치한 버전의 이름을 사용함. 5.7을 설치했다면 mysql 이 아닌 mysql@5.7 임. 3. MySQL 서버 시작 $ brew services start mysql 4. 설정 관리자 실행 $ mysql_secure_installation n 입력 후 비밀번호 입력. 익명유저 삭제 : y 외부에서 접속 : y/n test db 삭제 : y privi..
1. #Port 22 주석 풀고 원하는 포트로 변경 $ sudo vi /private/etc/ssh/sshd_config 2. 22번 포트 찾아서 원하는 포트로 변경 $ sudo vi /etc/services 3. SSH 재시작 $ sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist $ sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist 영어, 중국어 공부중이신가요? 홈스쿨 교재. 한 권으로 가족 모두 할 수 있어요! 한GLO 미네르바에듀 : 네이버쇼핑 스마트스토어 한글로 영어가 된다?! 한글로[한GLO]는 영어 중국어 일어 러시아어 스페인어가 됩니다!! smartstore.naver...

1. 파이썬(Python) 설치 https://www.python.org/downloads/ 2. 장고 설치 $ pip install django 3. 매니저 생성 (폴더가 새로 생성됨) $ django-admin startproject django_test 4. 프로젝트 생성 $ cd django_test $ python manage.py startapp banjubu 5. django_test/settings.py 수정 INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django...
1. Redis와 사용법 동일함. 2. 명시적 재부팅 불가. (버튼 비활성) 3. 데이터 유지. - 메모리 DB이므로 재부팅시 데이터가 삭제되어야 하지만 ElastiCache를 사용하면 영구적으로 유지된다고 봐도 무방함. - 인스턴스 업그레이드하더라도 데이터 유지됨. (복제본이 없어도 됨) 4. 인스턴스 업그레이드시 다운 타임 없다고 봐야 함. (데이터 양이 많은 경우는 테스트 못했으나 거의 없을 듯) 5. 높은 안정성을 위해 복제본 1개 이상 두는걸 권장. 6. 멀티 AZ를 두면 안정성이 더 높아지지만 추가 비용 발생.
1. 공통 라이브러리용 깃헙 저장소 만들기 - 예) https://github.com/banjubu/banjubu-common-lib.git 2. 공통 라이브러리 저장소 루트에 index.js 생성 > 커밋 & 푸시 module.exports.banjubu = { go: function() { return "Go! Banjubu!"; } } 3. 신규 프로젝트 생성 > package.json 에 아래 코드 추가 - 처음 설치: yarn install - 코드 업데이트: yarn upgrade "dependencies": { ..., "banjubu-common-lib": "git+https://github.com/banjubu/banjubu-common-lib.git#main" } 4. app.js im..

새로운 폴더 만들고 시작할께요. 1. 설치 $ go mod init banjubu $ go get github.com/gin-gonic/gin $ go get github.com/99designs/gqlgen $ printf '// +build tools\npackage tools\nimport _ "github.com/99designs/gqlgen"' | gofmt > tools.go $ go run github.com/99designs/gqlgen init $ rm -rf server.go 2. main.go package main import ( "banjubu/graph" "banjubu/graph/generated" "github.com/99designs/gqlgen/graphql/handler..

새로운 폴더 만들고 시작할께요. 1. 설치 $ go mod init banjubu $ go get github.com/99designs/gqlgen $ printf '// +build tools\npackage tools\nimport _ "github.com/99designs/gqlgen"' | gofmt > tools.go $ go run github.com/99designs/gqlgen init $ go run server.go 2. graph/resolver.go package graph import "banjubu/graph/model" // This file will not be regenerated automatically. // // It serves as dependency injecti..

Supervisor: Node.js 진영의 PM2와 유사한 프로세스 컨트롤러. 1. Go 빌드 > main 파일 생성 $ go build main.go 2. Supervisor 설치 $ pip install supervisor 3. supervisor.conf [supervisord] [supervisorctl] serverurl=http://127.0.0.1:9001 [inet_http_server] port = 127.0.0.1:9001 [program:ginTest] command = ./main autostart = true autorestart = true startsecs = 1 4. 실행 $ supervisord -c supervisor.conf 5. 확인 http://localhost:90..