본문 바로가기

my_lesson325

Mongoose - Getting Started (Schema) Getting StartedFirst be sure you have MongoDB and Node.js installed. Next install Mongoose from the command line using npm:우선 MongoDB 와 Node.js가 설치되어 있어야하며 명령라인에서 npm을 이용해 Mongoose를 설치한다.$ npm install mongooseNow say we like fuzzy kittens and want to record every kitten we ever meet in MongoDB. The first thing we need to do is include mongoose in our project and open a connection to the test dat.. 2017. 8. 27.
Mongodb MongoDBInstall Mongodb Start Mongodb : sudo service mongod startmongodb change field's name modify field's name rename> db.company.updateMany({}, {$rename:{"address":"m_email"}}){ "acknowledged" : true, "matchedCount" : 18, "modifiedCount" : 17 } mongodb change value of field, modify value of field, set> db.company.update({m_name:"John"}, {$set: {m_email:"khj@khj.com"}})WriteResult({ "nMatched" .. 2017. 8. 26.
Linux - jsp php 페이지를 만들었는데 접속하면 다운로드가 됩니다. Linux - jsp php 페이지를 만들었는데 접속하면 다운로드가 됩니다.windows chrome open index.jsp download - Chrome downloading file instead of displaying page The solution, with the cause now found, is equally simple: menu, settings, scroll to bottom, click advanced, click clear browsing data and select And then click Clear browsing data. At least Chrome has the choice of time period, to avoid having to erase the entire.. 2017. 7. 15.
Linux - Errors and Problems 2017-07-17 Last Edit Could not connect to kr.archive.ubuntu.com:80 (103.22.220.133), connection timed out E:dpkg was interrupted you must manually run 'sudo dpkg configure a' to correct the problem >>>:It is called when packages are broken, or the package installation is interrupted. You should run sudo dpkg --configure -a or its alternative apt-get -f install to solve this problem. The requested resource (/testjsp/.. 2017. 7. 13.
Linux - rpm , deb, yum, apt 패키지 설치 삭제 방법 Linux - rpm , deb, yum, apt 패키지 설치 삭제 방법패키지 인덱스 인덱스 정보를 업데이트 : apt-get은 인덱스를 가지고 있는데 이 인덱스는 /etc/apt/sources.list에 있습니다. 이곳에 저장된 저장소에서 사용할 패키지의 정보를 얻습니다. Ubuntu : sudo apt-get update 설치된 패키지 업그래이드 : 설치되어 있는 패키지를 모두 새버전으로 업그래이드 합니다. sudo apt-get upgradeCentos OS: yum updateRedhat : rpm -Uvh 패키지이름 //없을경우 설치됨의존성검사하며 설치하기 sudo apt-get dist-upgrade 패키지 설치 Ubuntu : sudo apt-get install 패키지이름deb : sudo.. 2017. 7. 9.
Linux - 사용안하고 불필요한 파일들 제거해보기 사용안하고 불필요한 파일들 제거해보기 1. 우선 큰파일을 크기순으로 50개 조사 해보았습니다. sudo find ~/home -prune -o -size +1024k -printf '%s %p\n' | sort -k1 -g -r | head -50/home 폴더 이하에 1024k(1메가) 이상의 파일을 찾아서 크기순으로 정령 합니다.제외할 디렉이 있다면 find /home -path '/home/VDI' -prune -o -size +1000k -printf '%s %p\n' | sort -k1 -g -r | head -50같이 -path '제외할 디렉' 을 넣어 주심 됩니다.영화 미드가 좀 많이 나오는 군요 본 것들은 지워 주었습니다. 그리고 안쓰는 리눅스 ISO 파일도 좀 지우고요... 2. 30일동.. 2017. 7. 8.