본문 바로가기

카테고리 없음

2020-06-25 06시 개발자 글 모음 | "sudo python / comman" 외 7개 이야기

OpenTracing 연구하기 by 김민욱


    개인 프로젝트 시작 - Dev news bot by 김정환


      MongoDB 해킹, 허니팟 구축, 침해사고 분석 by 공재웅 about MongoDB

      • 944+0000 I NETWORK [conn179] Error receiving request from client: ProtocolError: recv(): message msgLen 671088768 is invalid
      • 168+0000 I NETWORK [conn181] Error receiving request from client: ProtocolError: recv(): message msgLen 100670976 is invalid
      • 167+0000 I NETWORK [conn253] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection


      Kali 2020.1 VMWare 배포 by 공재웅 about Linux

      • - Hackbar : see on development tools
      • - Font Size : 12
      • - Change Input Method : Ctrl + Space / 한영


      MongoDB-Docker 백업 by 공재웅 about Docker,MongoDB

      • docker exec mongo sh -c 'mongodump --archive --gzip -v --username root --password mypassword' > backup-`date +%F_%R`
      • docker exec -i mongo sh -c 'mongorestore --archive --gzip -v --username root --password mypassword' < backup
      • docker exec -i mongo sh -c 'mongorestore --archive --gzip -v --drop dpleapi --username root --password mypassword' < backup


      MongoDB / arrayFilters / 배열에서 다시 배열 조회 by 공재웅 about MongoDB

      • 배열 안에서 다시 배열을 조회해야 할 때 arrayFilters를 사용할 수 있다
      • [item] 은 변수로써 아래 'item
      • _id' 에서 다시 사용될 수 있다


      Duplicated Index error by 공재웅 about MongoDB

      • MongoDB에서 가끔 해당 오류가 날 때가 있다
      • null 키가 중복된다면서 뜨는 오류인데
      • 중복을 허용하지 않을 때 null 값을 두개이상 기록하려고 하면 null이 두개라서 중복된다


      sudo python / command not found 에러 by 공재웅 about Python

      • python 명령어는 분명 존재하지만 sudo로 실행했을 경우 command not found 에러가 뜨는 경우가 있다
      • anaconda shell에서 which python 명령어로 경로를 확인
      • 이후 synlink로 /usr/bin/python 을 아래처럼 연결해준다