전체 글 369

트랜잭션

? 트랜잭션은 시스템에서 사용되는 더 이상 쪼갤 수 없는 업무 처리의 최소 단위이다. 크게 은행으로 예를 많이 든다. A라는 사람이 B라는 사람에게 돈을 지급할 경우 A라는 사람의 돈이 사라지고 B라는 사람은 돈이 생긴다 라는 하나의 작업을 최소 작업으로 본다. 더 나아가면 ACID 조건을 충족 해야한다. Atomicity(원자성), Consistency(일관성), Isolation(고립성), Durability(지속성)의 약자로서, 데이터베이스의 트랜잭션이 안전하게 수행되기 위한 4가지 필수적인 성질이다. 적용을 한다면? 하나의 맵핑 된 API 안에서 여러가지 동작 (두 개 이상의 테이블에 데이터를 적재하는 등)이 수행될 때 사용할 수 있을 것 같다.

끄적끄적 2022.05.12

[IntelliJ] Spring Boot Project 시작 시 Gradle 에러 Unable to find method

Spring Boot Project를 시작할 때 Gradle에서 에러가 발생 하였다. 에러 전문 Unable to find method 'org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String;'. Possible causes for this unexpected error include:Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)The state of a G..

에러 2022.05.10

[Linux] docker ps 에러 Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: conne

docker을 설치 진행하면서 발생한 에러 입니다. Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: conne ct: permission denied docker 명령어를 수행하며 docker.sock에 대한 권한이 없어 발생한 문제입니다. sudo chmod 666 /var/run/docker.sock 도커 파일 권한 추가 잘 실행되는 모습입니다.

에러 2022.05.09

모바엑스텀(MobaXterm) 설치하기

ssh 접속 툴 중 대표적으로는 putty를 사용합니다. 하지만 이 툴은 다양한 서비스와 연결할 수 있으며 간편하게 더블 클릭으로 여러 개의 서버를 컨트롤할 수 있습니다! 1. 설치 파일 다운로드 https://mobaxterm.mobatek.net/download.html MobaXterm free Xserver and tabbed SSH client for Windows The ultimate toolbox for remote computing - includes X server, enhanced SSH client and much more! mobaxterm.mobatek.net 해당 사이트에서 Home Edition을 눌러줍니다. 저는 "Portable edition"으로 설치하였습니다. 받은 압..

설치 && 설정 2022.05.09

노드JS 설치 (node.js)

윈도우에서 리액트를 사용해 보기 위해 노드JS를 설치합니다. 1. 다운로드 페이지 이동 노드를 설치하기 위해 사이트로 접속합니다. https://nodejs.org/ko/ Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org 저는 16.15 버전을 다운로드해주었습니다. 2. Node.js 설치 다운로드한 msi 파일을 실행시켜 줍니다. Next Install 마무리를 해줍니다! 3. 설치 확인 cmd 창을 열어 "node -v" 명령어를 입력해 주면 홈페이지에서 받은 v16.15.0 버전으로 Node.js가 설치된 것을 볼 수 있습니다.

설치 && 설정 2022.05.08

[Lunix] yum repolist all repolist: 0

출처 : https://gogoonbuntu.tistory.com/17 Ubuntu 18.04 yum 문제 해결법 yum 설치했을 때, 진짜 딱 yum 만 깔리고 repos 가 없을 때..; sudo apt install yum 하면 진짜 딱 yum만 깔리는 경우. yum install *** 혹은 yum update를 하면 아무것도 없다고 아무것도 안해준다. 왜냐면 yum.. gogoonbuntu.tistory.com yum을 설치 하였지만 사용할 수 있는 repolist가 하나도 없었다. 그 이유는 yum은 repository url을 읽어서 파일을 다운, 설치를 해준다. 따라서 repository url가 없다면 아무것도 할 수 없다. # yum 폴더로 이동 cd /etc/yum #목록 확인 ls ..

에러 2022.03.01

[Linux] E: Unable to locate package yum

* 해당 글을 작성하기 위해 새로운 인스턴스를 생성하여 IP가 노출됩니다. 게시 완료 후 인스턴스는 종료 예정입니다! 새로운 인스턴스 환경에는 yum이 없다는 걸 알고 설치를 하니 해당 에러가 나왔다. sudo yum -y upgrade - sudo: yum: command not found sudo apt install yum - Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package yum 해당 원인은 ubuntu에서 package를 다운받지 못하여서 그렇다. /etc/apt 위치로 이동해 주어 sources.list를 수정해주어야 한다. cd /e..

에러 2022.03.01

django secret key를 분실 or 노출될 경우

django의 secret key는 변수명 그대로 비밀스럽게 유지해야 한다. https://integer-ji.tistory.com/180 django secret key 분리, secrets.json 생성 git으로 프로젝트를 진행한다면 ( 2 ) - django secret key 분리하기 보고 배운 곳 : https://inma.tistory.com/83 .gitignore 설정하기 : https://integer-ji.tistory.com/179 해당 글을 보았다면 모두.. integer-ji.tistory.com 하지만 이렇게 따로 관리를 하다가 불의의 사고로 key를 분실하게 되었다.. django secret key를 분실 or 노출될 경우 key 변경 법 secret key를 변경 시에는 ..

distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools"

컴퓨터를 포멧 하니 해당 에러가 나왔다. distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ https://visualstudio.microsoft.com/ko/visual-cpp-build-tools/ Microsoft C++ Build Tools - Visual Studio Microsoft C++ Build Tools는 Visual Studio 없이 스크립트 가능한 독립 실행형 설치 관리자를 통해 MSVC 도구 집..

에러 2022.02.17