본문 바로가기

우분투 설치 후 셋팅 01 우분투 설치를 끝냈다. VM에 설치 한 거라 이걸 계속 틀어놓고 하기는 귀찮다. SSH 설정을 해서 윈도우에서 작업을 하는게 좋다. 이제부터 SSH 설치 하고 윈도우에서 개발 하기 위한 밑 작업을 작성 하겠다. SSH 설치 아래 명령어 입력 sudo apt-get install openssh-server 설정 파일 변경 sudo vim /etc/ssh/sshd_config Port 검색 :/Port 기본 설정값은 Port 22 로 되어 있다. 변경 하려면 변경 하고 저장 후 나오면 된다. :wq! 더보기
맥 새로 설치 함 install brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" APSEONOTE307:src gekim$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/loc.. 더보기
ㄹㄹ https://github.com/devZman/Any/wiki/SSH-%EA%B8%B0%EC%B4%88-%EC%82%AC%EC%9A%A9-%EB%B0%A9%EB%B2%95 더보기
몽고디비 (디비/컬렉션 생성/삭제) > > use foobar // db 이동 switched to db foobar > > db foobar > > db.foobar.blog.insert({"key": 1}) // blog 컬렉션 만들면서 key: 1 추가 WriteResult({ "nInserted" : 1 }) > > db.foobar.blog.find() { "_id" : ObjectId("5b883366fe4e073c7fc94482"), "key" : 1 } // 생성 확인 > > db.foobar.blog.remove({}) // 문서 전부 삭제 WriteResult({ "nRemoved" : 1 }) > > db.foobar.blog.find() // 확인 > > show collections // db.foobar 의 컬렉션.. 더보기
몽고디비 메모중 $set ( 삽입 혹은 갱신 )db.users.update({"_id:": ObjectId("~~~")}, {"$set": {"key": value}}); $unset ( 키/값 제거)db.users.update({"_id:": ObjectId("~~~")}, {"$unset": {"key": 1}}); db.collection.find() // 배열로 뱉음db.collection.findOne() // 1개의 문서만 뱉음 find, update, remove 모두 제일 첫번째 인자는 criteria(기준)이다.ex. "name"이 gekim을 변경할때는db.users.update({"name": "gekim"}, {"$set": ~~~}) $inc (값을 증감 한다. -생성/수정)db.users.ins.. 더보기