분류 전체보기154 mongo db update 방법. mongo db 에서 multi update 방법 db.getCollection('site_product_price').update( { update_dttm: /2016-04-0/ }, { $set: { is_new: true } }, false, true ) $set 이 없으면 해당 document 값이 override 되기 때문에 주의가 필요하다. 2016. 4. 8. mongo db 배열의 개수 확인하기 mongo db 배열의 개수 확인하기 db.accommodations.find( { $where: "this.name.length > 1" } ); / 2016. 3. 28. mongo db group count 방법 mongo db group count 방법 db.getCollection('product_crawling_queue').aggregate({ $group: { _id: { site_id: "$site_id" }, count: { $sum: 1 } } }) 2016. 3. 22. LetsEncrypt 를 CentOS/nginx 에 적용한 경험 공유~ CentOS에 Let Encrypt 를 이용하여 nginx 에 무료 SSL 을 적용하자. 필요 준비 사항. Python EPEL 공식 사이트인 (https://letsencrypt.readthedocs.org/en/latest/using.html#letsencrypt-auto) 가보니 CentOS의 경우에는 EPEL 을 먼저 인스톨 하라고 함. > yum install epel-release 설치 소스 다운 로드 > git clone https://github.com/letsencrypt/letsencrypt 의존성 설치 >./letsencrypt-auto —help 설치 >./letsencrypt-auto certonly --rsa-key-size 4096 --email example@example.c.. 2015. 12. 20. 이전 1 ··· 17 18 19 20 21 22 23 ··· 39 다음