아래 참고.
https://github.com/Microsoft/WSL/issues/1822#issuecomment-330128322
sudo apt-get purge mongodb-org*
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
- ubuntu 16.04:
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
- ***Not in mongo's directions: but rather something i got from reading above comments:
sudo apt-get install mongodb
***At this point the version installed by mongo is an older version... for me ie.
mongod --version
db version v2.6.10
- sudo apt-get install -y mongodb-org
***Now, everything is installed correctly
mongod --version
db version v3.4.9
git version: 876ebee8c7dd0e2d992f36a848ff4dc50ee6603e
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
allocator: tcmalloc
modules: none
build environment:
distmod: ubuntu1604
distarch: x86_64
target_arch: x86_64
- ***Lastly, per the op's @Zx-EvM && @aseering above states that instead of the start command of mongod you would use the following command to start mongo:
sudo service mongodb start
그 밖에 참고할 곳
https://github.com/Microsoft/WSL/issues/796
'MongoDB' 카테고리의 다른 글
[MongoDB] YCSB 를 이용한 벤치마킹 튜토리얼 링크 (0) | 2019.05.10 |
---|---|
[MongoDB] mongo java driver 에서 aggregate 사용하기 (0) | 2019.02.28 |
[MongoDB] text 데이터를 csv 파일로 만드는 쉘 스크립트 (0) | 2018.12.01 |
[MongoDB] config servers 세팅 에러 하나 (0) | 2018.11.30 |
[Google Dataproc] MongoDB 설치하기 (0) | 2018.09.28 |