분류 전체보기 74

샤딩 셋팅 방법

0. 준비 설치 파일은 다음을 기준으로 한다.mongodb-linux-x86_64-ubuntu1204-3.2.9.tgz(엔터프라이즈 버전의 경우 에러가 발생함.) 설치는 총 7대를 기준으로 산정.MongoDB01 mongos,Config_Server1MongoDB02 shard01_primaryMongoDB03 shard01_secondary,Config_Server2MongoDB04 shard01_arbiterMongoDB05 shard02_primaryMongoDB06 shard02_secondary,Config_Server3 MongoDB07 shard02_arbiter 2개의 샤드, 3대의 config, 1대의 mongos로 우선 셋팅한다. * 옵션 mongos MongoDB02, MongoDB0..

mongoDB 2016.09.14

우분투 몽고 설치 후 경고 발생시

아래경로에 파일을 만들고 내용을 복사한다. /etc/init.d/disable-transparent-hugepages #!/bin/sh### BEGIN INIT INFO# Provides: disable-transparent-hugepages# Required-Start: $local_fs# Required-Stop:# X-Start-Before: mongod mongodb-mms-automation-agent# Default-Start: 2 3 4 5# Default-Stop: 0 1 6# Short-Description: Disable Linux transparent huge pages# Description: Disable Linux transparent huge pages, to improve# ..

mongoDB 2016.08.29

설치 방법

설치 방법 및 express 글로벌로 설치하는 방법우분투에서$ sudo apt-get install curl$ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -$ sudo apt-get install -y nodejs$ sudo npm install express -g 매뉴얼 설치 방법은 다음 주소 참조https://github.com/nodesource/distributions#debinstallhttps://docs.npmjs.com/getting-started/installing-node 설치 후 node에 이용한 디렉토리로 이동 후npm link 명령어를 입력하여 해당 모듈을 불러올 수 있습니다.$ cd [local path]/proj..

node 2016.05.19

권한 추가 방법

root관리자 생성 방법 db.createUser({ user: "dba", pwd: "", roles: [ "root" ]}) 관리자 생성 권한 추가 방법 use admin db.createUser( { user: "", pwd: "", roles: [ "userAdminAnyDatabase", "dbAdminAnyDatabase", "readWriteAnyDatabase" ] } ) 사용자 생성 권한 추가 방법 use myDB db.createUser({ user: "계정명", pwd: "", roles: [ "readWrite" ]}) OR db.createUser({ user: "", pwd: "", roles: ["dbAdmin", "readWrite"] }) 사용자 삭제 방법 use myDB ..

mongoDB 2016.05.19

설치 방법

우분투 14.04 기준. 1. 패키지 관리 시스템의 공개키를 가져온다. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 2. mongoDB를 위한 리스트 가져오기 echo "deb http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/stable multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list 3.패키지를 모두 업데이트 실시 sudo apt-get update 4. MongoDB Enterprise 설치 sudo apt-get install -y mongodb-enterprise 5.DB..

mongoDB 2016.05.19

pptpd 설정하기

우분투 14.04 기준으로 설정 1. 설치apt-get install -y pptpd 2. local / remote ip 설정/etc/pptpd.conf 에서 다음처럼 ip를 설정한다.locapip 192.168.10.1 remoteip 192.168.10.100-200 3. DNS 설정/etc/ppp/pptpd-options 파일 편집하여 아래 내용 추가한다.ms-dns 8.8.8.8 ms-dns 8.8.4.4 4.사용자 추가/etc/ppp/chap-secrets 에 사용할 계정을 추가한다.# Secrets for authentication using CHAP # client server secret IP addresses userId1 * Password1 * 5. NAT 설정iptables -t ..

OS/Ubuntu 2016.02.22

VisualStudio.com을 이용하여 Git 연동하기 (5) - 리파지토리 commit

모든 준비가 완료되었으면 이제 작성한 소스를 visualstudio리파지토리에 commit 할 수 있다.간단하게 xcode 프로젝트를 신규 생성하여 등록하는 과정을 살펴본다. 1. 프로젝트 생성 - 자세한 것은 다른 xcode 참조2. 프로젝트 생성 폴더 생성시 주의가 필요하다. 연동 셋팅이 완료된 폴더를 지정하여야 한다. 연동 셋팅이 된 폴더라면 Source Control 항목이 비활성화되어 선택이 불가능하다. 아래 그림은 연동 셋팅이 된 폴더가 아닌 다른 폴더를 선택한 경우로 Source Control를 사용하지 않거나, 사용하기를 누르면 로컬 또는 새로운 리파지토리를 선택하도록 되어 있다.정상적으로 설정된 경우3. Source Control 상단 Source Control 메뉴를 사용하여 commi..

VisualStudio.com을 이용하여 Git 연동하기 (4) - Xcode에 연결하기

글 작성 일자 기준 버전인 5.1을 기준으로 기술한다.1. xcode를 기동하여 Check out an existing project를 선택한다.2. 작성한 프로젝트의 리파지토리를 입력한다. 리파지토리 URL 규칙은 아래와 같다. https://[계정명].visualstudio.com/DefaultCollection/_git/[프로젝트명]3. 로그인 로그인은 앞글(자격증명 생성)에서 등록한 2차이름과 암호를 사용하여 로그인한다.4. 로컬 경로 설정 로그인 후 아래 화면에서 리파지토리와 동기화할 디렉토리를 지정한다.5. 이제 설정한 디렉토리와 온라인 리파지토리와 동기화를 진행할 수 있다.